DEV Community

Discussion on: How to start down the path of the programmer?

Collapse
 
andrei_17 profile image
Andrei-

I think javascript is the worse language to start programming with. Javascript was a workaround scripting language originally designed to enhance html pages. It has evolved a little since but never managed to wash out the "shit language" label.
It's not strongly typed, it always looks like spaghetti code and is harder to read, more so for the beginner developer.
To make it look somewhat nice you have to use typescript, but this adds one more abstraction layer, unnecessary for the beginner developer.

If you want to learn programming you start with a nice strongly typed OOP language like C#, Java or even C++ for the brave soul. These are good languages to grasp the OOP concepts.

In contrast Javascript is horrible for that purpose. Javascript is not a class-based object-oriented language , but rather a prototypal one. Wait, whaaat? Just try to make some inheritance/polymorphism with vanilla js.
I know it looks easy and fast to copy-paste from stackoverflow but popular does not equal quality.

Collapse
 
adnanrahic profile image
Adnan Rahić

I started out with C#, and I love the language. It's amazing. But, after one semester of having it in college, I had no idea about anything, at all. OOP was Chinese to me. It wasn't until using it for a year and also finishing a Microsoft MTA course I was ready to use it properly.

That's the point I want to make. OOP should not be step 1. JavaScript can be written just fine with almost no OOP at all. Just the basic concepts of constructors and "sharing code" between objects with prototypes are more than fine for the beginner. Because those things are the great majority of things we use.

My views on this are biased as I use JavaScript daily and teach courses on it. But, I seem to not be alone in this, as Stanford has replaced Java with JavaScript for their introduction to Computer Science course.

Anyway, I hope you liked the article. Cheers! :)