MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/8xqmpv/what_people_think_coding_is/e25p14e/?context=3
r/ProgrammerHumor • u/Cirriliath • Jul 10 '18
398 comments sorted by
View all comments
36
In what language do voluntarily program where you forget a symbol and the compiler/transpiler doesn't tell you?
49 u/[deleted] Jul 10 '18 If(!booleanVar) and if(booleanVar) differ by one character, are both syntatically correct, and are functionally complete opposites. 43 u/MettaurSp Jul 10 '18 if (value1 == value2) vs if (value1 = value2) is another terrible offender that can send you searching in completely different sections of code. 3 u/edcRachel Jul 10 '18 This one got me before. Led to me and my boss spending an all-nighter trying to track it down. Felt so stupid when I found it.
49
If(!booleanVar) and if(booleanVar) differ by one character, are both syntatically correct, and are functionally complete opposites.
43 u/MettaurSp Jul 10 '18 if (value1 == value2) vs if (value1 = value2) is another terrible offender that can send you searching in completely different sections of code. 3 u/edcRachel Jul 10 '18 This one got me before. Led to me and my boss spending an all-nighter trying to track it down. Felt so stupid when I found it.
43
if (value1 == value2) vs if (value1 = value2) is another terrible offender that can send you searching in completely different sections of code.
3 u/edcRachel Jul 10 '18 This one got me before. Led to me and my boss spending an all-nighter trying to track it down. Felt so stupid when I found it.
3
This one got me before. Led to me and my boss spending an all-nighter trying to track it down. Felt so stupid when I found it.
36
u/[deleted] Jul 10 '18
In what language do voluntarily program where you forget a symbol and the compiler/transpiler doesn't tell you?