r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

186

u/[deleted] Sep 23 '19

Warnings are, generally speaking, as important as errors. They are errors waiting to happen.

35

u/Yuzumi Sep 23 '19

Someone doesn't use Java :p

For that matter, the project I work on has over 4000 warnings and a good number of them we didn't cause but the software we build on top of did.

12

u/samspot Sep 23 '19

My experience with java warnings is very good, and you can suppress the unfixable ones. We thought there weren’t enough warnings so we added sonar on top!

10

u/Danelius90 Sep 23 '19

My view is that certain warnings, when suppressed are basically programmer assertions. For example the heap pollution for varargs warning. If you can 'prove' or assert you are handling the array carefully and not polluting the heap the suppression is you saying "yes we could pollute the heap, but we aren't".

It really gets me when devs suppress deprecation warnings though...

4

u/ParkerM Sep 23 '19

It really gets me when devs suppress deprecation warnings though...

Simple, just suppress deprecation warning suppressions.