DEV Community 👩‍💻👨‍💻

Discussion on: Javascript needs competition on the front end. Thoughts?

Collapse
 
emrz profile image
EMRZ

Javascript is a really broken lang by design, it is used just because is the only option, just like VBA in Microsoft Office macros. I think a lot of people would choose another lang if they could.

Collapse
 
scott_yeatts profile image
Scott Yeatts

I generally hear things like 'javascript is a broken language by design' from the same devs who don't code in Javascript and still call it a 'toy' language as if this were still 2002. In 2018 Javascript is a rich ecosystem that can be used in many different ways and styles. It has frameworks that make static-typed proponents happy, you can write in an object-oriented, functional or procedural style, and you can set very clear standards for your team based on your team's preferences. It's really one of the most diverse, flexible, expressive languages in the market today. When I hear 'I don't like Javascript' I translate that to 'My experience has been with teams who use Javascript in a way that I don't like'

Collapse
 
emrz profile image
EMRZ

As i said, given another option, lots of people would not choose javascript.

Thread Thread
 
scott_yeatts profile image
Scott Yeatts

And I just don't know that you can prove anything that you're saying. Would lots of C++ and Java devs choose something else for backend programming? Probably. Would lots of front-end programmers choose something else for the front-end? Probably not. Would people with extensive MEAN Stack experience choose something else for the full stack? I know I would if there were a good technical reason to do so, but in general, I would enjoy the benefits of a unified stack. Given that the question is 'does Javascript need competition on the front-end' my personal answer would be no, because fracturing the ecosystem is a bad thing (I lived and coded through the browser wars JScript/JavaScript/ECMAScript drama. I don't want to go back to writing the same code 3 times for different browsers)

Thread Thread
 
emrz profile image
EMRZ

So you like javascript for the full stack, lots of people does not but have no choice for the front end. Having options is always good so yes it needs competition.

Sorry i will not spend time talking about the specific poor design choices of js, there is a lot of information out there.

Collapse
 
vitalcog profile image
Chad Windham

um... no its not. that is the only response I can think of. Javascript is not "a really broken language"