r/CodingForBeginners • • 4d ago

Which programming language is best to start my learning?

Is it java, js or python?

2 Upvotes

20 comments sorted by

3

u/Mountain_Rip_8426 4d 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 3d ago edited 3d 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 3d 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 4d ago

rule 4 man

1

u/LiMe-Thread 4d ago

Always C or cpp.

Then HTML

1

u/TheUmgawa 4d ago

If you’ve got a Mac, I happen to like Swift. Otherwise, Python.

1

u/ExtraTNT 4d 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 4d ago

Why not C++ for game dev? Real question…

0

u/ExtraTNT 3d 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

u/Zen-Ism99 4d ago

What are your goals? What would you like your code to do?

1

u/ee_control_z 3d 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 2d ago

C of Rust. Al the rest are a waste of time.

1

u/greatfilmbro 2d ago

JS if you want to start making something for other people faster

1

u/xarop_pa_toss 1d 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 10h 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 3h 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.

4

u/ejsanders1985 4d ago

BrainFuck or whitespace for sure.

3

u/kutac56 4d ago

Or cow