News for hackers. Stuff that matters.
Re:Deno will stop using TypeScript by IBCNU on Sunday June 21, 2020 @12:34PM (#23593044)
I used Typescript for 2 years, and I'm happy to report I'm dropping it and encouraging my team to do the same. Types are for compilers, not people, and personally I think there's more disadvantages than advantages re: time.
Re:Deno will stop using TypeScript by jkachmar on Sunday June 21, 2020 @01:43PM (#23593687)
> Types are for compilers, not people [...]

This strikes me as a similar sentiment to “Requirements are for managers, not engineers”

Re:Deno will stop using TypeScript by qayxc on Sunday June 21, 2020 @01:12PM (#23593402)
> Types are for compilers, not people, and personally I think there's more disadvantages than advantages

The Haskell community strongly disagrees...

Re:Deno will stop using TypeScript by verdagon on Monday June 22, 2020 @02:20AM (#23597715)
I dont know Haskell that well, but I thought it had strong static typing?

Though, Haskell figures out the types for you, instead of you typing them in, maybe thats a big difference. In Haskell, do you find you have to think about the types anyway, or can you code it like you would clojure?

Re:Deno will stop using TypeScript by IBCNU on Monday June 22, 2020 @04:10PM (#23605787)
I come from a clojure background, maybe that's why I don't enjoy TS. I find that large projects, so much code is un-necessary, people spend a lot of time troubleshooting types instead of building functionality. Of course it depends on the project. Social security #'s is a different scenario than something like a game or frivolous retail...
Re:Deno will stop using TypeScript by eyerony on Sunday June 21, 2020 @09:30PM (#23596715)
> Types are for compilers, not people, and personally I think there's more disadvantages than advantages re: time.

Hard disagree. Types are for people. They're for people to tell compilers what to tell people. Which is incredibly useful. They are first and foremost a communication and code-navigation/wayfinding tool—for people.

As for all this extra time some folks keep complaining about, we must be using TypeScript entirely differently, somehow. I don't get it at all. Its overhead is less than the time it saves me in typo-spotting alone, let alone all the other benefits. Takes 5%, gives back 20-30%. It's not even close. Maybe it's a problem for really, really slow typists? I'm not even some kind of editor wizard and it hardly slows me down. It can't be thinking up the type definitions since you need to do that anyway—right? I hope? And at that point you may as well write them down.

Re:Deno will stop using TypeScript by IBCNU on Monday June 22, 2020 @04:13PM (#23605831)
My experience is by definition anecdotal, but what I've found is as the team grows more and more work seems to focus on defining the types, futzing with the types, talking about the types instead of talking about features. I come from a Clojure/script background so I suppose I'm trying to say if (in building UI's) if you bake in strong immutability and a functional approach (like re-frame... but JS) types, to me, become less and less of a concern. Of course it's highly dependent on the business requirements.