What programming language to learn first?
This question has haunted philosophers since the dawn of man, hundreds of options, and there is no best o...
For further actions, you may consider blocking this person and/or reporting abuse
I will say depends on what you want to do. If you just want to play around web or you dont know why you learn it, then go for js. If you want to play with mobile, then kotlin or swift or dart. If you want to make you life harder, then go for C++.
After all, you will find that their syntax are geting more and more similar in recent years. You know one language well, you can pick up another's basic knowledge very fast. The most important thing is given you a reason why you have to keep learning it.
PS: I have started with js when i was 12 and the reason was I just suddently wanted to make a website to show off to my brothers. π
Good, also it's easy to build your first project fast with JavaScript
If Pascal were still alive....
It was once the best one for introducing programming language.
It looks like Python. I have never tried it!
I dislike the use of indentation for code block in Python. It is one of the reasons that hinder me to continue on learning it. The other one is people use reptile for the mascot/logo for the language. Guido von Rossum said that the name of Python he picked was inspired by a circus figure called Monty Python; it had nothing to do with any kind of reptiles. I would like to see the logo be replaced by that circus figure.
Pascal uses begin....end statement for that purpose, which is also used in SQL. From Pascal, it wouldn't be too hard to proceed to C/C++ or Java/C#.
I've played around with C++, C#, and Python before I got into JavaScript. I was just thinking that if I had to start over, I would have gotten good with HTML and CSS, then focused heavily on JavaScript. Then I'd probably move to something like C#.
It feels more like a "Starting with the corner pieces and edges" way of building a puzzle than my previous way of just getting as many pieces as I can and sporadically trying to put it together.
Appreciate your opinion.
Any language with static type system
Do you mean to learn first or to avoid learning
Definitely learn first=)
No, but here I disagree!
Starting with something like typescript which is so strict is not that good, why donβt you start with a dynamically typed one and then go learn those????
Love that you had the courage to choose JavaScript! It truly is a great choice for starting to code.
I'd like to add to this by pointing out that starting to code for me was more like trying different languages on a very easy level.. Not trying to find the perfect language right away...
Just learning the syntax and write some basic (math and string ) functions. I remember I dealt a couple of weeks with Python, C and Go before I settled for JavaScript and got hooked :D
To judge a language you may even try it before!
True, happy you finally found peace with Javascript.π
I would actually like to know how things would have gone if I had learned Rust as my first language. It could have been overwhelming or I would have learned the right concepts from the beginning...
It will have made you hate your entire life and question your existence!
I knew this was gonna be a controversial post when I opened it. I'm not gonna hate you for choosing JavaScript. But your arguments for good and bad are very subjective, you don't even provide any arguments for why that makes them good/bad. And you only bring up the "bad points" of the bad languages and "good points" for the good languages.
I agree that Python is a good beginner language, JavaScript is fine as well if you're interested in web development. I don't have enough experience with Lua to comment, but using keywords as a measurement seems absurd. That actually places Python and C on the same place at 33 keywords. Most of the languages you mentioned works well for beginners, but it depends on ambition and to some extent how stubborn you are to learn it. A hobbyist might be better off learning Python, while someone who actually aims to get a job in embedded system would be better off working a little harder to learn C.
Reasons for why Python is good is that it has a simple syntax, making it feel beginner friendly. It being dynamically typed may be considered good in some cases, but it also has a bad side. Good is that it's flexible and not as strict. Bad is that it may create hard to track down bugs and results in code that is harder to read. Statically typed languages on the other hand may be a bit more daunting to start with, getting yelled at by the compiler. But it teaches you to plan out your code and structure it well. Statically and dynamically typed are two sides of the same coin. Different benefits and drawbacks.
Don't base opinion on lack of understanding.
And finally, memory leaks are not an immediate hazard. It's usually only an issue for long-running programs. Leaked memory is freed safely when a process finishes. Plus there are programs (e.g., Valgrind) to check for leaks.
Thanks for your opinions. And most of the time I write here my opinions and I donβt force anybody to use them π
random dude on dev.to community
Facts!!
True!
π