I have been learning python for a year and I think I can code in python! I just need to work on projects to advance my skills. Lately I have been thinking to learn Java...so I took advice from my friends. They said I will have tough time learning Java because I have learned python before. They said I should have learned Java first and python later... maybe I messed up 😅😅
Is it true? Will it really be that difficult?😩
Python is my first language and I am thinking of learning Java now. Can I?! Please share your opinions
Thanks in advance 🤗🤗
I will just be to the point, I just find it fun to learn how to code and want to be able to independent create code create things without error. There’s an interval between where I learn hello world then language I don’t understand. It’s very small and I don’t know where. Is it all important to learn?
Videos
Hello people, I am looking to learn a programming language during the summer before college. The classes I'll be taking at univerisity uses Java. However, I've been trying to learn Python on my own for around two weeks using Automate the Boring stuff and Code academy. So I am still a noob. However, I've read some posts where people say learning Java as a first language will be much better than learning Python as a first language because it is easier to transfer from Java to Python but not the other way around. Now I am conflicted in which language I should devote myself to for the rest of the summer. Please give some advice. Thanks!
Edit: Thanks to everyone who replied and who tried to help. So some said that Python allows you to skip the useless code which therefore allows you to focus more on the concepts. While some said that Java forces you to explicitly write out all the steps which teaches you more on the fundamentals. Although I will eventually be learning Python as I am interested in Machine Learning/AI I think I will be learning Java for the rest of summer until university starts simply because of the fact my classes uses Java so I was think about getting a slight head start. Once again, thank you to everyone who helped.
I just started a class today and found out i will be learning Python, how easy is it to transfer my skills into modding minecraft, Assuming I do well and actually learn to code in Python?
Note: I have never coded before, sorry if this is a noob question.
Every programming language you learn makes it easier to learn the next one.
Once you know how to program in general (for example in Python), IMO Java is fairly easy to learn. I came into Minecraft modding from mostly C background (and I'd say something like mediocre level or whatever, nothing close to an expert), plus some bash/PHP for hobby projects. I started modding/learning Java by reading through most of the official docs by Oracle, and then mostly just diving in and reading through tons and tons and tons of vanilla, Forge and other mods' code and figuring things out as I went.
As to Minecraft modding itself, I'd suggest reading through the official Forge documentation and then some up-to-date tutorials to get the hang of some basic concepts. After that, I'd suggest reading open/visible source mods' code to see how specific things can be implemented, ie. think of a feature that you'd like to implement or something that is close to what you want, then think of a mod (or something in vanilla) that has something similar, and see how they did it, and whether or not you can think of a better way to implement what you need.
I am about to join college in 1 month and will be starting my coding journey. On most youtube videos people say that beginners should start with either java or python.
I like Ai stuff and that is mostly done by python (acc to what I found on the internet) but then Java is for mostly opensource and development( again acc to internet). Open source and development seems like more leaning towards better placements but then python seems easy and most Ai and ml is going on python.
I'm very confused right now, I wanna be able to build some good stuff with either language, but starting out is just overwhelming. No idea where to start.
Edit 1: I have kind of decided to start with Java and my college with probably start with C language so I'll try that in the 1 month I have left.
Hi all. I am a self taught learner of about 4 months now. In my last semester of school (business major), I took intro to programming and loved it. Really wished I did CS instead. I ended up emailing my professor from that class and asked what his thoughts were on self learning.
He told me to learn Python and Java and to have some kind of structure like an online course. Read the pragmatic programmer, and fluent python/effective Java.
I started with python and eventually found the Odin project and switch gears to js and web dev stuff. I am struggling to find a path and stick with it.
Why would my professor recommend those two languages to start with? Do these languages really relate to web dev? What kind of job opportunities can python and java lead to?
After December we will move away from Assembly at work (I work there as an apprentice and they want me to learn it, they don't actually use it). I get to choose between Java and Python. I will learn the other one later anyway, but in the beginning, which should I take? I work there as a Software developer with only very little pre knowledge.
Python is more like a handy swiss army knife Java is full blown war Tank. I would prefer java.
I had a lot of luck learning the easier things like decision statements and loops with python, but learning OOP and some more complex things was a lot easier to understand with Java. Don’t think you need to learn just one, focus on the concepts!
I've got several months of Python under my belt and have written a few smaller programs ranging from 50-1000 LOC, things like text adventures and web scrapers.
I'm trying to pick up Java and libgdx so I can start coding for android development, but honestly feel like I'm banging my head against the wall. After a month of studying off and on, I don't really feel like I'm getting anywhere, the knowledge isn't clicking for me. I don't expect to eb a pro in a month, or even a year, but I feel like after a month I should be able to at least put together something basic, like the text adventure I did previously. However, I feel like I can't, the knowledge isn't there yet.
Part of it is the highly verbose syntax, which makes it feel much slower to put together something functional, but also the lack of the interpreter to test ideas and methods is frustrating, I really leaned on the interpreter whenever I had a problem in Python, and I'm not sure if there's a similar resource I can use for Java.
Besides that is the syntax quirks, and the frustrating feeling of starting over from scratch because I'm not in the habit of writing Java code, not very familiar with the syntax or the "Java way" of doing things.
Right now I feel like I'm spinning my wheels. I've been reading a ton for Java, but it seems like I've spent much less time actually coding than when I was learning Python, and resources for learning Java seem much more scattered, there don't seem to be any great tutorials to get you off and running. The Official documentation and tutorial is quite good, but doesn't seem to build on existing knowledge, just lays things out one at a time in the trails, unless I'm missing something, and that's been the best resource so far, but still frustratingly dense for a beginner.
Is there anyone else who transitioned from Python to Java who might lend me some tips in overcoming my frustrations in this? Any thoughts?
EDIT - Everyone here is so awesome, I really appreciate all the helpful replies. Also, it seems like the consensus is to give Intellij a shot since I'm not thrilled with Eclipse and have experience with PyCharm, also by JetBrains, and that the free version won't give me problems or major limitations.
Thanks so much all of you. I'm gonna get Intellij and try to spend some time this weekend really plugging away at it, and start redoing some of my Python projects in Java as I have the free time to do so.
EDIT 2 - Okay, Intellij IDEA is so much better and easier to work with than Eclipse. No offense intended to anyone who actually likes Eclipse, but I hated it.
Hi.
Basically I am not that interested in Java.
However, I need to understand algorithms, not just solve them.I read books, watched some things online, and even if i can explain some algorithm I can't code it.
I even had difficulties making a linked list in C.
I also lack the OOP understanding. I can read about it, solve quizzes but that is the thing i get most tripped about in Python.
Maybe it just my impatience as I found out I haven't exactly watched tutorials as I cant wait to get into it myself.
Maybe I should just bite the bullet and learn it exclusively for Sedgewicks algorithms.
To be honest i really like Python and see a future with it. Other languages aside from C have mostly been a derail and then I crawl back to Python and spend the next few weeks getting pythonic.
That's the thing, most other languages are idiomatic, but Python is pythonic. Maybe I've spoiled myself, trying to code in english?
I really want to understand classes and i heard Java is great for it too.
The only thing that puts me away is the syntax and the extreme opinion of the JVM, I don't want to spend a month relearning Python again.
To be honest at this point I would be really happy if someone said they followed Sedgewick just with python code from github or that the knowledge is transferable when watching lectures.
I tried with MIT and Standfords Roughgarden but it is very theoretical and at times very mathematical and far removed from code.
I get it i really do, that is what algorithms are. But for now I don't have the luxury of learning mathematics and relearning induction.
https://cs50.harvard.edu/ai/2023/
My goal for now is to be able to this and do it well and actually understand how it works.
I am very conflicted. I know a small bit of python and javascript (as in the only thing I can do is print things like hello world in them) but I have seen many videos about learning java's basics in 15, 14, even 10 minutes.
I should probably say my reasons for leaving it though as that will affect this quite a bit. I wanna make a website and small applications and some games but I want to learn the basics in a video shorter than 11 hours.
At the end of the road I wanna be able to make a small operating system that contains its own code app, a custom Web browser, settings, built-in games, a messaging/calling app, video player, files app, and all the other things a good operating system has.
So, which language should I code in?
Edit: I have had a change of mind, im learning binary first.
I want to learn about programming and I'm interested in Java. I've been searching Google and most of the results say that I should start with Python. Do I really need to learn Python first? I'm 14 and I want to start and learn to program once I get a new PC.
I have been studying programming for the last six months. For the first four months I studied Python, and then I started studying studying data structures and algorithms. For data structures and algorithms, I picked the books where the code was written in Python. Now that I am about to finish that, I have decided to pick Algorithms by Robert Sedgewick. In this book all the code is written in Java.
I want to learn both Java and Python, and I will learn Java at some point. My question is whether I should start learning it right now or not? I know it's not necessary, but I think it will be much easier to follow the book if I have some understanding of Java.
Why am I confused?
Well, I have watched videos, read blogs about people recommending to stick to one language when starting out. So, I am scared to start a new language thinking I might forget Python or get into a situation where I don't understand either of these languages.
Hello everyone.
I have started to learn programming and I am thoroughly enjoying it so far. My goal is to either work in web development at the moment, (if I was to make a career from it, I hear web developers are in high demand), or game development (if I can't make a career from it, at least I can code some games and see them come to life on the Play Store).
I started on Python as I read its the best all round beginner language.
My Father In Laws friend (he's a web developer) has now advised me to stop bothering with Python. He has told me Python is not a language that many employers require and even though it's easier, it will set me back more learning python rather than just getting to grips with Java or C.
I have now become distracted and can't get to grips with for and while loops because all I can think about is starting again on a different language.
Can any experienced coders give me some advise on what to do.
Thanks.
While you are learning Python, you're also learning to write code. That skill will never be obsolete.
My Father In Laws friend (he's a web developer) has now advised me to stop bothering with Python. He has told me Python is not a language that many employers require
The most charitable interpretation of this is that your Father-in-law's friend has already done some research into the job market in your local area, and has found that local employers tend to not to use Python.
However, his mistake (if this is what he did) was extrapolating that out, and assuming that was globally true of all employers across the world.
It also signals a certain level of programming immaturity on his part -- Python, Java, and C share many similarities, so fundamentally, if you know one language, you should be able to transfer your "understanding-of-how-to-program" to other languages and learn them very rapidly -- the core is always the same. He's too focused on the superficial differences.
It may be that your father-in-law's friend was trying to say to you was that you should branch out and learn other languages, and completely botched the explanation. If that was what he was trying to say, then yes, he's right -- in the long run, a truly excellent programmer should have a firm understanding of multiple programming languages/styles of programming to the point where he or she can transcend all of them/understand the similarities and differences between each languages/work with any of them fluently.
The other benefit of learning new languages is that each language will teach you something new, teach you new ways of thinking, and teach you new tips and tricks. However, this is definitely something which you should not try and do as a beginner, and should instead wait until you've acquired a solid understanding of one language beforehand.
(Plus, if you want to do mobile app development, or gamedev, then yes, Java and C are much much more commonly used then Python in these fields. However, Python is very commonly used in webdev, among other fields).
...and even though it's easier, it will set me back more learning python rather than just getting to grips with Java or C.
The fact that Python is easier is an advantage, not a disadvantage. It means you have to waste less time trying to learn the language itself, and can move straight away to learning how to write programs (which is a skill that is completely independent from learning a programming language).
I have now become distracted and can't get to grips with for and while loops because all I can think about is starting again on a different language.
For loops and while loops work the same way in almost every mainstream language. If you spend 1 year learning Python, it'll take you about 30 minutes to learn the fundamentals of Java or C and start writing complex programs with them (and vice-versa).
To summarize, whenever you're learning a programming language, you're actually simultaneously training two skills -- how to use that specific programming language, and how to program. The former might not necessarily transfer from one programming language to the other, but the latter will always transfer from programming language to programming language, and even to other parts of your life.
Programming is fundamentally a mindset -- it's the ability to look at a set of very basic, primitive tools and instructions, and figure out how to combine them and merge them to tackle very large challenges and problems. Programming is applied problem-solving, and once you have that mindset, it doesn't matter if you need to use Python or Java or C or whatever. The tools might be different, but the ability to see how to use them is far more important and will stay constant.
The long and short of it is that I would treat anything else your father-in-law's friend tells you with a healthy dose of skepticism.
Cause i start learning Python and its coding tasks are so difficult((
After learning Python, I got confused about what to learn next. I was going to learn Java, but I found a lot of criticism about it, and I felt that C and all its variants didn’t suit me. What do you think?
Well the question is in the title. I have been programming with java for quite a bit, C# is pretty much the same but i have done quite a few projects with that, and in college I have been working with C++ for 2 years. With the python community rising more and more each year I am wondering if I should learn it. In general I don't know why but i have some aversion towards it, I think that python is a jack of all trades, but everything python can do either C++,Java or C# can do better. I really don't know if I should learn it, however seeing how good it is with data processing, and machine learning and etc, it has got me thinking. Any input is appreciated.
I am sorry if the post is badly phrased, it is my first time posting here, and in general between my first posts on reddit.
I think Python is a useful language to learn. It does a lot, has a ton of libraries for all kinds of tasks, and nowadays with stuff like venv, setting up a usable environment is easier than ever. On top of that, Python has a pretty low learning curve (in my opinion).
but everything python can do either C++,Java or C# can do better
I would not necessarily say that this is a true statement. In terms of speed of execution, it's generally true that Python is slower than languages like C and C++, but for most practical use cases this difference in performance is negligible.
Additionally, there are some things that can be implemented quite easily (or at least quickly) in Python that are more tedious to do in other languages.
but everything python can do either C++,Java or C# can do better
One thing that Python does faster is prototyping. If I'm writing some one-off task to, say, parse some data and print some results, Python is much faster to write because it's dynamically typed and has none of the boilerplate of the above languages.
Programmer time is expensive, so anything that allows me to do a couple hours of work in 30 minutes is a godsend.
Decided to try and do a thing in Python for the first time in a while.
Wrote a small program to test out a library in Python that I'd originally been using the Java version of.
Keep in mind I'm very, VERY used to Java and to an extent C++.
Take a guess as to what happened.
It ran flawlessly with zero errors the first time I ran it.
Why the hell don't I use this friggin language more often.
I'm genuinely still astonished, not a single thing I've made in Java has run flawlessly the first time I run it.
So uh, hello Python. Where the hell have you been all this time?
At first glance this might seem like a dumb idea. Because I am 9ish hours into a 12 hour python course. But I am going to high school next year and I will take AP Computer Science next year and the class uses Java. I do know that programming isn't just about the syntax. But will knowing the syntax help in getting a better grade?
Just curious because I want to start to learn how to build applications most specifically for mobile and Java seems to be the best language to go about this for Android. However I've seen people say you should learn Python first