3 ms·
I used TypeScript one year, and found that for this kind of problem there are basically no benefits over JavaScript, and because of that it's also not a great w
by llimos 5y ago
I used TypeScript one year, and found that for this kind of problem there are basically no benefits over JavaScript, and because of that it's also not a great way of learning TypeScript.
- tluyben2 5y agoFor this kind of thing JS is actually good as you can do messy things fast without worrying. Like a few of the problems this year benefitted from being able to mutate structures while iterating over them; I would never do that in production code but for fast hacking/golfing it is an excellent footgun. I did a lot last year in Rust and k (the polar opposites?); Rust was really annoying for this kind of thing.
- ranguna 5y agoYep js is pretty great but I don't think it can best python for this kinda stuff, python has so many helper functions around these kind of problems where you'd have to constantly reinvent the wheel with js. And I shared the same opinion as about the this type of code. Not a fan of python in prod, but typescript all the way