News for hackers. Stuff that matters.
Re:The TypeScript Tax by kardianos on Friday January 25, 2019 @04:38PM (#19002761)
For any JS that is over 100 lines, I will use Typescript without thinking.

This is 20% for bugs, and 80% for sanity in long term maintenance. Refactoring is so much better / safer when you have a compilation process and at a minimum, types.

I just wish I could use Typescript without npm.

Re:The TypeScript Tax by wanted2 on Friday January 25, 2019 @06:07PM (#19003494)
If you write 20% more bugs in pure JS you definitely should re-evaluate your skill. I'd never hire someone saying that to me.
Re:The TypeScript Tax by Shahor on Friday January 25, 2019 @07:27PM (#19003884)
You should probably re-read the comment, because that is not what he's saying ;)
Re:The TypeScript Tax by oaiey on Saturday January 26, 2019 @07:44AM (#19006057)
If you write 6 bugs on 1 million locs of vanilla JS and 5 bugs with TS enabled, he can work for me in vanilla JS.