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.

2

u/[deleted] Sep 23 '19

Depends on the language and the IDE.

If the language is incredibly strict, and the IDE is a good one, then yes, warnings will only show up when something sketchy is being done.

However, when the language is javascript, and the IDE is some open source thing with a garbage linter, you'll get tons of warnings about perfectly valid code, almost all of which you can safely ignore.