this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

19817 readers
47 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
[โ€“] [email protected] 54 points 1 year ago (1 children)

TypeScript of course. The compiler often times catches mistakes in variable names, API methods, whatever. So it saves time by not having to run the whole application all the time. Also the input help is much better, when the editor knows sth is a string or a number, for example.

[โ€“] [email protected] 7 points 1 year ago (1 children)

Oh yeah. Or when it's a union of multiple strings or an enum and you get that sweet popup of all your options. So good ๐Ÿฅน

[โ€“] [email protected] 5 points 1 year ago

And being able to use more complex object types like discriminated unions without having to constantly look up what's in them!