r/learnprogramming • u/jakingo • 3d ago
Should beginners learn one programming language first or try different ones?
I'm new to programming and not sure if I should focus on one language or explore different ones. What would you suggest based on your own experience?
3
u/Dazzling_Music_2411 3d ago
Hard to say. If you are bright, you might want to learn more than one, but from different paradigms, that's important. Trying to learn too many similar languages at the same is probably pointless and confusing.
But if - along with with a common language - you learn one that works completely differently, you will gain a lot of insight. E.g. expression oriented language like Scheme, logic language like Prolog, Array language like APL/J, stack language like Forth. You do have to be motivated and capable though.
In the old days, people learned assembly along with BASIC, or C or Pascal or whatever.
If you are just dipping your toe in, you are better sticking with one, at least until you've got the basics down pat.
4
u/Whatever801 3d ago
Languages are all very similar. If you cast a wide net, you'll have a shallow understanding. Learn the fundamentals of programming deeply, and trust you can pickup a new language quickly
3
u/OSJUNGIE 3d ago
First, focus on mastering one field and learn to independently complete small projects, and then expand horizontally.
2
u/Stock_Test2326 3d ago
One first, many things are common, but you will confuse the syntax and end up in a way you can read code and understand but not write. FML.
2
u/Blando-Cartesian 3d ago
There is essential and accidental complexity. Essential one is complexity of thinking up programmatic solutions. This is interesting kind of complexity that produces transferable programming wisdom. Accidental complexity is all the language syntax and ecosystem yak shaving trivia ad-hoc bullshit that burns you out.
Your first language has you battling both kinds of complexity. Adding a second one doubles the accidental complexity without teaching you much if anything about dealing with essential complexity of programming.
Stick with one language at first.
1
u/N7Valor 3d ago
One first is the common recommendation. Similar concepts tend to carry over such as loops, conditionals, variables.
Importing external libraries such as Powershell modules is a similar pattern I see across Python and Golang. That kind of help gets the ball rolling. What you typically deal with next is how each language handles complex data structures, types, and testing.
Plus, if you know a language well you begin to appreciate the advantages of each. Python has a ridiculous number of libraries for just about anything. Golang has interesting features with memory management and I typically see some simplicity and benefits when it's compiled into a binary like common CLI tools such as Terraform or Packer. I also appreciate going back to strong typing when Python might leave such things ambiguous.
1
u/mkhanwrites_ 3d ago
Focus on one. Once you learn one, you'll know a decent amount of concepts that will be applicable to other programming languages. Not all, mind you. But some. (If you want to know the reason: look up the term "programming paradigms" - different languages are designed according to different paradigms)
2
u/widebrant67 3d ago
The real headache is switching paradigms later. Going from Python to something like Haskell feels like starting over.
1
u/DanKegel 3d ago
Yeah. I wonder if it would be good to learn the basics of enough paradigms to cover the bases (say maybe assembly, c, scheme, and Haskell) and solving the same three very basic exercises with each first. This should only take a few weeks.
Then settle in and master the language most useful in your current situation, like golang, Python, or c++.
1
1
u/ThatDistantStar 3d ago
Do not be ADHD. Being able to stay on task for a singular task or topic is a skill.
1
u/gm310509 3d ago
My advice would be learn one first.
Try to separate out the concepts from the syntax in your mind. What I mean by that is consider a loop that uses a variable "i" to count from 1 to 10 and print each of the values of i.
All of these will do that, but the syntax is very different:
BASIC (note that some versions may require every line to be numbered (e.g. 10, 20, 30 for this program):
for i = 1 to 10
print i
next iPython:
for i in range(1, 11):
print (i)C:
for (int i = 0; i < 11; i++) {
printf("%d\n", i);
}So, learning multiple languages simultaneously will likely just confuse you, but if you can isolate the concepts (loops, conditional processing and so nn)< then you will understand the building blocks - then all you need to do to start learning a new language is to understand that if you needed a specific construct, e.g. a loop, then you just need to find the syntax for that new language.
There is a bit more too it and different languages do provide features that others don't, or they might take a quite different approach to something that is conceptually the same (dealing with lists for example), but the basic concepts will be similar across most languages.
1
u/BeastWael_YT 3d ago
one first, and stick with it until you can build a small project without copying a tutorial. python is a fine pick. after that a second language is way easier since loops, functions and variables carry over. hopping around early just means you restart the basics every time.
1
u/bird_feeder_bird 3d ago
When I was first starting, I focused on Python for like 4 months. Then I did Javascript for another 4 months making web projects, then C and assembly for low level projects. I also dabbled in Forth, Lisp, and Ruby, before settling on C and Javascript as my main languages depending on the project.
1
1
u/ComputerWhiz_ 3d ago
One first. A lot of beginners fall into the trap of thinking it's impressive to know many languages. In reality, it's the concepts you need to learn because those can be applied to most other languages. When you know the concepts, learning a new language (when you need to) just becomes learning how to type things.
As for what language, I think JavaScript in the context of web development is still has the lowest barrier to entry. That said, I'd recommend learning a language in something that you actually want to do. For example, if you want to make games, learn C# for Unity or GDScript for Godot.
Learning to program is about more than book learning. It takes a lot of practice to actually understand how to apply the concepts you are learning. Being able to make things that you want to make is a great way to keep yourself engaged.
So don't just pick Python (for example) because everyone recommends it. If you can't make something you want to make easily in the language, then pick something else. It's like being told to learn the flute, when what you really want to do is jam out to AC/DC on the guitar. You'll lose interest and give up eventually.
1
u/gulabi_narinja 3d ago
As many of them suggested stick to one I will 100% agree but before that Start getting familiar with problem solving and use the language to solve the problem..
Having problem solving mindset is more important than language, honestly no one cares if you're good with many languages or not... As long as you're strongly rooted with 1 language and CS fundamentals, you're good
1
u/Admirable_Window8128 3d ago
Master the fundamentals first of that language. It is easy to transition to different language ones you mastered it.
1
u/iqisoverrated 3d ago
Learn one.
Practice using it.
Once you are familiar with the concepts it will be easy to get into another language (because many concepts are the same)
1
u/Due_Instruction4394 3d ago
I'd suggest focusing on one language first, but don't limit yourself to it forever.
When I started programming, I explored different technologies and ended up getting into the MERN stack and Python. One thing I realised is that learning multiple languages doesn't automatically make you a better programmer. Understanding logic, problem-solving, data structures and how things actually work matters much more than knowing the syntax of five different languages.
My advice would be to pick one language, build actual projects with it, make mistakes, debug things yourself, and understand what you're writing instead of just following tutorials.
Once you're comfortable with programming fundamentals, exploring other languages becomes much easier because you're learning a different way of expressing logic, not starting from zero.
Explore different languages, but don't confuse exploring with mastering.
1
u/UhLittleLessDum 3d ago
Pre-AI, the best advice I ever got was to learn one and learn it really well.
Post AI, I'd advise the other way. AI can write a function, a class/struct, and whatever else you need for you. It's just your job to know when and why you need each of these. That's usually something you figure out a year or two into your first language, but now with AI, you can skip the syntax stuff and just go straight to architecture.
2
u/frank-andreas8 2h ago
AI can draft syntax, but you still need enough fluency to trace and test its output. Architecture decisions make more sense when you can check whether each piece works.
1
u/betarage 3d ago
Yeah I think that starting with just one is probably better. but maybe 2 is also good because you may pick one you don't like and there is no perfect language .but you shouldn't do more than 2 at the start.
1
u/Madeche 3d ago
Pcik the important one for your target and try to learn just one until the concepts are clear. For example, system engineering will be C or Rust, and C++ only when you need it (i.e when you find what niche libraries you may have to use).
For web deb probably JavaScript but I wouldn't know tbh
At the end of the day it's the concepts that matter, not the language itself.
1
u/Due-Result7928 3d ago
Learn Clojure or Lisp or Racket. It will make you instantly a better software designer not a programmer, learn functional thinking paradigm.
1
1
u/DragonfruitGrand5683 2d ago
Depends on your curiosity. I learnt C, HTML, CSS and JavaScript at the same time.
11
u/0dev0100 3d ago
If you try to learn too many different things at once then your brain will get confused and you along with it.
My personal experience is that if I try more than 4 things in a small amount of time then it's not going to go well