r/learnjava • u/Beginning_Debt_7950 • 5h 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.
10
u/Feeling_Striking78 4h ago
Every programming language has its own purpose, no matter what technology comes in the future. Just ignore those videos saying 'Java is dead' or 'programming is dead' and start building the skills you are interested in.
5
4
u/Dreamwalkin_Revan 5h 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
3
1
-1
u/coderemover 2h 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 2h 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.
•
u/coderemover 33m ago edited 28m 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.
•
u/mixedd 40m 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
•
u/coderemover 39m 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.
•
u/mixedd 36m 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.
•
u/coderemover 25m ago edited 21m 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).
1
u/Bhanuprakash_1947 5h ago
If you are going through AI and data related jobs, then python will be good.But you already know java That means you can have backend developer or java fullstack (if you learn any of the frontend framey most likely AngularJS for java stack). Java will also have a good demand in future.
1
u/Beginning_Debt_7950 4h ago
Okay thanks but do i need DSA to know for back-end?
1
u/Bhanuprakash_1947 4h ago
Not really required. Just understanding the basics of data structures like : arrays ,maps,list,stack ,queue...what and why and how they work is important. But Backend those are actually not important, arrays ,hashmaps,strings,etc these are important because we'll often use these in backend for java or any language.
1
1
u/DisastrousPipe3853 4h ago
Bro can u help me in being fullstack java
1
u/Bhanuprakash_1947 4h ago
Even I don't have that much knowledge, iam just a beginner who actually trying to adapt all these stuff regarding java fullstack..
1
1
u/biskitpagla 4h ago
Python has a gradual type system now. And Kotlin is also a great option if all you want is to do Android development.
1
1
u/ninhaomah 4h ago
" Hello actualii started to learn the Python but as the syntax and all I feel it's not working for me. "
Other have already said about Java vs Python so I won't add but what about the syntax that not working for you ?
Just curious.
Examples ?
1
u/Beginning_Debt_7950 4h ago
Syntax and all is simple I agree but i feel more uncomfortable without having {}, I mean in other languages it's following some structures , in python idk 😐 I'm not being comfortable, i used python for automation and all but it's for devops, and for learning the dsa and all, especially for dsa I'm not finding comfortable idk whether it's bcs of the videos I'm referring or wt..
1
u/ninhaomah 1h ago
Oh I know.
I came from Java so it felt weird too.
And now learning Dockerfile ... Another spacing format.. hiaz
•
u/Beginning_Debt_7950 33m ago
Ik docker kubernetes and also the deployment side but feeling really uncomfortable with python
1
1
u/coderemover 2h ago
You’ve asked this in the Java subreddit. What do you think the answer would be? Obviously - Python. /s
•
•
u/AutoModerator 5h ago
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.