|
|
|
|
|
by ainar-g
2438 days ago
|
|
It's a constant struggle against the current. Dynamically-typed
languages are often “good enough for the time being”. I have the same
issue explaining to our C/C++/Obj-C team why they should use static
(Clang-Tidy, Infer, PVS-Studo) and dynamic (ASan, MSan, UBSan) analysis
tools. They just keep giving me basically the same response of “I am
a good programmer, and my code is good, and shame on you for even daring
to think that a mere machine could find bugs in my code!”. I don't know
what kind of status anxiety causes it. It also makes me think about
what kind of other I am missing because of the was I keep thinking
that I do that thing well-enough myself. |
|
For me, it's not "status anxiety". It's simply not worth the effort.
The last couple static analysis tools I ran on my programs, I spent a while getting the tool to not-crash (because even though the authors obviously had a static analysis tool themselves, they either didn't bother to run it on their own code, or it wasn't good enough to find actual issues). These tools flagged only a couple issues, and almost all of them were places where it couldn't really cause any problems, but the type system was not strong enough for me to prove why it couldn't go bad. So I spent a while sorting through false-positives.
I'm not going to spend hours with a tool to find only a couple (real) bugs, which no user has ever reported seeing, and which I've gotten no automated crash reports about. I have much better uses for my time.