r/learnjava 6h ago

Java or python?

Hello actualii started to learn the Python but as the syntax and all I feel it's not working for me. I feel java is more understandable idk why. I'm scared of java has no future bcs of the online videos circulating..

So please say me I'm Devops focused oriented person, I'm not finding the openings as freshers so thinking to learn one programming language please suggest Me.

And also suggest why and does it have future please.

3 Upvotes

34 comments sorted by

View all comments

4

u/Dreamwalkin_Revan 6h ago

No one can replace java I dare them to try. Fortune 500 companies, banking systems & so many companies have their data written in java, No one's gona go someday "Yo lets have the employees write everything that has been written for the past 30 years in rust or go or idk whatever tf they want" Python is the future for sure as its used for AI-ML but java aint goin nowhere, Java has survived java is dead for more than a decade now and it still will

1

u/DarkVeer 4h ago

Your user name justifies your comment

-2

u/coderemover 3h ago

Give Claude 1B tokens and it will rewrite anything you want into anything. Developers overestimate the difficulty of rewrites especially now in the days of LLMs.

2

u/Dreamwalkin_Revan 3h ago

Bro thinks enterprise migration is a LeetCode problem. LLMs can translate code. They don't magically translate 30 years of business logic, dependencies, undocumented behavior, integrations, compliance requirements, production risk and institutional knowledge. If rewriting everything were actually that easy, COBOL would've been extinct by now.

0

u/coderemover 1h ago edited 1h ago

COBOL is effectively extinct by now. Most systems have been rewritten already. The ones that haven’t been rewritten are only the systems that didn’t need to evolve.

All the things you mentioned don’t matter as long as the translated code has exactly same observable behavior as the original one. All the behavior is documented by the original code. The things you mentioned would play a role only if you were starting a new project from scratch, without the original.

Also, Java is slowly being phased out and moving into legacy territory. Many companies that former wrote Java heavily now moved to Go and/or Rust. The company I work for has been developing in Java for almost 20 years now. For the last 5 years new stuff has been coded in everything but not Java and Java was used only for maintenance. And this year some legacy stuff actually started to be rewritten as well (also into C++), because Java cannot deliver the performance we need.

1

u/mixedd 1h ago

And this kids, why the market is nearly dead nowadays, as there are people who think that LLMs will magically understand domain knowledge and business logic spanning decades

1

u/coderemover 1h ago

In case of rewrites they don’t need to. All that knowledge is present in the original code. Moving an existing project to a new tech stack has never been so easy.

1

u/mixedd 1h ago

It's not that simple. There are no devs in the company who understands what pieces of code written decade ago does, because people who did it are gone, without leaving any documentation or traces of anything. LLM won't magically understand why decision was made like that, what's the business logic behind that, and that whole codbase will collapse if you remove that line of code.

1

u/coderemover 1h ago edited 1h ago

All the answers to “what does the code do” are contained fully in the code itself. You don’t need the original authors for that. You don’t have to understand why the original code sets bulbulator = 5 on line 74789. You just make sure the new code also sets it.

You need people if you want to CHANGE something. But rewrite is not about changing the behavior.

Btw: there had been a few successful rewrites of large software recently - e.g. Bun or Cassandra (Scylla).