News for hackers. Stuff that matters.
Re:Rust is a hard way to make a web API by krono on Friday January 15, 2021 @07:51PM (#25798742)
Every single typescript oriented library that I've tried has had a pretty atrocious dev experience and no end of compatibility issues.

I love typescript, but the ecosystem is without a doubt one of the biggest detractors.

Re:Rust is a hard way to make a web API by smt88 on Friday January 15, 2021 @08:07PM (#25798845)
I have written at least 10 apps in TS with dozens of libraries, including some server-only stuff.

All the problems I've had were with JS and npm. TS has been amazing and worked flawlessly. I just can't understand your experience at all.

Re:Rust is a hard way to make a web API by krono on Friday January 15, 2021 @08:40PM (#25799068)
That's alright. We're obviously not working on the same projects, and are likely taking different approaches to reach our goals.
Re:Rust is a hard way to make a web API by girvo on Friday January 15, 2021 @08:01PM (#25798805)
NestJS is quite a bit better in that regard, but in general I agree with your overall point. What do you feel most of these frameworks are missing re. dev experience?
Re:Rust is a hard way to make a web API by krono on Friday January 15, 2021 @08:21PM (#25798958)
Mostly use other languages for back-end systems, but I will definitely be checking out NestJS soon.

With regards to TS, generally, it takes a lot of effort to get it to work. More often than not, getting to that point in a way that is actually useful/practical and cost effective, requires yet another library to be installed.

Just look at the TSLint/ESLint migration problems, the popularity of all those TS runners such as ts-node/ts-node-dev/tsx-watch/ts-babel/etc., the complete lack of interoperability between all those separate pieces.

Many issues and even proposed fixes to parts of the TS ecosystem - which is all community ran - are either ignored, left open because no one seems to be able to figure it out, or deemed to be out of scope.

I don't know how to fix this honestly. Some leadership from Microsoft would be a good start.

Re:Rust is a hard way to make a web API by girvo on Friday January 15, 2021 @08:54PM (#25799154)
Yeah that’s fair: I’m a bit of an early adopter of Deno [0] for that reason, it helps standardise quite a bit of that. Promising, anyway, if a bit rough currently.

[0] https://deno.land

Re:Rust is a hard way to make a web API by Kaze404 on Friday January 15, 2021 @09:49PM (#25799533)
You don't need any of those. TSLint was deprecated long ago, and TS runners are only mildly useful in development (to the point where I don't bother and just `tsc && node dist`). Are you sure it's a problem with the ecosystem?