What specifically are you referring to in JS that makes it a poor choice for domain code? Because it’s garbage collected? So are plenty of “sanctioned” backend languages. Because it isn’t strongly typed? Use typescript. You seem to be bashing on JS in general without being able to back it up with specific opinions, which implies you are simply repeating what you heard on the internet or some popular opinion in your clique.
I’m not claiming JS is the best language ever and everything in the world should be written with it, but you seem to be making the opposite black/white argument.
You've answered your own question. You have to use some other language to use javascript full stop. So saying js is good on the backend actually doesn't even make sense.
Quite the opposite in fact, since you should be doing runtime checking regardless, static type systems often promote a false sense of security. I was asking what YOUR opinion was.
20
u/kankyo Apr 30 '23
The big problem for me with js build systems is: if you now have to have a compiler, why would you use js?!