Re:Sorbet: Stripe's Type Checker for Ruby
by itslennysfault on Tuesday March 29, 2022 @05:52PM
(#30848858)
This is exactly how I felt when I was first forced to use TypeScript instead of JavaScript, but I can't even tell you the number of hours it has saved me. Now, years later, I can't stand using regular JavaScript, and would never recommend it for any project that will be beyond a toy.
[ Parent
| on HN ]
Re:Sorbet: Stripe's Type Checker for Ruby
by Existenceblinks on Wednesday March 30, 2022 @06:39AM
(#30853441)
I use Elm but not Typescript. I also write plain javascript intensively. I've seen languages adding static type layer after the fact they are dynamic type. They never end well, lots of edge case here and there, it becomes a problem rather than helper. Static type lang needs to think from start how they will compose nicely, what's pure, what's effect etc. However, the ship has sailed, I don't actually want to debate on this, because web tech is becoming a cult. (the last phrase added for downvote bait, lets do that!)
Re:Sorbet: Stripe's Type Checker for Ruby
by yunohn on Wednesday March 30, 2022 @10:19AM
(#30855572)
> I don't actually want to debate on this, because web tech is becoming a cult
Your critique of dynamic languages adding types and failing would be more understandable if you mentioned some examples or explained what Typescript got wrong.