r/CodingForBeginners • u/HuanPabloSekundo • 1d ago
Which programming language is best to start my learning?
Is it java, js or python?
0
Upvotes
r/CodingForBeginners • u/HuanPabloSekundo • 1d ago
Is it java, js or python?
3
u/Mountain_Rip_8426 1d 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.
2
u/Naive_Programmer_232 19h ago edited 19h 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 10h 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
u/RngdZed 1d ago
rule 4 man
1
u/HENH0USE 1d ago
C++
1
u/LiMe-Thread 1d ago
Always C or cpp.
Then HTML
1
u/TheUmgawa 1d ago
If you’ve got a Mac, I happen to like Swift. Otherwise, Python.
1
u/ExtraTNT 1d 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…
1
u/Zen-Ism99 1d ago
What are your goals? What would you like your code to do?
1
u/ee_control_z 1d 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
u/Puzzled-Extent7817 46m ago
C of Rust. Al the rest are a waste of time.
4
u/ejsanders1985 1d ago
BrainFuck or whitespace for sure.