3 ms·
Node.js provides the defacto standard lib for JS backend and its got a good feature set. That said these days I'd rather use Go.
by bravesoul2 1y ago
Node.js provides the defacto standard lib for JS backend and its got a good feature set.
That said these days I'd rather use Go.
- kragen 1y agoGolang seems pretty comfortable from the stuff I've done in it, but it's not as oriented toward prototyping. It's more oriented toward writing code that's long-term maintainable even if that makes it more verbose, which is bad for throwaway code. And it's not clear how you'd use Golang to do the kind of open-ended exploration you can do in a Jupyter notebook, for example. How would you load new code into a Golang program that's already running? Admittedly Python is not great at this either (reload has interacted buggily with isinstance since the beginning), but it does attempt it.
- bravesoul2 1y agoThere are live reload utilities for Go but yeah it comes down to recompiling and restarting - which is quick but any state is gone. I agree its not a rapid prototyping kind of language. AI assistance can help though.
- oblio 1y agoCan you load new code into a Node.js program that's running?
- rvnx 1y ago`eval()` to run new code and `delete require.cache` (to reload a module)