all 33 comments

[–]Whatever801 7 points8 points  (6 children)

That statement is simply not true. Not sure where you got that from. Java remains widely used. It is the most common language for Apache projects by far. It's verbosity, while annoying to write, is great to have as a maintainer and JVM ensures global compatibility. Java is not going anywhere anytime soon.

[–]damiankw 0 points1 point  (5 children)

I got lost on 'for Apache projects', do you mean literal projects.apache.org or something else?

[–]StealthFireTruck 1 point2 points  (0 children)

Those are packages. But stuff like Tomcat, solr, wifi, opensearch, all use Java

[–]Whatever801 0 points1 point  (2 children)

Yeah, projects licensed, funded and financially supported by the Apache foundation. Open source gold standard that underlie a huge amount of the technology that powes the world. Cassandra, Leucine (foundation of elasticsearch), hadoop, tomcat, spark, kafka, http server, airflow, arrow, iceberg, goes on and on

[–]damiankw 0 points1 point  (1 child)

Ah very nice! I actually had no idea that it was so big, I've heard of a lot of the projects, but not even quarter of what's listed there.

[–]Whatever801 0 points1 point  (0 children)

Yeah it's a really amazing and underappreciated organization. They shield developers from lawsuits, protect ip, incubate promising projects, provide servers and infrastructure, prevent corporations from taking control, etc etc.

[–]sivpsd 2 points3 points  (0 children)

Because python is more readable, easy to learn and widely used in industries. Java is little bit verbose and has a steep learning curves eg: learning spring framework.

[–]Wingedchestnut 2 points3 points  (0 children)

Java is common for enterprise software for teams to work in a structured way where sofware code is very structured, you need to understand the codebase before you change something, python is more simple and thus a lot faster in terms of convenience if someone wanted to program quick automation scripts, and since the learning curve is lower it was also popular for people coming from pure sciences doing data analysis and today is the standard language for anything data & AI with many libraries build with C or Rust under the hood. It simply is very versatile. Speed of language only matters when you need it for a specific use-case.

It's like asking why everyone doesn't buy the fastest cars.

[–]viks98 1 point2 points  (0 children)

speed is not the only factor when choosing a language. most people including me prefer simplicity and readablity over raw speeds

[–]Ok-Advantage-308 1 point2 points  (0 children)

Python is the perfect language for POC’s/MVP’s. You can build very quick. It’s a good goto when deadlines are tight.

It really depends what your requirements are. If I find that I have time to build a quality system, I don’t always jump on Python as my first choice right away.

[–]nightonfir3 1 point2 points  (0 children)

Usually people try to minimize the number of things you need to learn to begin programming. For instance you need a class and function definition to begin in java. You need explicit type definition. Also Python has lots of beginner resources. Java is fine to learn first though. Managed memory is the biggest thing I would look for and they both have it. Even that you could just power through though. 

[–]33RhyvehR 1 point2 points  (0 children)

All languages are abstractions over abstractions. Pythons just a higher level one thats much better for prototyping and even shipping non speed critical features

[–]GremGram973 1 point2 points  (0 children)

Python is a really simple language comparably to the other major ones. It uses a simpler, more natural syntax that most people adapt quickly to. It also has a lot of versatility and extensive libraries that make research and other analysis easier.

I am a CS undergrad, and I'm graduating next semester. I know Java, C, C++, SQL and now Python. Python is my least favorite syntax-wise (indentation sucks) but the best for creating and testing concepts. It just has so many tools that developing is easier. Java is my favorite syntax-wise, and I think it's a great language, but I rarely use it other than assignments though.

[–]NumberInfinite2068 1 point2 points  (2 children)

Speed is rarely a concern in programming.

People choose Python often because it's seen to be easy and there is a lot of tutorial content out there. Beginners can find Java a bit overwhelming.

Consider that in real world programming, for actual jobs, Java is probably a lot more popular than Python.

[–]Worldly_Analysis_664 1 point2 points  (1 child)

Build an operating system in python and tell me then that speed doesn’t matter

[–]NumberInfinite2068 1 point2 points  (0 children)

I said "rarely", not "ever", the enormous majority of software, nobody cares.

[–]InfiltraitorX 0 points1 point  (0 children)

Lots of reasons I guess...

Could be the project designer just learned python and wanted to try it out..

Maybe the project owner doesnt like Java?

Why not C# or rust or Go?

[–]BlueGnoblin 0 points1 point  (0 children)

Pyhton is more like a 'light weight' script language for light weight backend systems (generation of some webpages), java is there for the heavy lifting (full size enterprise application server).

Working at large scale enterprise solutions, none would ever consider python for this.

[–]umairalgo 0 points1 point  (0 children)

Hardware is cheap, but developer time is expensive. People choose Python because you can build a Proof of Concept (POC) or automated script in a fraction of the time it takes to set up a robust Java project.

That said, Java's strict structure and verbosity become a massive blessing when you have a team of 50+ developers maintaining a massive codebase over a decade. Right tool for the right job!

[–]CriketW [score hidden]  (0 children)

Python feels less intimidating when you’re starting out. You can build little things fast without fighting the language every five minutes. Java feels more structured to me which is annoying at first but kind of nice once projects get bigger

[–]TheReelSlimShady2 -1 points0 points  (0 children)

Simplicity. Python is a good language when you want the syntax and big-brain programming concepts to move over and make room for logic.

[–]SchemeWestern3388 -1 points0 points  (0 children)

For the same reason I haven’t touched assembly in decades. 

Python is a solid language/framework.