DEV Community

Discussion on: What Programming Language to Learn First πŸŽ“

Collapse
 
cappe987 profile image
Casper

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.

OOP which (for me is complete nonsense) life is too short to code with these languages. C# is hard to avoid for game development but throw Java in the trash ok?

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.

Collapse
 
youssefmic profile image
Youssef-mic • Edited

Thanks for your opinions. And most of the time I write here my opinions and I don’t force anybody to use them πŸ˜‰

I'm okay with other opinions so what do you suggest no I am not a professional guy so take my words with a grain of salt.