• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:38
CEST 21:38
KST 04:38
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
BGE Stara Zagora 2025: Info & Preview27Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL46Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30
Community News
[BSL20] ProLeague: Bracket Stage & Dates9GSL Ro4 and Finals moved to Sunday June 15th12Weekly Cups (May 27-June 1): ByuN goes back-to-back0EWC 2025 Regional Qualifier Results26Code S RO12 Results + RO8 Groups (2025 Season 2)3
StarCraft 2
General
The SCII GOAT: A statistical Evaluation BGE Stara Zagora 2025: Info & Preview Magnus Carlsen and Fabi review Clem's chess game. Jim claims he and Firefly were involved in match-fixing GSL Ro4 and Finals moved to Sunday June 15th
Tourneys
Bellum Gens Elite: Stara Zagora 2025 Sparkling Tuna Cup - Weekly Open Tournament SOOPer7s Showmatches 2025 Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target Mutation # 474 Futile Resistance
Brood War
General
Mihu vs Korea Players Statistics BGH auto balance -> http://bghmmr.eu/ BW General Discussion [BSL20] ProLeague: Bracket Stage & Dates Will foreigners ever be able to challenge Koreans?
Tourneys
[ASL19] Grand Finals NA Team League 6/8/2025 [Megathread] Daily Proleagues [BSL20] ProLeague Bracket Stage - Day 2
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread What do you want from future RTS games? Path of Exile Mechabellum
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Heroes of the Storm 2.0 Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Vape Nation Thread European Politico-economics QA Mega-thread
Fan Clubs
Maru Fan Club Serral Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard
TL Community
The Automated Ban List
Blogs
Cognitive styles x game perf…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Poker
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 22204 users

My colleagues just reminded me why i quit - Page 2

Blogs > Deleted User 101379
Post a Reply
Prev 1 2 3 Next All
Integra
Profile Blog Joined January 2008
Sweden5626 Posts
September 10 2012 22:27 GMT
#21
On September 11 2012 07:21 Geiko wrote:
Show nested quote +
On September 11 2012 07:15 Integra wrote:
On September 11 2012 07:10 Geiko wrote:
On September 10 2012 19:01 Morfildur wrote:

Now i ordered the two guys responsible to fix that ASAP. They started with changing the code to:

if (MOBILE_TEMPLATE == 'true')
{
...
}


I wanted to punch them sooooo hard.
Luckily i'm out of here at the end of the month...


So, not being a programmer myself, why doesn't their solution work ?

The problem is that they are using string operators when they should be using boolean. It clearly demonstrates that they have no fucking idea of what they are doing.

EDIT; let me clarify.

When you want to actually want to type something, like some sort of output to the user for example you would use a string, like this:

$string =' hello this is a message to the user';
echo $string;

However in this case they are simply to evaluate what path to take in a condition:

IF ($condition==true) {

}

In this case using a string makes no sense and a boolean should be used instead.



Ok that's what I thought too.

But after making the mistake to use strings instead of booleans, isn't it faster to fix the bug like they did, rather than change the type of the variable and risk having bugs every other place where the variable was used ?

No, not if they used proper OOP encapsulation... which probably is sketchy.... you could do refactoring that comes with any professional editor so it should not be a problem. Also the benefit from keeping the bad code is only short term, the long term effect is that it will cost more time.

There is also a programmers standpoint on this. The code becomes "dumb" and you won't be able to read anything from it. Every time someone uses a string it's understood that its suppose to be used in some sort of output, thus you can predict what the code does, it becomes more easy to read and navigate in it. Once you start mixing it up you don't know wtf people are intending with the codes anymore. it becomes impossible to actually understand it. Never mind even trying to debug or add more code to it later... Further Strings takes more memory and process power to process compared to booleans.
"Dark Pleasure" | | I survived the Locust war of May 3, 2014
Loser777
Profile Blog Joined January 2008
1931 Posts
September 10 2012 23:12 GMT
#22
I don't think you could get through the first class of any programming major at any school like that... Given that most schools teach the boolean type before strings and that one often needs to use some sort of string library before that kind of code will even compile.

I'm just going to turn a blind eye and pretend that those kinds of coders only exist in web design for now.


6581
tofucake
Profile Blog Joined October 2009
Hyrule19026 Posts
September 10 2012 23:58 GMT
#23
lol

it's PHP

a variable is any type

you can do
$foo = true;
$foo = 12.381;
$foo = "bar";
$foo = 4;
$foo = array()

and get no errors...not even any warnings
Liquipediaasante sana squash banana
dartoo
Profile Joined May 2010
India2889 Posts
September 11 2012 00:26 GMT
#24
lol.I've certainly seen stuff like that at my job too. and my first reaction was...oh these guys must be entry level programmers/just getting off the block, and often when you correct them..in a maybe slightly harsh tone they really start to lose their stuff .
Release
Profile Blog Joined October 2010
United States4397 Posts
September 11 2012 02:45 GMT
#25
LOLOLOLOL

I'm in my first month of Comp Sci at school and i understand this...
☺
The_LiNk
Profile Blog Joined July 2010
Canada863 Posts
September 11 2012 05:20 GMT
#26
I've been learning PHP over the course of the month and it's entertaining to be able to read the codes and shake my head to this. I can't imagine making such...mistakes.
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
September 11 2012 05:29 GMT
#27
--- Nuked ---
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 11 2012 08:45 GMT
#28
On September 11 2012 07:10 Geiko wrote:
Show nested quote +
On September 10 2012 19:01 Morfildur wrote:

Now i ordered the two guys responsible to fix that ASAP. They started with changing the code to:

if (MOBILE_TEMPLATE == 'true')
{
...
}


I wanted to punch them sooooo hard.
Luckily i'm out of here at the end of the month...


So, not being a programmer myself, why doesn't their solution work ?


Their solution works but next time another programmer works with that and gets told "that constant is always either true or false" he writes "if (MOBILE_TEMPLATE == true)" and wonders why it doesn't work the way he thinks it would.

Yes, changing true to "true" fixes this bug initially but by not fixing the original problem you invite a huge mess of possible future bugs that are hard to trace. Suddenly you never know if anything is true or "true" and the whole code becomes a mess where every time you add or change a line of code you have to triple-check to make sure it actually works.
Talin
Profile Blog Joined September 2010
Montenegro10532 Posts
September 11 2012 12:10 GMT
#29
At first I was thinking like "well this happens all the time due to carelessness, it's just funny that they couldn't find it", but then I read the last part and the "solution" and it did make me chuckle.
cascades
Profile Blog Joined October 2009
Singapore6122 Posts
Last Edited: 2012-09-11 14:33:22
September 11 2012 14:33 GMT
#30
Is entertaining want more. Will give cookie and stars.
HS: cascades#1595 || LoL: stoppin
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
September 11 2012 15:20 GMT
#31
I have never even studied programming beyond being forced to write stupid bits of excel VBA and making othello and java

And i can still understand this lol

Though i made some waaay more horrible mistakes when i first wrote othello hahahaha

But its mainly because nobody taught me anything so i didn't know where to even start, to get a working piece of logic together was already a miracle for me
teamamerica
Profile Blog Joined July 2010
United States958 Posts
September 11 2012 18:03 GMT
#32
PHP lol. There used to be a bug in their md5 digest function where when you passed a string and a salt, it just returned the salt.
RIP GOMTV. RIP PROLEAGUE.
13k
Profile Joined November 2009
Brazil16 Posts
Last Edited: 2012-09-11 19:18:51
September 11 2012 19:05 GMT
#33
Coming from the Ruby community and seeing many noobs adopting Rails (kinda) successfully, I'd mostly advocate towards using easy to use frameworks that are opinionated enough to force people to not make certain mistakes (avoids mistakes by doing things right instead of letting inexperienced programmers do it).

Such platforms that presents concepts like DRY, convention over configuration and MVC to the newcomer, in a easy way, are doing a great job educating while being useful. Even following tutorials that do not explain shit about what's going on already does good by practicing those concepts blindly.

Another point is to use languages/frameworks that does most things for the user. Less code from inexperienced people equals less bugs.

For PHP frameworks, anything between CakePHP, CodeIgniter and Symphony are good choices (refer to http://www.phpframeworks.com and http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks for more tho)

Edit: All that said, I understand that the majority of times you don't have the choice to either adopt or not certain technologies (boss won't let, project already started, etc). But you can always try to make it happen next time (and there's always a next time).
Dream is destiny
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 11 2012 19:22 GMT
#34
On September 12 2012 04:05 13k wrote:
Coming from the Ruby community and seeing many noobs adopting Rails (kinda) successfully, I'd mostly advocate towards using easy to use frameworks that are opinionated enough to force people to not make certain mistakes (avoids mistakes by doing things right instead of letting inexperienced programmers do it).

Such platforms that presents concepts like DRY, convention over configuration and MVC to the newcomer, in a easy way, are doing a great job educating while being useful. Even following tutorials that do not explain shit about what's going on already does good by practicing those concepts blindly.

Another point is to use languages/frameworks that does most things for the user. Less code from inexperienced people equals less bugs.

For PHP frameworks, anything between CakePHP, CodeIgniter and Symphony are good choices (refer to http://www.phpframeworks.com and http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks for more tho)


Well, 6 month ago there were talks about our company using a framework for future projects.
Sadly, the head of the department doesn't trust frameworks "because they might have bugs that could be used by hackers" so we still haven't adapted any.

No, i'm not kidding.
PassiveAce
Profile Blog Joined February 2011
United States18076 Posts
September 11 2012 20:25 GMT
#35
You should write a letter about everything you think about the place and the people and tape it to your boss' door when you leave.
Call me Marge Simpson cuz I love you homie
13k
Profile Joined November 2009
Brazil16 Posts
Last Edited: 2012-09-12 10:39:46
September 12 2012 10:32 GMT
#36
On September 12 2012 04:22 Morfildur wrote:

Well, 6 month ago there were talks about our company using a framework for future projects.
Sadly, the head of the department doesn't trust frameworks "because they might have bugs that could be used by hackers" so we still haven't adapted any.

No, i'm not kidding.


oh man... that's so sad in so many levels. employing cheap developers that don't understand boolean logic or operator precedence, for example, is so, so much more dangerous... it's also costs so much more, given that you'll inevitably end up in the dreaded 20% feature / 80% bugfix cycle...

it would make sense if they are talking about paying thousands for licenses, but there are so many professional quality open source / free frameworks out there.

it really surprises me tho, that companies still don't use everything they can to ship as fast and as cheaply as possible... I sometimes thought companies were certainly profiting from open source frameworks and still not "paying back" anything in the form of contribution or sponsoring, etc... I guess I was wrong
Dream is destiny
zatic
Profile Blog Joined September 2007
Zurich15325 Posts
September 12 2012 13:15 GMT
#37
Frameworks are not the solution to shitty programmers though. The same guys will also implement the framework - and do just as much wrong as if they would code stuff themselves.

In the end, you just need able programmers, whether you code from scratch or implement based on a framework.
ModeratorI know Teamliquid is known as a massive building
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 12 2012 15:30 GMT
#38
On September 12 2012 19:32 13k wrote:
Show nested quote +
On September 12 2012 04:22 Morfildur wrote:

Well, 6 month ago there were talks about our company using a framework for future projects.
Sadly, the head of the department doesn't trust frameworks "because they might have bugs that could be used by hackers" so we still haven't adapted any.

No, i'm not kidding.


oh man... that's so sad in so many levels. employing cheap developers that don't understand boolean logic or operator precedence, for example, is so, so much more dangerous... it's also costs so much more, given that you'll inevitably end up in the dreaded 20% feature / 80% bugfix cycle...

it would make sense if they are talking about paying thousands for licenses, but there are so many professional quality open source / free frameworks out there.

it really surprises me tho, that companies still don't use everything they can to ship as fast and as cheaply as possible... I sometimes thought companies were certainly profiting from open source frameworks and still not "paying back" anything in the form of contribution or sponsoring, etc... I guess I was wrong

Can you type out that last paragraph again? I don't understand what you said.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
September 12 2012 15:55 GMT
#39
--- Nuked ---
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2012-09-12 19:45:43
September 12 2012 19:42 GMT
#40
On September 13 2012 00:55 Inori wrote:
Show nested quote +
On September 12 2012 22:15 zatic wrote:
Frameworks are not the solution to shitty programmers though. The same guys will also implement the framework - and do just as much wrong as if they would code stuff themselves.

In the end, you just need able programmers, whether you code from scratch or implement based on a framework.

But they do teach best practices to those that are open to learning.

And worst case scenario with a framework you get semi-working semi-hackish code that at least on some levels is secure and bug-free as opposed to one big security hole, filled with spaghetti code hell that some newbie developers produce.

Some of the vulnerabilities in frameworks become well known whereas with self built code, you don't exactly know the vulnerabilities are. I'm mostly thinking of joomla as a cms because it's written as a framework, and yet it has addons that are vulnerabilities.

I think it's like how people build viruses for Windows.

Frameworks provide a lot of code that you don't have to write though and there are often addons or tutorials to do things in frameworks that are more standardized than starting from scratch. Do you ever find that frameworks are like black boxes though?
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Prev 1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
BSL: ProLeague
18:00
Bracket Stage: Day 2
HBO vs Doodle
spx vs Tech
DragOn vs Hawk
Dewalt vs TerrOr
ZZZero.O323
Liquipedia
Fire Grow Cup
15:00
#10 - Playoffs
CranKy Ducklings274
MindelVK60
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 564
IndyStarCraft 229
BRAT_OK 132
ROOTCatZ 112
MindelVK 60
CosmosSc2 43
EnDerr 5
StarCraft: Brood War
Calm 3204
Rain 1929
Horang2 656
ZZZero.O 323
firebathero 175
Aegong 59
PianO 35
League of Legends
Dendi1702
JimRising 508
Counter-Strike
fl0m6548
olofmeister2520
Stewie2K151
Super Smash Bros
C9.Mang07470
Chillindude29
Heroes of the Storm
Liquid`Hasu559
Khaldor215
Other Games
tarik_tv43915
FrodaN1906
summit1g1626
B2W.Neo940
Pyrionflax194
ArmadaUGS101
ViBE31
Organizations
Dota 2
PGL Dota 2 - Secondary Stream8608
Other Games
gamesdonequick833
BasetradeTV164
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• HeavenSC 61
• Adnapsc2 24
• Dystopia_ 5
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• 3DClanTV 8
• HerbMon 8
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21547
• Ler129
Other Games
• imaqtpie1355
• Shiphtur296
Upcoming Events
Replay Cast
1d 4h
Replay Cast
1d 14h
WardiTV Invitational
1d 15h
WardiTV Invitational
1d 15h
GSL Code S
2 days
Rogue vs GuMiho
Maru vs Solar
Online Event
3 days
Replay Cast
3 days
GSL Code S
3 days
herO vs Zoun
Classic vs Bunny
The PondCast
3 days
Replay Cast
4 days
[ Show More ]
WardiTV Invitational
4 days
Korean StarCraft League
5 days
CranKy Ducklings
5 days
WardiTV Invitational
5 days
Cheesadelphia
5 days
GSL Code S
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-06-05
BGE Stara Zagora 2025
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 2
2025 GSL S2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Murky Cup #2
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.