this post was submitted on 08 Sep 2023
530 points (94.0% liked)

Programmer Humor

19817 readers
1150 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
[–] jpeps 107 points 1 year ago (23 children)

What Typescript drama is there? It's fantastic. It's been an industry standard for years. In my anecdotal experience the only people that hate it are juniors who did pure JS at their bootcamp and seniors that have refused to learn anything for the last 5 years.

[–] fusio 23 points 1 year ago (2 children)

or people used to work alone never having to go back to their code (e. g. bad consultancy jobs)

[–] jpeps 18 points 1 year ago (1 children)

Even alone I find it indespensible. I find it's mainly useful for writing code correctly the first time around.

[–] fkn -1 points 1 year ago (1 children)

Some people think better with typing information explicitly written out. Some people don't. In my opinion it is a creativity thing. Some people like to make art that is photo realistic, some people like to make abstract art.

I understand both viewpoints. In my free time I vastly prefer late bound, dynamically types languages with robust reflection engineers built into their interpreters. For work, I heavily prefer late bound, strictly typed with reflection optional or minimal.

Different people think differently.

[–] jpeps 2 points 1 year ago (1 children)

I think that's fine if that's how you like to work on your own, but I'd challenge anyone to do that and write better documentation while also getting a team or whole business to do the same. A huge strength of TS is that it gives people no choice but to document their work.

[–] fkn 2 points 1 year ago (1 children)

I didn't say JavaScript... and I certainly wouldn't choose TS for a personal project because I personally feel that its organization is terrible but I would choose TS over vanilla js for work projects because it does produce better group work and is easier to maintain long term because of the structure imposed on it.

[–] jpeps 1 points 1 year ago

Haha well that's fair enough then!

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

TS is amazingly powerful when it comes to refactoring. I swear it practically writes itself. Half the time by the time I fix all the compiler errors the refactoring is done. I barely need to think about it which means I can spend more time thinking about the best architecture. When people say they don't see how TS makes you more productive it just makes me think they never refactor their code.

load more comments (20 replies)