alex_valerio
2 months ago  Karma: 25
Why do many developers dislike JavaScript?

JavaScript is widely used but, at the same time, lots of devs seem to dislike it. Can you please explain why?

en
#javascript
alex_valerio
2 months ago  Karma: 25
Why do many developers dislike JavaScript?

JavaScript is widely used but, at the same time, lots of devs seem to dislike it. Can you please explain why?

en
#javascript

6 ANSWERS
miroslav.horcicka
2 months ago Karma: 409

For starters, JavaScript is the only language available for front-end development. So, even if one likes it or not, there’s no other choice. As a result, JavaScript is here to stay for the foreseeable future. Also, with NodeJS, JavaScript started to gain some adoption in the back-end development space.

Personally, I’m used to coding in C++. The way I see it, ’this’ should always reference the object where it was defined. In JavaScript, you have to always use bind. This is complicated and could lead to errors.

For starters, JavaScript is the only language available for front-end development. So, even if one likes it or not, there’s no other choice. As a result, JavaScript is here to stay for the foreseeable future. Also, with NodeJS, JavaScript started to gain some adoption in the back-end development space.

Personally, I’m used to coding in C++. The way I see it, ’this’ should always reference the object where it was defined. In JavaScript, you have to always use bind. This is complicated and could lead to errors.

brandon.pearson1011
2 months ago Karma: 1400

I am not sure that there is something wrong with JavaScript. To me, the only problem is the fact that anyone looking to build a web front-end has to use it. Compared to back-end development, where coders can choose between a multitude of programming languages, front-end development constrains people to a single choice.
Let's see what will happen when WebAssembly will become an alternative for building web front-ends.

I am not sure that there is something wrong with JavaScript. To me, the only problem is the fact that anyone looking to build a web front-end has to use it. Compared to back-end development, where coders can choose between a multitude of programming languages, front-end development constrains people to a single choice.
Let's see what will happen when WebAssembly will become an alternative for building web front-ends.

alain_duclos9952
2 months ago Karma: 106

Many devs have OOP background and JavaScript is class-less. Classes are somehow simulated but, in the end, everything in JavaScript is an object which means that objects inherit from objects, not classes.

Many devs have OOP background and JavaScript is class-less. Classes are somehow simulated but, in the end, everything in JavaScript is an object which means that objects inherit from objects, not classes.

silverio_bussone
2 months ago Karma: 70

I like JavaScript but I often hear fellow back-end programmers complaining about excessive tooling. Almost every week a new tool is available on npm or a new framework is released. You can't just create a text file in order to include a script in a webpage. You have to learn and use npm, webpack, babel, and so on. For people used to Java or Python, this can become frustrating.

I like JavaScript but I often hear fellow back-end programmers complaining about excessive tooling. Almost every week a new tool is available on npm or a new framework is released. You can't just create a text file in order to include a script in a webpage. You have to learn and use npm, webpack, babel, and so on. For people used to Java or Python, this can become frustrating.

arturofontirroig
2 months ago Karma: 145

It doesn't seem to be a well-thought language. How should one check if an object is empty? If I ask this question, most probably I will get five different answers. How to get the number of items in an object. Same story. A language should provide convenience for developers. JavaScript is not doing it.

However, as already mentioned here several times, it is the only alternative for building web-based front-ends.

It doesn't seem to be a well-thought language. How should one check if an object is empty? If I ask this question, most probably I will get five different answers. How to get the number of items in an object. Same story. A language should provide convenience for developers. JavaScript is not doing it.

However, as already mentioned here several times, it is the only alternative for building web-based front-ends.

ociqzkzg
2 months ago Karma: 401

I think you are comparing apples to oranges.
JavaScript was meant to be used only for browser-based scripting and it doesn’t make sense to compare it with other general purpose programming languages such as Java, C++, or Python.
It was just not designed to be used outside of web browsers.

I think you are comparing apples to oranges.
JavaScript was meant to be used only for browser-based scripting and it doesn’t make sense to compare it with other general purpose programming languages such as Java, C++, or Python.
It was just not designed to be used outside of web browsers.

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER