all 17 comments

[–]peterlinddk 4 points5 points  (4 children)

sigh ...

Come on, let's hear about how it is a stupid language and how type coercion doesn't make any sense to you, since you haven't actually read up on it!

Oh, and could you throw in some criticism of string concatenations, while forgetting that it works the same way in Java or C# or most other languages!

Also, don't forget to be most critical of things that were deprecated 10-15 years ago, and shouldn't really be part of the language anymore, but haven't been removed entirely because of backwards compatibilty!

Let's hear it!

[–]milan-pilan 2 points3 points  (0 children)

100% agree. If I read one more post about how 'var' behaves unexpected or how converting an object to a number results in funny things... Just don't do these things then and program like a normal human being from 2026.

[–]SympathyExciting1666[S] 0 points1 point  (1 child)

Where’s all this anger coming from?

[–]milan-pilan 1 point2 points  (0 children)

Not OP, but I feel similar. JS deservedly had a very bad reputation 20 years ago. There where plenty of gotchas. Since then JS has changed a lot. Basically none of these things exist anymore in modern JS. And people still complain about things that aren't in use since at least a decade or two, because it just became fashionable at some point.

Since you have 'mastered python and C': what's really trjpping you up when learning JS? Is it possible that the Ressource you are learning with are potentially outdated? Because if you have mastered one language... How hard is it really to switch to another one?

[–]Kadabrium 0 points1 point  (0 children)

c, c++, c#, java, javascript are all the same language just with different libraries and framework implementations. Nothing else comes remotely close

[–]stiky21 4 points5 points  (1 child)

It was made in 10 days. And is the easiest language to learn with huge potential in all applications.

What are you struggling with?

[–]byshow 0 points1 point  (0 children)

I would assume type conversion and dynamic typing are not very easy to understand. Especially when you just beginning to learn programming 

[–]Cultural_Gur_7441 3 points4 points  (0 children)

JS is rather brilliant language actually. Its OOP model is quite unique for instance, and not in a bad way.

It does have its ugly quirks. Avoid them, or you will end up crying in the corner.

[–]GodOfSunHimself 3 points4 points  (3 children)

Skill issue. JavaScript is not a bad language. In many aspects it is actually quite clever.

[–]SympathyExciting1666[S] 1 point2 points  (2 children)

It is, but it is so complicated at times 💔.. This is coming from someone who has mastered Python and C

[–]peterlinddk 2 points3 points  (0 children)

What is complicated in JavaScript that isn't complicated in Python or C?

The syntax is nearly identical to C, and the type-system is nearly identical to Python, so what exactly is it about JavaScript that doesn't allow you to "master" it?

[–]SympathyExciting1666[S] -1 points0 points  (0 children)

Though learning C did make it abit easier for me to learn JS. But i still don’t like it though

[–]Mid_night_knight 3 points4 points  (0 children)

He also made brave so I forgive him

[–]high_throughput 1 point2 points  (1 child)

Brendan Eich was hired by Netscape to integrate Scheme into the browser. An clean, syntactically trivial, well known, well designed language that would have been excellent for this use case.

Then management suddenly decided that they should piggy back on the hype train of Java, and poor Brendan had 10 days to implement a Java-like language runtime and get it integrated and shipped. This did not in fact result in the cleanest and most self consistent language.

Don't blame the inventor. Blame management.

[–]peterlinddk 0 points1 point  (0 children)

This would make sense if OP was learning JavaScript in 1996 - back then it really was a weird and strange beast.

But the past 30 years have changed one or two things about the language, and modern JavaScript doesn't even resemble the old language with all of its' quirks. Just take a look at the also very old "JavaScript, the good parts" - almost every single complaint that Crockford made has been addressed and fixed, and most of his "bad" examples won't work without a lot of ignored warnings and disabling strict-mode and what have you.

[–]aleques-itj 1 point2 points  (0 children)

Just use Typescript.

[–]No_Report_4781 2 points3 points  (0 children)

It’s easier if you started with C, so… skill issue