3 ms·
> They catch the simplest of newbie bugs that are rare in modular, linted, unit-tested codebases. They catch 15% of the bugs in Javascript projects on GitHub.
by marcosdumay 9y ago
> They catch the simplest of newbie bugs that are rare in modular, linted, unit-tested codebases.
They catch 15% of the bugs in Javascript projects on GitHub.
Why do people insist on restricting their static code analysis into heuristic rules when there are so many perfectly good complete rules to be checked with a type system?
- flavio81 9y ago>They catch 15% of the bugs in Javascript projects on GitHub. Using JS projects in GitHub is a really misleading sample. GitHub is used by all kinds of purposes, for example most coding bootcamps and institutes here tell the students to upload their code to GitHub. You have, for each institution, about 400 Javascript GitHub repositories each year, full of code written by true beginners. GitHub is simply a big container of code for literally everybody, so judging kind of bugs produced by looking at what it's inside the Github repositories is akin to judging how many gramatical errors book authors make by taking a look at all the MS word documents stored in Dropbox.
- skybrian 9y agoThe study only includes projects where people file bugs and fix them. That excludes most true beginners since they won't use the issue tracker at all.
- klibertp 9y ago> Why do people insist on restricting their static code analysis Because it's trivially easy to show cases where a static type system rejects useful and correct code. Yes, static type systems do "eliminate whole classes of errors", but they also eliminate whole classes of correct code! Is the freedom from (some, not all!) runtime type errors really worth the loss of expressive power? Well, the answer is of course "it depends" on specific circumstances: sometimes it's worth it, sometimes it's not and most of the time the very choice (ie. should I write in statically or dynamically typed language in this case?) is not important at all because tons of other choices have much more of an impact on whether the project succeeds or not.