4 ms·
> JS is slow because JS is slow. JS is the fastest dynamic language next to SBCL's Common Lisp implementation. > JavaScript is not well designed for work in
by Mikeb85 13y ago
> JS is slow because JS is slow.
JS is the fastest dynamic language next to SBCL's Common Lisp implementation.
> JavaScript is not well designed for work in a team environment, nor is it well designed for Large Code Bases.
Why is this a problem? Most web problems don't need a large code base. A small, dynamic language is suited to web problems. And judging by the amount of things being built with Javascript, enough people have figured out its quirks.
> All the best languages have a group of scientists that have chosen that language to be their defacto language. That is why we see Python, LISP, Fortran (yes still), MatLab, all living on long beyond the "trendy" languages.
To a certain degree I agree, at least about LISP and Fortran. You should add Haskell to the list. One language has also lived long beyond most of the trendy languages: COBOL. Take that for what it's worth.
> but JS for backend is like writing in Visual Basic. These days you can do anything in it, it will be fast, but that doesn't make it the right choice.
Why this is even an issue is beyond me. Nodejs is good for people writing a small backend to interact with a single page app on the client side. If you're writing giant Nodejs apps you're doing it wrong.
Besides, with pretty much every language having web frameworks and every language compiling to JS, you have plenty of choices.
Despite all of JS' quirks, people still write amazing things in it. That should tell you something.
- dpratt 13y ago> Why is this a problem? Most web problems don't need a large code base. A small, dynamic language is suited to web problems. This is demonstrably false the second you start to use JS on the backend. Just because most of the problems you've seen require only tiny codebases does not mean that they all do.
- Mikeb85 13y agoThen use something else on the back end. Problem solved. I'm saying the places you need JS and only JS are small. Have a larger problem? Use a statically typed language on the back end, and compile to JS on the front...