DEV Community

Discussion on: Will Python replace Java? Myths you still think are true.

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

Some valid points, but you've unfortunately misrepresented a few things.

People tend to claim that Java is an old language, just because the name hasn’t changed in so many years that doesn’t mean that nothing has changed in Java.

No one thinks this. Most languages don't change their name.

The "hatred" of Java is found in its oft-taught patterns, many of which are considered anti-patterns in most other languages. Java can be used well, but the way it's usually taught (especially in university) is counterintuitive to industry-wide good practice. That's where the hatred comes from.

Also, Oracle isn't exactly a well-loved entity outside its own clique.

Python is the new trend among the freshers and also in the tech-world...

Python is not a new trend at all, and the trend is not merely among "freshers". It is considered the pillar of data science and big data, is strongly represented in scientific computing, and is widely used in API development, network programming, and cloud computing. It's also often appreciated for rapid development of user applications.

...mostly because of its user-friendly syntax.

Python's syntax is one of the things that people like about it initially, but it has many other strengths that are loved by its users, sometimes even more than the syntax. For example, dynamic typing is a powerful and well-appreciated feature, especially once you know how to use it well. The attention to consistency and "Pythonic" behavior is key. Developers also often like the ability to write classes that seamlessly integrate with every operator and built-in function via special methods and a well-documented data model.

And then there's the community, which is often regarded as one of the most diverse and supportive in the indusry.

Python isn't the holy grail (pun intended), but it isn't merely something loved by 'freshers' because it's 'easy'.

But wait! Do you know, that Java is currently more popular than Python in the IT programming trend in terms of job positions and usage statistics.

Depends on the survey you're looking at. Java is among the top 5 consistently...right next to Python and C++. But its exact position varies.

Also, Java highlights the Principle of WORA, Write Once, Read Anywhere i.e., a cross platform ability...

Python, like Java, works the same on any environment running its interpreter. So this is not an "advantage" to Java. It's like saying pickup trucks have an advantage over SUVs because they can be driven on the highway.

...whereas Python needs a python compiler to write or run the code.

Python is an interpreted language, and it requires an interpreter to be installed on the end-user machine to run.

Java also requires an interpreter (the JVM) to be installed on the end-user machine to run.


Lastly it can be concluded that, the tech-world is evolving each day so, no programming language is the best. Every language has its own pros and cons. Also, there is no end of learning new technologies.

We can at least agree here.

Collapse
 
enakshi_pal profile image
Enakshi Pal

Thanks for stretching the discussion and enhancing the points!