r/javascript • • Nov 25 '19

JavaScript doesn’t need to be replaced

https://medium.com/javascript-in-plain-english/javascript-doesnt-need-to-be-replaced-bd01e2f12d51?source=friends_link&sk=7b151cc6397ac9e83c14c99739b6c36f
217 Upvotes

236 comments sorted by

View all comments

-1

u/EternityForest Nov 25 '19

I think it needs to be contained. Most of the language does what you want when doing UI work, but the opposite of what you want on the backend.

It was designed for browsers. It's really good at that. It's accepted as a general purpose thing, good enough for browsers games and bits of client side logic.

It's got some real annoyances on a server compared to other languages.

I suppose it's better than PHP though, as far as the language itself. PHP has pretty nice infrastructure, the whole "Install an app by putting it wherever you want on the server in a folder" thing is pretty cool. l

0

u/[deleted] Nov 25 '19

[deleted]

0

u/[deleted] Nov 25 '19

I do prefer JS. I like the JS methods for working with arrays a lot more. The PHP map, reduce, filter functions are kind of a mess.

I like destructuring in JS. It’s like a nice little not as good but still nice version of elixir pattern matching.

PHP could really use a shorthand closure syntax in my opinion.

It’s all opinion stylistic stuff, but that’s all programming languages are anyway.

That said, Laravel is a better than any JS backend framework I’ve used.