Because neither an advanced type system nor static analysis could catch bugs in program logic?) The benefits of static typing (complie-time checks) are grossly exaggerated. If the claims were true, Java itself and Java projects would be much less buggy.)
Have you looked at the clang analyzer that's integrated into Xcode ( http://clang-analyzer.llvm.org/ )? It doesn't catch everything, and sometimes gives false positives, but it is quite amazing how it visualizes problems in the program flow, going through several levels in the call hierarchy, following variable assignments over function calls, etc... in a few cases I was convinced that a problem was a false positive…
Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
81–90 of 130 posts
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#82Earlier quoted context omitted.
>Java code does tend to be much less buggy when compared with dynamic-typed code I only see this happen when both the Java code and the dynamically typed code both have zero tests. IME, once you actually start taking integration testing seriously and actually exercise your code even just a little , the benefits of static typing evaporate pretty quickly.
Then you indirectly agree that java code requires less tests, which means static typing helps!
If a test becomes unnecessary if you have static typing then you should never have written it in the first place. It's a bad test.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#83Earlier quoted context omitted.
if you have to make a dozen of grep to exclude trivial results, it might be a hint there's something wrong with the pertinence of your output or the customizability of your tool
From another perspective, hacking often involves making broken things work better.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#84But never reveal your secret tools!
Well, and if they get curious about your magical Bug-Finding-Skills, they are easy to convince to use these tools. Its a kind of marketing.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#85It's Alt+F11 in Visual Studio. Between that and Resharper, life is good.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#86Mainly because most of the tool reports freely mix critical issues with stuff that is just opinionated bullshit (e.g. 80 character length lines). When the output is as long as your arm and you have pick through it with a fine toothcomb to find the things that matter (and even they aren't necessarily causes of bugs), the whole idea becomes substantially less appealing.
Sounds like you're in the majority.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#87Mainly because most of the tool reports freely mix critical issues with stuff that is just opinionated bullshit (e.g. 80 character length lines). When the output is as long as your arm and you have pick through it with a fine toothcomb to find the things that matter (and even they aren't necessarily causes of bugs), the whole idea becomes substantially less appealing.
For example, you can get very fine grained control over pylint by asking it to generate a config file, and reading through it (it's remarkably well commented).
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#88I used lint for C some 20 or 25 years ago, then moved to using dynamical languages (Perl, Ruby, JS.) Not much use of static analysis tools for those languages I thought (but for example check https://www.infinum.co/the-capsized-eight/articles/top-8-too... ). I used Java sometimes and took advantage of Netbeans/Eclipse's hints about Java code but I use emacs for everything else (some vim too). I used jslint on a JavaS…
Ditto and likewise - same applies to pylint, which must have been the most opinionated piece of software I've ever used. The trouble is that there's some very useful warnings buried in the opinion spew - warnings which would be an error in other languages.
I say this as someone who took 10 minutes to generate and configure the pylintrc for a new project. After taking this time, pylint has been quite useful.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#89Nice advertisement. It's Alt+F11 in Visual Studio. Between that and Resharper, life is good.
Re: Why Don't Software Developers Use Static Analysis Tools to Find Bugs?
#90Because neither an advanced type system nor static analysis could catch bugs in program logic?) The benefits of static typing (complie-time checks) are grossly exaggerated. If the claims were true, Java itself and Java projects would be much less buggy.)
I wouldnt call Java an "advanced type system". Take a look at Idris then try to say that with a straight face:
>Because neither an advanced type system nor static analysis could catch bugs in program logic
It certainly does if you indeed use an advanced type system.