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.

1

u/crusty_cum-sock Sep 23 '19

I use .NET and StyleCop takes it to a whole new level. You could compile just fine with zero warnings, then run StyleCop on it and you'll see 12,398 warnings on a "Hello World" program. Of course StyleCop by default is strict af about literally everything, but it's a good tool for keeping all of your code very consistent.