To type or not to type: quantifying detectable bugs in JavaScript | the morning paper

https://blog.acolyer.org/2017/09/19/to-type-or-not-to-type-quantifying-detectable-bugs-in-javascript/

Very interesting scientific analysis of using Flow/TypeScript annotations to autodetect 15% of bugs in JavaScript 
To type or not to type: quantifying detectable bugs in JavaScript Gao et al., ICSE 2017

Is it worth the extra effort to add static type annotations to a JavaScript project? Should I use Facebook’s Flow or Microsoft’s TypeScript if so? Will they really catch bugs that would otherwise have made it to master?

Both Flow and TypeScript are pretty good, and conservatively either of them can prevent about 15% of the bugs that end up in committed code.

0 Comments

Be the first to post a comment.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

*