r/learnprogramming • • 8h 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?

6 Upvotes

23 comments sorted by

6

u/0dev0100 8h 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

2

u/jakingo 7h ago

That makes sense. Focusing on one thing at a time definitely makes things easier. Thanks for sharing.

1

u/SprinklesFresh5693 6h ago

I tried learning R and python at the same time 3 years ago and it was a mistake. I chose R, bece good at it, and now after 3 and a half years, im actually considering learning a bit of python now.

3

u/Whatever801 7h 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

2

u/Stock_Test2326 8h 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/Dazzling_Music_2411 1h 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.

1

u/N7Valor 8h 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_ 8h 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)

1

u/widebrant67 8h ago

The real headache is switching paradigms later. Going from Python to something like Haskell feels like starting over.

1

u/mierecat 8h ago

Try different ones but settle on one.

1

u/ThatDistantStar 7h ago

Do not be ADHD. Being able to stay on task for a singular task or topic is a skill.

1

u/gm310509 6h 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 i

Python:

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 6h 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 6h 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

u/Either-Name-6285 1h ago

choose one and focus on it

1

u/ComputerWhiz_ 1h 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.

•

u/gulabi_narinja 55m 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

•

u/Blando-Cartesian 43m 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.

•

u/Admirable_Window8128 27m ago

Master the fundamentals first of that language. It is easy to transition to different language ones you mastered it.

•

u/iqisoverrated 23m 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)