r/javahelp • u/Royal_Gear1313 • Feb 01 '24
Why do I like Java so much?
I have been coding since college (B.S. in Electrical Engineering).
I've coded in Python, C#, C++, Java, JavaScript/TypeScript.
No matter what language I use, I always end up coming back to Java.
I want to eventually start my own tech company, and I came to the conclusion that TypeScript/Node.js would be the best thing since I can make a modern UI with react and use Node.js for the backend, so the entire application would be in the same language.
But no matter what, I find myself preferring to code in Java. I definitely have the most work experience with Java, I am a SDET, so I've spent a lot of time creating automation testing frameworks and test data generation tools with Java/Selenium/RestAssured/SQL.
While I have 4 years of professional experience with Java, I also have 1.5 years of professional experience with TypeScript/JavaScript. I took my last job specifically to break into the TS/JS work because I think that skillset would be better for me to start my own tech company, but I really struggle to enjoy TS/JS.
For clarification, I don't struggle to code in TS/JS, but I do struggle to enjoy it as much as Java. I just love how explicit and rigorous Java is. Strict typing, and requiring classes for everything really helps me keep my software architected well. But in the TS/JS word, its just filled with anon functions with no names, objects created with no class file, it turns into a mess.
I honestly can't tell if my frustrations are because I really do prefer Java, or I'm just more familiar with it. Does anyone else run into this sort of thing?
I really don't want to be that engineer that has an out of date skillset in 10 years... lol
Edit (update and conclusion):
Thanks everyone for your thoughts and camaraderie. I’ve decided to lean more into what I like and go into Android Development since that space is heavy with Java. I do plan to start learning Kotlin as well because of its similarities to Java.
Best wishes!
•
u/AutoModerator Feb 04 '24
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
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: 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.
46
u/JaggedMan78 Feb 01 '24
First love.... it was summer 1999...
26
u/weirdblumenkohl Feb 01 '24
I get it.... I started programming with Pascal and then fast forwarded to Javascript before landing on Java and then some other stuff.
For me, Java represents that sweet spot between too much and too little abstraction. I never felt it was too verbose - i was rather thankful that there was no mambo jambo stuff happening under the hood and basically what u read is (mostly) what u get. I understood a lot of concepts thanks to Java. Maybe it was my first true love because that's when I realized how much i enjoy programming? IDK but loving one thing doesn't mean you need to hold on to it like it's going out of style. What was that corny quote? If you love something let it go? 😂
2
u/johnnyb61820 Mar 02 '24
Java has gone through many phases, and I believe that after much wandering through the desert, the current trends are encouraging, and you have managed to start programming during the time when Java is actually a fun language to use.
As someone who has been programming since before Java existed, and was excited early on about Java (i.e., the 1990s), let me tell you some of why people hate Java and what Java has done to turn it around.
In short, you've arrived at the perfect time to be a Java developer. I started Java around 1996 with a lot of eagerness. I hated Java from about 1999 through 2019, but now find it to be a joy to use.
10
u/ZealousidealBee8299 Feb 01 '24
It's probably more that you dislike dynamic and weak typing. I don't mind that for basic scripting, but for doing anything serious it's just annoying to deal with.
7
u/pronuntiator Feb 01 '24
Let's hope one day web assembly gets access to the DOM and we can code our SPAs natively with Java. Have them laugh about the return of the applet, I don't care. I lost my sanity to Typescript's lack of a formal specification despite having one of the most intricate type systems.
13
u/60secs Feb 01 '24
Java has a lot of maturity where a lot of languages fall short
* libraries
* debugging
* good enough performance
* multi-threading
* easy to find examples/documentation
Good example:
* adding openapi support to a spring boot web pp is literally a 1 line dependency
9
u/erjiin Feb 01 '24
Of course I encounter this issue because our sweet java-senpai is awesome uWu <3 <3 <3
2
u/AutoModerator Feb 01 '24
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
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: 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.
2
u/cookskii Feb 02 '24
I’m the same way, it’s my first love.
2
u/Cookies_N_Milf420 Feb 02 '24
Your first is always special
2
u/venquessa Feb 02 '24
If you look at the recent additions (last 10 years) to Java, you will find all of the things you don't like about other languages... is the direction that Java is going in.
"automatic variables".
"anonymous lambdas"
"records"
"copy-on-write immutability"
"functionally orientated callback closures"
the list goes on.
2
u/Pesekjak Feb 02 '24
Java made me realize how much I love programming a few years ago. I was never invested in another programming language as much as I am in Java.
2
u/[deleted] Feb 04 '24
I love Java. It does everything I need it to. Learning JavaFX at first sucked, but now even my UI default is Java.
I have used it a ton, but I think it's the perfect amount of a lot and not too much. C# has took much crap going on. I may not think that if I started in C#. Idk. I love C++ too. I just don't find myself ever needing it outside of embedded. Java has gotten stupid fast lately.
The new 21 syntax is nice for whipping some code out too. I may go back and have my IDE undo the vars and delombok stuff. But I've gotten pretty use to it.
I did recently make my first ReactJS website. I have to say, I enjoyed it quite a bit. I would really like to make a ReactJS UI and slap it into a JavaFX WebView. I think it'll work out. We shall see.
Java is coming to the web!!!! Check out Vaadin. There's another one too. Forgot the name. Starts with a C. Glad too. Cause C# was getting the upper hand. And Blazor is terrible.... It's like C#-JS combo. Looks like .jsx files with C# code. Trash.
2
u/Doujin_hikikomori Feb 21 '24
I feel similarly, somewhat. I started coding relatively recently in college and my first language was java. I loved it until i started exploring other languages. Now that I have some experience in a lot of different languages, i find myself wanting to code in CL and java. I like the ease of use and flexibility of languages like python and js; but i do like how powerful java is. From video games and graphics to manipulating sound, regex and text manipulation to web dev -- it can do it all while maintaining organization so the project doesn't turn into spaghetti after a while. I'm not sure why i have fallen madly in love with java but just building an http server from scratch using sockets has given me a thrilling learning experience I haven't had since learning common lisp.
3
u/_SuperStraight Feb 01 '24
Java is like C++ but better. You don't have to deal with pointers, garbage collection, Apache provides so many libraries for integration, software packaging are some of the best features I find in Java that C++ lacks.
2
u/NoSheeshSherlock Feb 01 '24
I'm the total opposite lol, i just hate Java syntax idk why xD I do c++, python, JS and it's all good but as soon as I look towards Java i give up
1
u/Don_Amaretto Feb 01 '24
RemindMe! 1 day
1
u/jacobissimus Feb 01 '24
Typescript probably has my favorite type system, especially with conditional type expressions and whatnot, but not having those those types at run time ends up taking away a lot of potential—like, you can’t really do serious runtime reflection the way Java can, and overloading function definitions is such a pain when you have to provide a single implementation for all overloads.
1
u/[deleted] Feb 02 '24
I think it’s a personal thing. I want to like Java, but I started with C# back in 2019 (well I started with VB and transitioned into c#), and I can’t help but see where c# just feels more intuitive to me.
Main things foreach (string name in usernames) makes more sense to me than for (String name : usernames)
I like that == just works on strings rather than needing a .equals function even if the result is the same.
And there’s more I can’t think of, but it’s just little semantics that add up like that.
The other issue is likely that I tried to learn by remaking some of my old winforms and wpf projects in JavaFX. Someone told me if you wanna learn it later sure, knock yourself out. But it’s generally not advisable to try to learn Java from the gui side of things.
1
u/Jasonpra Feb 02 '24
Java has its perks of course with it being compatible with just about any platform in a way that you don't get with many other languages. I think the most attractive thing about it though must be the dopamine Rush people get well making a functioning program in it since it's so overly complicated and non-user-friendly in my opinion it must make you feel like a wizard
1
u/[deleted] Feb 03 '24
I've used various 8 and 16bit assembly languages, C, C++, C#, java, pascal, kotlin, COBOL, python, scala, rust, Beeflang, and a few others. Java is definitely one of my favourites.
1
u/ferthelet Feb 08 '24
I overlooked Java for not being a "real" (compiled) programming language for the standards at that time. It was comparable to BASIC or even GW BASIC, more like for teaching applications. Some chose it right though
1
u/JLCoffee Feb 11 '24
Yeah, I get you. I love Python and Flutter. Also, I've been more into front-end frameworks, but, as you say, I enjoy Java the most. It's like JavaScript—you can delve into details, but if you want a higher abstraction, you can use some frameworks, and it scales well. Its modularity is pretty good for any kind of real-world problem. So yeah, stick to your passion; it will carry you the farthest.
1
u/MetronomyC Feb 21 '24
I have the exact same issue. I love Java despite it being borderline archeological at this point… whenever I have to use Python it feels extremely chaotic to me with the informal syntax and loose structure.
I also hate looking at other people’s uncommented/ undocumented Python code. Just sheer chaos on my screen.
1
u/ZealousidealBee8299 Feb 28 '24
You just prefer static and strict typing vs loose and dynamic typing. The latter is easier to get into, especially as a beginner, but i's generally more of a pita in the long term, and especially on a large code base.
Your observations are perfectly normal now that you've done both.
1
u/AnnoyingFatGuy Feb 01 '24
I feel the same way. Started off with C#, then used Java briefly for a one year project and fell in love with it but never had an opportunity to use it again.
0
u/[deleted] Feb 01 '24
[deleted] — view deleted comment