News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by fiddlerwoaroof on Friday November 19, 2021 @12:18AM (#29274071)
I’ve been writing TS for a year now and I find TS annoying. Especially for react components with state management of some kind, the types get so complex you almost need unit tests to assert they are what you think they are. Additionally, TS being a structural type system with no access to nominal types at all eliminates a whole class of “ghosts of departed proofs” modeling techniques. (And, I know you can work around this, but those workarounds are ugly.)

My view is that I’d use TS if I have to but I’d pick either plain JS / CLJS or something like purescript if I really wanted types.

Re:Where is Ruby Headed in 2021? by arcanon on Friday November 19, 2021 @01:04AM (#29274308)
The year is 2021.

People argue for a toolchain that takes a static language, compiles it to a dynamic one, then runs it with an interpreter on the server side.

Humanity ended shortly thereafter.

Re:Where is Ruby Headed in 2021? by jamil7 on Friday November 19, 2021 @04:11AM (#29275257)
I haven’t touched the ecosystem really for a number of years but my last JS project was in TS and I hated it for the same reason. The overhead of bringing in yet more npm modules and types and build steps for questionable levels type safety. Languages with much better type systems exist.
Re:Where is Ruby Headed in 2021? by canaus on Friday November 19, 2021 @10:03AM (#29277878)
Such as?