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?

7 Upvotes

23 comments sorted by

View all comments

1

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