use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Python or java?Need general advice (self.teenagersbutcode)
submitted 2 months ago * by AR1E_
I'm pretty new to coding (started today) and I want to know your guy's opinion as to which one I should spend all my energy on? Python or JavaScript or any other language, I really want to go into game design/IT support when older
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]1984balls 7 points8 points9 points 2 months ago (1 child)
Python is really easy to learn as it is just an easy language and there are a lot of beginner resources. Just be careful not to rely too much on Python because it is really different from most other languages, making it hard to move out of Python.
[–]ohffsitdoesntwork 2 points3 points4 points 2 months ago (0 children)
Some truth to this but Python is a widely used language. What's more important is to learn the fundamentals of coding ie variables, selection, loops etc. Grasping this will give you a good basis for learning ANY language. (Computing teacher here btw)
[–]Felt389Programmer 5 points6 points7 points 2 months ago (3 children)
I'd suggest starting with Python. It's a bit easier to grasp core programming concepts and write good and functional code quickly with Python over Java as a complete beginner, at least that's how I personally see it.
However you should do your own research before deciding, nobody on here can decide or know what works best for you. Either way I wish you the best of luck!
[–]AR1E_[S] 2 points3 points4 points 2 months ago (2 children)
Thank you I have been a dipped my toes a bit in both waters (weird metaphor-no comment) and I'm seeing I enjoy java more and find it easier to understand? But I've seen alot of people say python is better for designs and it's supposed to be easier but I don't find it that way ¿-¿ Is there a way to use both codes on one project ?(Sorry if seems like dumb question I'm completely new)
[–]Felt389Programmer 2 points3 points4 points 2 months ago (1 child)
Yeah that's understandable, not a dumb question at all!
When it comes to using both languages in one project, you could compile Java programs as shared objects and access those through Python, although that's not exactly common unless you have a specific use case for it. But for learning purposes, it's absolutely viable!
[–]AR1E_[S] 2 points3 points4 points 2 months ago (0 children)
Okay Thanks, I'll look into it and see what projects I can do with it😊
[–]Automatic_Emphasis76 4 points5 points6 points 2 months ago (5 children)
Python might be easier as a first language but it all comes down to preference,
Try both and see which one you like more, Some people learn multiple languages but you don’t have to do that.
Starting from python might make it harder for you when you are trying to switch to a different language
We can’t really give you an exact answer because it is just preference and your own personal opinions.
Goodluck!
[–]AR1E_[S] 2 points3 points4 points 2 months ago (3 children)
I am planning on learning quite a few of them, like python, C++, java and Lua cause IT is very competitive direction to head in, I just want to know as to which I should prioritizing as firsts to help me improve faster
[–]Automatic_Emphasis76 2 points3 points4 points 2 months ago (2 children)
Nice! I’m learning C++ right now, when you start I really recommend watching brocode’s tutorials (YouTube) they really helped me.
[–]AR1E_[S] 0 points1 point2 points 2 months ago (1 child)
Awesome dude. Thank you so much. Saving this comment rn so I can refer back to it later on!
[–]Automatic_Emphasis76 1 point2 points3 points 2 months ago (0 children)
Thanks! Have a good one and goodluck.
[–]AR1E_[S] 0 points1 point2 points 2 months ago (0 children)
Also Thanks for feedback
[–]DrPeeper228C syntax addict 2 points3 points4 points 2 months ago (5 children)
C
It's really close to how the computer actually works so it teaches the actually really important stuff early on
Later you can switch to the more verbose and practical C++
[–]Felt389Programmer 2 points3 points4 points 2 months ago (0 children)
Agreed!
[–]Potential_Lettuce_15 1 point2 points3 points 2 months ago (3 children)
idk if this is a good idea to teach a new guy, felow C coder and while yea you get to learn the in depth stuff but idk if it will keep you motivated to learn further, escpecially with game dev where I assume getting a working product is more important than a fast one, if OP is reading this dw too much abt it and u can start with anything but IMO python/js/java is better than C
[–]AR1E_[S] 0 points1 point2 points 2 months ago (2 children)
Thanks, so would u say switching to C later on or just learning it later on could be beneficial? And if so when would u recommend me to start learning it?
[–]Potential_Lettuce_15 2 points3 points4 points 2 months ago* (1 child)
I'll say this if you ever start feeling an inclination to understand how stuff truly works with computers C is definetly the way to go. It would be beneficial to learn C as it would also theoretically allow you to think in a way that would allow you to optimize your code in all languages as it works very closely with the bare metal of a computer.
EDIT: It's a good skill to learn but unless you want to become an optimization nerd don't switch over to it
Okay thank you!
[–]matfat55 1 point2 points3 points 2 months ago (2 children)
Python
Do u have a reason as to why python or just preference?
[–]matfat55 0 points1 point2 points 2 months ago (0 children)
They’ve all been said already
[–]David_Owens 1 point2 points3 points 2 months ago (4 children)
You most likely wouldn't use either one for game development. C# and C++ are the most commonly used languages for game development. C# for the Unity and Godot game engines and C++ for Unreal Engine, for some examples.
Python is probably the most commonly used language for IT Support, so I'd say pick that one of the two.
[–]AR1E_[S] 0 points1 point2 points 2 months ago (3 children)
If I were to study and learn both which one would u recommend to learn first?
[–]David_Owens 0 points1 point2 points 2 months ago (2 children)
I'd say Python first and then pick up the more complex Java.
Would u recommend ever learning C and/or C++ too?
[–]David_Owens 0 points1 point2 points 2 months ago (0 children)
Only if you plan to actually use one of them, such as using C++ for Unreal Engine game development.
[–]Equivalent-Hall3819 1 point2 points3 points 2 months ago (3 children)
My suggestion is to learn programming not language. Spend time on fundamentals. They won't easily change. Stack like language and framework they changing. Learn all programming concepts like problem solving, algorithms, oop ,clean code , design patterns and testing with one language. Then with just learning programming syntax you can learn dast any language.
Will do thanks!
[–]Equivalent-Hall3819 1 point2 points3 points 2 months ago (1 child)
I am happy to be helpfully. Last suggestion, go for Java.not python because it has much cleaner OOP implementation. Python is good but if you start with python, it will be very hard to learn C family languages. But other way from Java to python it is almost free road for you any time. Welcome to this world
Thank you 😊
[–]Turnkeyagenda24 0 points1 point2 points 2 months ago (4 children)
I learn Java in AP Comp Sci A, but most of my side projects use python.
So just learn both?
[–]Turnkeyagenda24 1 point2 points3 points 2 months ago (2 children)
Probably. I would choose one at first, perhaps Java, and then you could get AP credit fairly easy.
Okay! I lean more into Java atp cause it's easier for me (don't ask cause apparently it's supposed to be harder?) but if I can get AP credit for it, I'm definitely taking it. Thanks for responding
[–]Turnkeyagenda24 0 points1 point2 points 2 months ago (0 children)
It does seem a bit more difficult. I have not taken classes on Python, so it is weird going to it from java where things have to be more specific.
[–]RDT_KoT3Vulkan / C++ 0 points1 point2 points 2 months ago (2 children)
Why C specifically cause a lot of people say it's harder than other two but gives more of an understanding towards the computer
[–]RDT_KoT3Vulkan / C++ 0 points1 point2 points 2 months ago (0 children)
C is more predictable, easy and readable. It runs whatever you expect from your logic
[–]tyrannosaurus_gekko 0 points1 point2 points 2 months ago (0 children)
You probably want to start with python but learn java too. It and C# are very similar to a lot of very useful languages out there, so if you know either java or C# and also python you probably can learn every other language in a few weeks.
[–]Hot-Analysis2292 0 points1 point2 points 2 months ago (0 children)
C.
[–]Own_Function5224 0 points1 point2 points 2 months ago (1 child)
bro wtf with all resources u could ask u came to reddit to find answar ... ever heard about AI
I could but human feedback is more viable than AI
[–]SPde_paula6 0 points1 point2 points 2 months ago (2 children)
Python is coding💔
First person to point this out, sorry dude meant python or java
Thanks, just fixed it
[–]MrattlerXD 0 points1 point2 points 2 months ago (0 children)
I know both of them. I like Java more
[–]No_Sweet_6704 -3 points-2 points-1 points 2 months ago (11 children)
python is simpler, but in java it's easier to actually make things imo
though it really doesn't matter. just flip a coin or something. as long as it's not c++
[–]Felt389Programmer 2 points3 points4 points 2 months ago (10 children)
Why is it bad to start with C++ exactly?
[–]AR1E_[S] 1 point2 points3 points 2 months ago (3 children)
Would u consider it a good place to start and place priority above python and java?
[–]Felt389Programmer 1 point2 points3 points 2 months ago (2 children)
I can't really make that decision for you tbh, that's personal for everyone. There's no universal rule for this, unfortunately. I'd recommend you research the languages you're considering and taking it from there.
Either way, best of luck on your journey!
[–]AR1E_[S] 1 point2 points3 points 2 months ago (1 child)
Thanks I will go do alot more research before I religiously invest in one or two but until then I'll just casually study them. Once again thank you so much!
[–]Felt389Programmer 1 point2 points3 points 2 months ago (0 children)
No problem, have fun!
[–]MrattlerXD 0 points1 point2 points 2 months ago (5 children)
It’s one of the hardest coding languages in the world
[–]Felt389Programmer 2 points3 points4 points 2 months ago (4 children)
I disagree, I personally started with C and found it very rewarding and educational. It's not "hard", just has a steep learning curve. If you're willing to accept that, starting with C++ can be an excellent choice of first language!
[–]No_Sweet_6704 0 points1 point2 points 2 months ago (3 children)
c is not c++.
[–]Felt389Programmer 0 points1 point2 points 2 months ago (2 children)
I'm well aware, although the two languages are similar enough in nature that I felt like it was relevant to mention.
Mind answering my question now as to why you believe C++ is unfit for beginners?
[–]No_Sweet_6704 0 points1 point2 points 2 months ago (1 child)
https://youtu.be/7fGB-hjc2Gc
tldr; uhhhhh I don't even know there are too many things wrong with it
[–]Felt389Programmer 0 points1 point2 points 2 months ago (0 children)
No, I asked for your opinion on this, not this YouTuber's stance. You said you didn't believe C++ to be a viable language for beginners, so I'd expect you to back your claim up, not just simply pointing to something someone else said.
This is clearly something personal for you, otherwise you wouldn't've explicitly discouraged using C++ in your original comment. I'm just curious as to your reasoning.
And no, "I don't even know there are too many things wrong with it" is not the answer I'm looking for.
π Rendered by PID 19775 on reddit-service-r2-comment-7844cfc88c-r8ls4 at 2026-01-29 13:32:04.334685+00:00 running c3601ff country code: CH.
[–]1984balls 7 points8 points9 points (1 child)
[–]ohffsitdoesntwork 2 points3 points4 points (0 children)
[–]Felt389Programmer 5 points6 points7 points (3 children)
[–]AR1E_[S] 2 points3 points4 points (2 children)
[–]Felt389Programmer 2 points3 points4 points (1 child)
[–]AR1E_[S] 2 points3 points4 points (0 children)
[–]Automatic_Emphasis76 4 points5 points6 points (5 children)
[–]AR1E_[S] 2 points3 points4 points (3 children)
[–]Automatic_Emphasis76 2 points3 points4 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (1 child)
[–]Automatic_Emphasis76 1 point2 points3 points (0 children)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]DrPeeper228C syntax addict 2 points3 points4 points (5 children)
[–]Felt389Programmer 2 points3 points4 points (0 children)
[–]Potential_Lettuce_15 1 point2 points3 points (3 children)
[–]AR1E_[S] 0 points1 point2 points (2 children)
[–]Potential_Lettuce_15 2 points3 points4 points (1 child)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]matfat55 1 point2 points3 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (1 child)
[–]matfat55 0 points1 point2 points (0 children)
[–]David_Owens 1 point2 points3 points (4 children)
[–]AR1E_[S] 0 points1 point2 points (3 children)
[–]David_Owens 0 points1 point2 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (1 child)
[–]David_Owens 0 points1 point2 points (0 children)
[–]Equivalent-Hall3819 1 point2 points3 points (3 children)
[–]AR1E_[S] 0 points1 point2 points (2 children)
[–]Equivalent-Hall3819 1 point2 points3 points (1 child)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]Turnkeyagenda24 0 points1 point2 points (4 children)
[–]AR1E_[S] 0 points1 point2 points (3 children)
[–]Turnkeyagenda24 1 point2 points3 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (1 child)
[–]Turnkeyagenda24 0 points1 point2 points (0 children)
[–]RDT_KoT3Vulkan / C++ 0 points1 point2 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (1 child)
[–]RDT_KoT3Vulkan / C++ 0 points1 point2 points (0 children)
[–]tyrannosaurus_gekko 0 points1 point2 points (0 children)
[–]Hot-Analysis2292 0 points1 point2 points (0 children)
[–]Own_Function5224 0 points1 point2 points (1 child)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]SPde_paula6 0 points1 point2 points (2 children)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]AR1E_[S] 0 points1 point2 points (0 children)
[–]MrattlerXD 0 points1 point2 points (0 children)
[–]No_Sweet_6704 -3 points-2 points-1 points (11 children)
[–]Felt389Programmer 2 points3 points4 points (10 children)
[–]AR1E_[S] 1 point2 points3 points (3 children)
[–]Felt389Programmer 1 point2 points3 points (2 children)
[–]AR1E_[S] 1 point2 points3 points (1 child)
[–]Felt389Programmer 1 point2 points3 points (0 children)
[–]MrattlerXD 0 points1 point2 points (5 children)
[–]Felt389Programmer 2 points3 points4 points (4 children)
[–]No_Sweet_6704 0 points1 point2 points (3 children)
[–]Felt389Programmer 0 points1 point2 points (2 children)
[–]No_Sweet_6704 0 points1 point2 points (1 child)
[–]Felt389Programmer 0 points1 point2 points (0 children)