No, learning any programming language before Java will make learning Java easier. Answer from ectomancer on reddit.com
🌐
Reddit
reddit.com › r/learnpython › java after python.. possible??
r/learnpython on Reddit: Java after python.. possible??
August 8, 2022 -

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 🤗🤗

🌐
Reddit
reddit.com › r/learnpython › is it bullshit: know java, easy to learn python. but not the other way around.
r/learnpython on Reddit: Is it bullshit: Know Java, easy to learn Python. But not the other way around.
August 11, 2019 -

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.

🌐
Reddit
reddit.com › r/learnjava › i know python, how long will i take to learn java?
r/learnjava on Reddit: I know python, how long will i take to learn java?
January 3, 2023 - ... If you want a concrete answer and considering you will study and solve couple of leetcode problems daily, it will take you 1 month. ... I started coding Java at work this year after learning python over a number of years.
🌐
Reddit
reddit.com › r/feedthebeast › how easy is it to learn java after you learn python?
r/feedthebeast on Reddit: How easy is it to learn Java after you learn Python?
November 15, 2017 -

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.

🌐
Reddit
reddit.com › r/learnprogramming › as a complete beginner what should i start with python or java?
r/learnprogramming on Reddit: As a complete beginner what should I start with Python or Java?
July 2, 2024 -

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.

🌐
Reddit
reddit.com › r/learnprogramming › professor said learn python and java. why?
r/learnprogramming on Reddit: Professor said learn Python and Java. Why?
September 5, 2023 -

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?

Top answer
1 of 59
134
If you had asked your professor "what's the most common language for web frontend development," he'd've probably told you JavaScript. But there are lots of kinds of programming out there, and Java and Python are a pretty good choice for covering a whole lot of bases. Python's one of the most popular languages out there, especially for what's trendy today (machine learning) and for developing being done by professionals who aren't primarily programmers (scientists, analysts, business-folks, artists). Java's extremely popular for big corporations building lots of complicated little business logic services, and it's still fairly popular for web backends. Plus, there are huge amounts of "learn programming" resources aimed at both of those languages. Also: if you really want to be a professional developer, I might suggest hanging out for an extra year or two to get a CS minor or something if you can. If your plan is to study programming, and they teach programming where you are, why leave? But I also understand that staying in school longer isn't always possible, financially or otherwise.
2 of 59
35
CS professor here. The programming language you choose as a beginner is mostly irrelevant. Python is known as an easy language because its syntax is similar to written English. If you really learn how to program, you'll learn that the language is just a tool. Asking for the "best language" this early is like comparing screw drivers without looking at the screw. Some languages will do some things better, but you don't need to know any of that right now. When you learn how to make a loop in one language, you can do it in nearly any language with the smallest of effort. The hard part is learning how to do something, not how to write it. Go deep, not wide. The things you learn in one language can apply to other languages. Your professor gave you good info. Thank them and take the advice. P.s. I'd rather hire someone who knows one language really well vs. Someone who knows a dozen languages at a shallow level.
🌐
Reddit
reddit.com › r/java › coming to java from python, frustrated. any tips for connecting the dots?
r/java on Reddit: Coming to Java from Python, frustrated. Any tips for connecting the dots?
October 24, 2014 -

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.

Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › transitioning from python to java
r/learnprogramming on Reddit: Transitioning from Python to Java
December 30, 2023 -

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.

🌐
Reddit
reddit.com › r/learnjava › is it ok to start learning java first before python?
r/learnjava on Reddit: Is it ok to start learning Java first before Python?
March 2, 2021 -

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.

🌐
Reddit
reddit.com › r/learnprogramming › should i learn java or stick to python?
r/learnprogramming on Reddit: Should I learn Java or stick to Python?
August 24, 2019 -

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.

🌐
Reddit
reddit.com › r/learnprogramming › should i learn python, javascript or java first?
r/learnprogramming on Reddit: Should I learn python, javascript or java first?
May 3, 2023 -

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.

Top answer
1 of 5
18
I have seen many videos about learning java's basics in 15, 14, even 10 minutes. LOL. They at utmost give you the basic vocabulary, but they cannot teach you programming. but I want to learn the basics in a video shorter than 11 hours. Ahem... that's illusional. You fall for the common misconception of conflating learning programming languages with learning programming. The former is the easy part as it is only very limited vocabulary and grammar. The latter is the difficult, time and work intensive part as it is learning to analyse and dissect problems to develop minuscule detailed algorithmic step-by-step solutions that then can be implemented in a programming language. The MOOC Java Programming from the University of Helsinki is a beginner course in 14 parts (each part is considered a week) where the total time investment is upward of 70 hours - and that's just the basics. Similar, the MOOC Python Programming 2023 from the same University. Both are beginner courses. Also, you don't learn by watching videos. You learn through active programming. 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. That's a huge untertaking that will take several years to complete even in the most basic state. See TempleOS . If your final goal is an OS, there won't be a way around C++ in the long range as you need to be able to directly access the hardware. None of the languages you have listed will be directly applicable to your goal.
2 of 5
13
Wrong languages for making an OS and making an OS it's the wrong activity to learn programming.
🌐
Reddit
reddit.com › r/learnprogramming › advised to stop learning python and start on java or c
r/learnprogramming on Reddit: Advised To Stop Learning Python And Start On Java Or C
May 10, 2015 -

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.

Top answer
1 of 5
51

While you are learning Python, you're also learning to write code. That skill will never be obsolete.

2 of 5
38

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.

🌐
Reddit
reddit.com › r/learnprogramming › should i learn python even after knowing java and c++?
r/learnprogramming on Reddit: Should I learn python even after knowing Java and C++?
April 14, 2019 -

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.

🌐
Reddit
reddit.com › r/python › java programmer coming to python for the first time...
r/Python on Reddit: Java programmer coming to Python for the first time...
February 16, 2021 -

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?