r/learnprogramming • u/MinistryOfBakchodi • 21d ago
what is the best way to learn any new programming language?
I always get exhausted, and I doubt whether my process of learning is good?
0
Upvotes
4
u/iqisoverrated 21d ago
Look at how you learn other things and apply the same strategy. Everyone is different in how they optimally take up information.
2
u/tonystark19541959 21d ago
Honestly, one thing that helped me a lot was to stop treating learning a language like studying for an exam.
I'd suggest following a simple cycle:
Also, don't try to learn everything at once. You'll naturally pick up a lot of the language as you build things.
And don't worry if you feel exhausted sometimes. Programming has a learning curve, and getting stuck is a pretty normal part of it. Just stay consistent and keep building stuff. You'll get better!
1
u/BranchLatter4294 21d ago
Practice
1
u/Agawell 21d ago
Build stuff…
1
u/AdDiligent1688 21d ago
Build with the one you know best. Then translate to the new one for baseline. Then once you’re familiar with what you can replicate, find what you can’t in the new language. Repeat as needed.
1
u/ro_ok 21d ago
Honestly, load up a good IDE and create a project with the strictest linters for that language and then start going through that languages documentation for whatever their tutorial project is. Once you've got that down, do some leetcode problems in the language to force yourself to consider the data structures of the language. Then start working on your project.
The most important thing is to look up every single thing the linters point out and make sure you understand why it's making whatever suggestion before you accept it or move on.
1
u/podule-games 20d ago
You have to write a project in that language. Can be something very simple like a todo list, or Minesweeper or something like that.
The only way you really *get* a language is if you write a real program in it.