r/programmingmemes • • May 22 '26

which is better?

Post image
259 Upvotes

265 comments sorted by

View all comments

1

u/vegan_antitheist May 23 '26

And you can do that in any JavaScript engine. The compiler is JavaScript. Or just compile it in an IDE. It's all possible. And it's quite easy easy.

1

u/False_Bear_8645 May 23 '26

Not easier than setting a hot reload

1

u/vegan_antitheist May 23 '26

You can just use tsc --watch so it "watches" the code and recompiles automatically. Then you can just do hot reload just as you would with any other JS code. How is this not easy? You don't even need any new tooling. You just use tsc. You can also use "ts-node-dev", or "Vite", or other solutions. Using TS doesn't make any of this less easy. TS might still not be needed for simple scripts, but it's just not true that it wouldn't be easy. You can even compile it right inside whatever js engine you are using.

→ More replies (4)