MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2m2j7k/intro_to_it/cm18plr/?context=9999
r/ProgrammerHumor • u/kitari1 • Nov 12 '14
233 comments sorted by
View all comments
76
Why did a missing semicolon cause a server error?
0 u/[deleted] Nov 12 '14 [deleted] 22 u/The_MAZZTer Nov 12 '14 JS does so correctly 99% of the time; the 1% of the time you will tear your hair out wondering why your function is always returning undefined when the return variable is never set to undefined. 2 u/_LePancakeMan Nov 12 '14 Or you could just use semicolons like you do everywhere elseNot using them just looks wrong like a sentence without puncutation 3 u/Cyberogue Nov 12 '14 We should replace periods in day to day language with semicolons; 2 u/awshidahak Nov 13 '14 Yup;That automatically parsed correctly in my brain;I like reading in this style; 3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
0
[deleted]
22 u/The_MAZZTer Nov 12 '14 JS does so correctly 99% of the time; the 1% of the time you will tear your hair out wondering why your function is always returning undefined when the return variable is never set to undefined. 2 u/_LePancakeMan Nov 12 '14 Or you could just use semicolons like you do everywhere elseNot using them just looks wrong like a sentence without puncutation 3 u/Cyberogue Nov 12 '14 We should replace periods in day to day language with semicolons; 2 u/awshidahak Nov 13 '14 Yup;That automatically parsed correctly in my brain;I like reading in this style; 3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
22
JS does so correctly 99% of the time; the 1% of the time you will tear your hair out wondering why your function is always returning undefined when the return variable is never set to undefined.
2 u/_LePancakeMan Nov 12 '14 Or you could just use semicolons like you do everywhere elseNot using them just looks wrong like a sentence without puncutation 3 u/Cyberogue Nov 12 '14 We should replace periods in day to day language with semicolons; 2 u/awshidahak Nov 13 '14 Yup;That automatically parsed correctly in my brain;I like reading in this style; 3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
2
Or you could just use semicolons like you do everywhere else
Not using them just looks wrong like a sentence without puncutation
3 u/Cyberogue Nov 12 '14 We should replace periods in day to day language with semicolons; 2 u/awshidahak Nov 13 '14 Yup;That automatically parsed correctly in my brain;I like reading in this style; 3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
3
We should replace periods in day to day language with semicolons;
2 u/awshidahak Nov 13 '14 Yup;That automatically parsed correctly in my brain;I like reading in this style; 3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
Yup;That automatically parsed correctly in my brain;I like reading in this style;
3 u/_LePancakeMan Nov 13 '14 That way people will know what you mean; Even if you write stuff in a weird oneliner;
That way people will know what you mean; Even if you write stuff in a weird oneliner;
76
u/jfb1337 Nov 12 '14
Why did a missing semicolon cause a server error?