News for hackers. Stuff that matters.
Re:The TypeScript Tax by ng12 on Saturday January 26, 2019 @01:28PM (#19007585)
> But I'm pretty sure if you can code Javascript well Typescript only stands in your way when you want to create something.

You and the author are both overly concerned about writing code and completely ignoring maintainability. If you write your code once and never touch it again, sure, use plain JS. If you're going to come back in six months month and refactor it or hand it off to a co-worker and expect him to write some code TypeScript is a godsend.

Re:The TypeScript Tax by black-alert on Sunday January 27, 2019 @06:53AM (#19011375)
you mean Python and Ruby like languages are unmaintainable and therefore deprecated? I rarely have a problem with maintainability in JS because of types, but I do have problems with poor constructs, poor readability, dependency issues and so on. It's a typical illusion of TS proponents that code becomes magically maintainable.

JS developers moving to TS should at least do a few weeks of Assembly and C programming to first understand the origin of types. I've spoken too many front-end devs who don't have a clue what a type actually is and at the same time promote TS. It's a godsend we don't need them in scripting languages. Use tooling to catch issues, that's the future, TS is just a whim.

Re:The TypeScript Tax by z3t4 on Saturday January 26, 2019 @05:04PM (#19008807)
There's more to maintainability then just adding types. Maintainability is a process not a language.
Re:The TypeScript Tax by ng12 on Saturday January 26, 2019 @06:36PM (#19009296)
Yes, and TypeScript is an incredibly powerful tool to make that process easier.
Re:The TypeScript Tax by z3t4 on Sunday January 27, 2019 @04:41AM (#19011089)
It's like using a bandage to prevent an injury. Yes it's good to have, but it doesn't prevent anyone from writing unmanageable code. Contrary it can make it even easier to write unmaintainable code.
Re:The TypeScript Tax by ng12 on Sunday January 27, 2019 @06:49PM (#19014494)
You can say that about literally any technology. Nobody's claiming TypeScript will fix all your problems and discover all the secrets of the universe: it's just a useful tool that well outweighs the overhead it adds.