546
you are viewing a single comment's thread
view the rest of the comments
[-] jpeps@lemmy.world 108 points 9 months ago

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.

[-] Fluffysquash@lemmy.ml 74 points 9 months ago

DHH (guy who founded Ruby on Rails) ripped typescript out of a supporting library and swapped it for JavaScript. He did it in his typical fashion of not allowing discussion and being a dick (PR only open for a couple hours and then merged disregarding all the negative feedback about the change) . So people are mad at him again.

He does stupid shit like this all the time because he’s a fucking knob.

[-] jpeps@lemmy.world 43 points 9 months ago* (last edited 9 months ago)

RoR will always have a special place in my heart, but yeah... DHH sure does have opinions. What possible justification is there for removing it when it's already there? Guess someone could just shift the types out to DT.

Edit: So I read his blog post about it. He's dropping it because he just doesn't like it and he's allowed to not like it. Okay then 🤷

[-] zebbedi@lemmy.world 17 points 9 months ago

His blog to me sounds like he did it because it was too difficult for him to understand a few errors. Says it all.

[-] jpeps@lemmy.world 8 points 9 months ago

I wasn't going to say it, but yes, 100% 😂

[-] zebbedi@lemmy.world 8 points 9 months ago

You only have to read the PR comments with people asking how you know if something is optional when there is absolutely zero jsdoc to know it was idiotic.

[-] Pipoca@lemmy.world 4 points 9 months ago

From his blog post:

While you may compile dialects into it, you still have to accept the fact that running code in the browser means running JavaScript. So being able to write that, free of any tooling, and free of any strong typing, is a blessing under the circumstances.

By his logic, JS linters are bad because they're tooling that restricts your access to all of Javascript. But linters mean you don't have to read PRs with a fine tooth comb to make sure there's no footguns like using == instead of ===.

Also, you could use that same logic to advocate for writing JVM bytecode directly instead of Java/Kotlin/Scala/Clojure/etc.

The question is really whether tooling pays its way in terms of lower bug rates, code that's easier for coworkers to read, and code that's easier to reason about.

load more comments (3 replies)
load more comments (19 replies)
this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

18253 readers
775 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 1 year ago
MODERATORS