Java warnings are very minor compared to C warnings though. C warnings are bugs waiting to happen, java warnings are usually minor formatting differences that are pretty safe to ignore.
it's still your doing something messy in java usually.
my ignore line is intellj bitching about pep8, it's always something pep8 says no such fucking thing about. some knob over at intellj is just enforcing his favored code formatting style and parading it as being in the spec.
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?
And then there is GoogleWebToolkit just showing a random 'Copying 97 files with compilation errors' during my build and going on as if nothing was the matter... and so far I don't know if there actually is an error as everything seems to work & it was like that since I pulled the project...
Depends. Visual Studio WPF designer often can go ape-shit with errors and warnings in xaml code. Still compiles fine and works fine. This is widely known and goes on for a few years now. However, when reported to Microsoft, they are like "Minor annoyance, not worth spending precious resources to fix it, closing ticket. ¯_(ツ)_/¯ ".
The same thing with Cuda and VS. It goes mental when encounters
In my company the build system warns about declaring the variables in a different order then initiating them, not necessarily meaningful (although can be). But any experienced developer delivered some quick and dirty work some time in his life so this is somewhat relateable
I'm sure you know this, but in C++, you can specify the constructor's initializer list in any order, but the actual order of initialization is still in the order the variables are defined in the header. People prefer the no-reordering warning because it helps you reason about the constructor a little easier
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.
And auto formatters will add them for you so you don't get semicolon bugs. Shit like that is the whole purpose of linters - preemptively avoid common patterns which cause bugs.
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.