MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/d853ul/knowing_how_to_code_beforehand/f18eabp/?context=9999
r/ProgrammerHumor • u/Cenggo • Sep 23 '19
264 comments sorted by
View all comments
124
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.
76 u/LPExpert Sep 23 '19 Then what do I do about Java warning of an import not being used but that's definitely being used 52 u/ythl Sep 23 '19 Open a bug report with your Java compiler 7 u/EishLekker Sep 23 '19 And while you wait for that bug to be fixed, and your project to be able to upgrade to that version, you do what exactly? Put the whole project on ice because it doesn't compile because all warnings are equal to errors? 1 u/TopHatEdd Sep 23 '19 Don't be a smartass. It's unbecoming. Just add a suppress for that warning. → More replies (1)
76
Then what do I do about Java warning of an import not being used but that's definitely being used
52 u/ythl Sep 23 '19 Open a bug report with your Java compiler 7 u/EishLekker Sep 23 '19 And while you wait for that bug to be fixed, and your project to be able to upgrade to that version, you do what exactly? Put the whole project on ice because it doesn't compile because all warnings are equal to errors? 1 u/TopHatEdd Sep 23 '19 Don't be a smartass. It's unbecoming. Just add a suppress for that warning. → More replies (1)
52
Open a bug report with your Java compiler
7 u/EishLekker Sep 23 '19 And while you wait for that bug to be fixed, and your project to be able to upgrade to that version, you do what exactly? Put the whole project on ice because it doesn't compile because all warnings are equal to errors? 1 u/TopHatEdd Sep 23 '19 Don't be a smartass. It's unbecoming. Just add a suppress for that warning. → More replies (1)
7
And while you wait for that bug to be fixed, and your project to be able to upgrade to that version, you do what exactly? Put the whole project on ice because it doesn't compile because all warnings are equal to errors?
1 u/TopHatEdd Sep 23 '19 Don't be a smartass. It's unbecoming. Just add a suppress for that warning. → More replies (1)
1
Don't be a smartass. It's unbecoming. Just add a suppress for that warning.
→ More replies (1)
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.