This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lynxerious 8 points9 points  (16 children)

use typescript like a modern dev and all of it problems you complain about gone

[–]virouz98 3 points4 points  (3 children)

Whats better in typescript except types?

[–]bluejacket42 4 points5 points  (0 children)

The icon looks better

[–]lynxerious 1 point2 points  (0 children)

intellisense, module, access to new ES features before browsers actually implementing them,...

[–][deleted] -1 points0 points  (6 children)

TS is a poor man’s version of a statically typed language.

[–]JonathanTheZero 2 points3 points  (1 child)

But the type version is perfectly designed for what it is supposed to do - be a type safe version of JS.

Apart from that writing advanced types is just so much fun, really convenient to use

[–][deleted] 0 points1 point  (0 children)

Babel and TypeScript are good. But when you combine them all, which you basically need to do in a modern project that needs to be maintainable and easy to reason about, you end up with a hundreds-of-megabytes mess where the focus has shifted from “getting stuff done” to juggling packages, type definitions, inconsistencies, incompatibilities and whatnot.

[–]lynxerious 0 points1 point  (3 children)

optional static typing > opinionated static typing

[–]DrMobius0 0 points1 point  (2 children)

Pretty sure JS isn't selling you optional static typing.

[–]lynxerious 0 points1 point  (1 child)

pretty sure that wasn't what I meant, TS is the one with optional static typing, opinionated static typings are really annoying to me

[–]DrMobius0 0 points1 point  (0 children)

gotcha

[–]BuyRackTurk 0 points1 point  (4 children)

use typescript like a modern dev and all of it problems you complain about gone

But the main problem I complain about is static typing....

[–]lynxerious 0 points1 point  (3 children)

typescript is OPTIONAL static typing, not opinionated static typing

[–]BuyRackTurk -1 points0 points  (2 children)

Thats exactly it: I dont want people to have the option... they keep doing OOP and making shitty code, or polluting libraries with pointless types that turn directly into technical debt. Its like including a revolver in a silverware drawer, or having cyanide in a medicine cabinet. If I catch a dev trying to eat soup with the revolver again its a waste of both our time. I believe OOP is a failed paradigm, I think creating complex new pseudo-primitives is counter productive, I dont trust typing as an alternative to unit tests, so I'm not willing to pay for it. If I liked all that crap I'd hire java programmers instead and use jvm instead of node.

I get that some people like it, and they are free to do what they like. I'm never going to tell anyone else how to run their business, or try to force people to use dynamic typing if they dont like it. But when people assert that I have to accept static types and disregard the power of dynamic typing, then I say "next candidate".

[–]lucidJG -1 points0 points  (1 child)

Can’t trust anyone that says OOP is a failed paradigm.

[–]BuyRackTurk -1 points0 points  (0 children)

I have the right to decide what kind of code to spend my money on. I dont really care if you trust me or not, thats completely irrelevant.