this post was submitted on 18 Oct 2023
325 points (96.0% liked)

Programmer Humor

32558 readers
639 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] alokir@lemmy.world 17 points 1 year ago (1 children)

Typescript is a language, Node is a platform and framework. You can use Typescript in your Node project, they're not mutually exclusive.

The way I see it Typescript is more popular than ever, almost all (popular) libraries come with types and every job offer I get they use Typescript.

And with good reason, our team recently took over a small Javascript app and there are tons of bugs that would never have existed if they were using Typescript. Things like they refactored something but missed to update a reference, or misspelled a variable name, failed to provide a required parameter to a funcrion, referenced a field that existed in another config object etc.

[–] kautau@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (1 children)

And thankfully we might be getting to a point where TS no longer needs to exist: https://github.com/tc39/proposal-type-annotations

It’s about time JS gave us the ability to be strict on types, and have that as part of the interpreter as opposed to needing to transpile TS with the overhead involved