Why you should not prefer JavaScript as your first programming language ??
Many students start with web development before even learning any programming language, but that is not the problem the main thing is they end up learning JavaScript in web development which becomes their first official language.
But what is bad about it ??
I am not saying that JavaScript is a bad language not at all. JavaScript is an amazing language to learn as you can make so many amazing things using its Web Application / Server, Mobile Applications. Then what’s the problem with JavaScript you should not make it your first official programming language.
Here are a few things which I think make it a bad option to choose, You might have a different opinion which I would love to know. I may be wrong which I usually am
JavaScript is a loose programming Language
What do you mean by a loose language?
Any language that does not require the type of variable to be defined we consider that language as loose language.
let a = “Guneet”
Did we declare that we will store only a String or a number in the variable a, I think we didn’t? You can even do it this way
a = 5
You can change the variable a at any time to a different Data structure you like. Which makes it a not-so-preferable language. But what is wrong with it, it is making it easier for you to write code?
As a programmer I think that shifting from a strongly typed language like (C++ or Java) to a loose language like JS, makes a lot more sense as it would not take more than 2 days to get hung over a loose language.
But if you are thinking of shifting from JS to Java or C++, it might be a little difficult to shift as you will need to take care of many more things in strongly types language.
In a single line, I would say it won’t be the right foundation of programming language for you.
Okay other than this, is there anything else?
JavaScript cannot run on your computer
Now you will surely be saying “Hey Guneet, don’t you lie it does run on my computer you can even see the result on the console.”
Did you mean the console of your browser?? It’s a browser, You can understand it this way I can run my Java or C++ code from my terminal but your terminal(Computer) cannot run JavaScript in it.
JavaScript can only be understood by a browser.
Now all the NodeJS Developers are surely going to consider me a fool. I know you can run JavaScript code on your computer using NodeJS but here is the catch, In layman’s terms, you can say that behind the scene C++ code is running.
I hope you got the point of why you should try to avoid JS as your first language. But if you are still not convinced I can still explain you. Let’s come to the fun part
Object Oriented Programming
Most of the ways you program in an object-oriented fashion with JavaScript go drastically against the grain of other languages. and I think most people would first prefer to learn the common way of doing oops rather than the most distinguishable way.
So I hope I was able to explain to you well which language you should choose, Now it’s time for you to take a call and decide on your first language :)
I hope you enjoyed it and learned a lot from this story, if you don’t wanna miss anytime I publish another story make sure to follow me and subscribe to get email updates.
You can follow me on Twitter and LinkedIn wherein I share much more information.