News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by david422 on Tuesday August 23, 2022 @04:49PM (#32571272)
I'm agreeing with you here. If you use plain JS and change the underlying types that are being passed around, but things are still working, you're basically getting lucky.
Re:TypeScript is terrible for library developers by latchkey on Tuesday August 23, 2022 @04:55PM (#32571387)
Ok, got it. Apologies.

If you write comprehensive unit tests for your javascript, that should effectively also work too... this is what ruby developers pretty much had to do.

We can see that over time based on the decline of ruby popularity in general, that fell out of style though. It is too easy to make a mistake and everyone was just duplicating what a compiler does for us.

I can't tell you how many hours I would sit there pair programming with other ruby developers just trying to figure out what 'type' an object is. Mind boggling, but it was good to get those high paid consulting hours.

Re:TypeScript is terrible for library developers by cutler on Tuesday August 23, 2022 @07:37PM (#32573059)
RubyMine to the rescue.
Re:TypeScript is terrible for library developers by latchkey on Tuesday August 23, 2022 @08:42PM (#32573601)
We were using that and it is indeed excellent (along with most of JetBrains IDE products). It starts to fall down on all the meta programming we were dealing with. With a dynamic meta programmed DSL, there is only so much RM can deal with.