r/CodingForBeginners • u/HuanPabloSekundo • 10d ago
Which programming language is best to start my learning?
Is it java, js or python?
2
2
u/Naive_Programmer_232 9d ago edited 9d ago
I'd go with Java. It'll give you stronger programming fundamentals and you'll be reminded of it later when you learn other languages, as there will be similar features/keywords/syntax/semantics. Java doesn't hide as much stuff under the hood as JavaScript or Python does for that matter. It is harder for a beginner to master it; but because it requires more considerations to write it, it'll give you deeper insight into how things are working behind the scenes. Others like JavaScript or Python are higher level and aim to simplify how much lines of code you have to write to do many complex things, this is both a blessing and a curse.
On that note, JavaScript is somewhat better than Python imo, especially if you know you want to use it for web-related apps/development etc, it is king over there. However, if you go that route in terms of focus, I'd highly recommend TypeScript instead; it is a superset of JavaScript: all JavaScript is valid TypeScript, but not all TypeScript is valid JavaScript; it extends JavaScript and transpiles into it. By learning TypeScript, you will also learn JavaScript; but not the other way around. So you might as well go with TypeScript, two for one deal.
Why not Python? There's nothing wrong with learning Python first. It's an excellent language for beginners, human-readable, and simpler as it does a lot of stuff under the hood for you. However, that is part of the curse. Syntactically/semantically Python imo is more unique. It's a little less established as a visual pattern amongst other languages than Java is. Plus, if you go with Python first, it is more likely, that you might have to unlearn the way things work with it, in order to learn more about the next language, because there's no guarantee that language will do as much for you.
Overall imo Java to TypeScript to Python is shorter than any other path permutation. That's why I say do Java first. If it's not clear syntactically, some level of inspiration either from it or C++, then at least your OOP foundation will be strong enough, to where you can easily figure out what to do in the OO language to do what you could in Java. But using that path, you definitely will see familiarity between Java and TypeScript, then TypeScript and Python to an extent.
They say first language doesn't matter, but it does if you're building a foundation and fundamentals. The first language you REALLY KNOW absolutely does matter and will effect your path of progression with other languages in terms of ease of learning the next. It's easier to learn a language that looks similar to some extents, in some features at least, to the language that you really know. Much like a spoken language.
2
u/peakpirate007 9d ago
been building https://www.runtime.school/ for learning and practicing python in one place. lessons, practice, projects and a few tools all use the same datasets, so it feels more connected than jumping between random examples. if you’re learning python, might be useful.
1
1
1
u/ExtraTNT 10d ago
Depends:
Are you into electronics: c
Are you a math guy (or girl): haskell
Are you into game dev: scripting language for a engine you like
You are not sure: java script is surprisingly easy to get started and is relevant later
I personally think python is ugly and hard to debug,… also biggest pain to read and advise you get is sometimes so bad, that it could cost you your job, if you ever follow it…
2
u/Zen-Ism99 10d ago
Why not C++ for game dev? Real question…
0
u/ExtraTNT 10d ago
Cpp isn’t a good language to start… i only write cpp, if i really have to: fast shit: c, big shit haskell… ok, did big shit in c… cpp often ends in very painful code…
1
1
u/ee_control_z 10d ago
I would go with Python since it is a non compiled language and because the concepts are a bit easier to understand (and a bit more versatile up front).
1
1
1
u/xarop_pa_toss 7d ago
Bro you give us no information at all. Like, have you asked yourself why your want to learn programming in the first place? What do you want to build?
1
u/Fantastic-Work-6769 6d ago
The practical pick follows the goal web work points to javascript, general scripting and automation point to python and the first language matters less than finishing its basics. Bootdev could help learn those transferable basics in a guided order though free tutorials and documentation cover similar ground
1
u/Prudent_Society_7221 6d ago
Python python python python. Unless you have a particular little boneyboi for games and think making games specifically might help keep you interested, game maker is a sweet little platform to learn in. Though I'd strongly encourage you to supplement with some scripting in a language like python as you go to help make sure you're learning all the fundamentals.. like.. it's really easy to overlook some basic tools at your disposal if you just tinker in something like gamemaker, but solving leetcode problems in Python will force you to discover them.
1
u/KaxuTheSheep 4d ago
If you're just learning to learn programming, python.
If you have more specific goal then that changes the answer but python is really flexible.
If you want to learn a C like language try hare, its very simple and its just a more approachable C.
1
u/GuruPentameter 4d ago
c. it will establish an understanding of hardware that educates and increases the quality of the work you will do in any other language.
1
u/Practical-Bug-6786 4d ago
Python.
I learned this first too, it is very good for logic training and it is similar to GDScirpt for GODOT.(if u want to develop games)
1
u/BorshikNotFound 4d ago
python is a good choice (from my experiece), its not as complex as something as java and is easy to pick up
i guess lua is also not a terrible choice, my first programming language was luau and it was somewhat easy to pick up too
no hate to java tho, its a good language but im not mature enough for it
1
1
4
3
u/Mountain_Rip_8426 10d ago
i'd say python. it hides a lot of complexity, helping you to pick up general concepts of programming with the least complexity overhead.
however if you start with a stricter language as java, you learn those concepts more deeply. you'll proceed maybe slower, but you won't have to relearn the same things in more depth.
actually both approach could work, but i guess python is safer to not scare you away.
as for javascript... well, if it must be that, id rather go with typescript to make the most out of it, you'll eventually gonna run into js/ts anyways, but i would say it would be the worst pick of the 3.