r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

124

u/ythl Sep 23 '19

I don't get it.

Your code should never have warnings, that's a sign you are doing something sketchy. At my company we enable all warnings as errors.

3

u/nicman24 Sep 23 '19

lol javascript linters make missing ; a warning

48

u/RealBendie Sep 23 '19

Because missing semicolons can lead to unexpected behavior.

0

u/patrickfatrick Sep 24 '19

Very very rarely, there’s a reason Standard opts out of them. I like semicolons for the record but just for readability.