this post was submitted on 12 Nov 2025
398 points (96.3% liked)

Programmer Humor

27358 readers
850 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] shalafi@lemmy.world 4 points 5 days ago (3 children)

Somebody clue me in on Typescript. I'm somewhat familiar with scripting, PowerShell guy here.

[–] Feyd@programming.dev 13 points 5 days ago (1 children)

Is JavaScript plus static type checking and a few other syntax enhancements. It is much easier to maintain software with static type checking. The typescript compiler outputs JavaScript

[–] sobchak@programming.dev -4 points 4 days ago

It is much easier to maintain software with static type checking.

Debatable

[–] mercano@lemmy.world 8 points 5 days ago (1 children)

It’s a superset of JavaScript. The big add is static typing, reducing the chance of runtime type errors. It compiles to vanilla JavaScript for distribution. Other new features include enums, interfaces, and generics for more type safety.

[–] humorlessrepost@lemmy.world 2 points 4 days ago (2 children)

Genuine question: is it really a superset if it’s not still valid javascript? Isn’t it more of an abstraction layer on top of javascript?

[–] mercano@lemmy.world 3 points 4 days ago

Superset means all valid JavaScript is also valid Typescript. (At least, so long as you don’t have compiler setting on that requires all variables to have a type declared.)

[–] CookieOfFortune@lemmy.world 1 points 4 days ago

In practice people don’t use Typescript as a superset since they have stricter compiler settings, which would make valid JavaScript fail to compile.

[–] AugustWest@lemmy.world 6 points 5 days ago* (last edited 5 days ago) (1 children)

It’s basically just a programming language based on and inclusive of JavaScript, but with extra features.

[–] embed_me@programming.dev 1 points 5 days ago

Javascript but types ( I haven't used it)