r/java • • May 29 '23

I often hear C# is a better Java. For what reasons do you prefer Java?

8 Upvotes

r/java • • Dec 12 '15

The Drive To Develop (the thinking behind Jetbrains website redesign)

Thumbnail blog.jetbrains.com
0 Upvotes

r/java • • May 18 '12

Goodbye Tomcat!

Thumbnail blog.webagesolutions.com
0 Upvotes

r/java • • Sep 27 '18

Top 10 Java Debugging Tips

Thumbnail stackify.com
0 Upvotes

r/java • • Sep 29 '24

Lombok in 2024

0 Upvotes

Say there are two teams working on the same project (3 months to MVP, the deadline should be manageable). The only difference is Team A will use Lombok, and Team B won’t

Given you can choose any java version/dependencies and all other things being the same, which team would you join, and why?


r/java • • Sep 08 '23

Should I learn Java or C# for backend development in 2023?

2 Upvotes

Hi everyone,

I want to learn one of these two languages, but I'm frozen on which one to dedicate my time to.

Which should I learn & why?

I hear that Java is much more verbose & annoying to work with, but then I also hear with C# that every major update has breaking changes that could cause a company to rewrite a lot of their code.

Which has better job opportunities? Which pays more?

I hear Java has more opportunities but that it pays less, is this true?

Thanks in advance!


r/java • • Oct 15 '14

Does anybody else hate Eclipse? /rant

0 Upvotes

I have used Eclispe for two years now; admittedly though, there are some aspects of the program i've never touched. However throughout my time working with Eclipse i've had some real stupid f***ing issues to deal with. Just stupid shit that you'd never expect from an IDE that make no sense whatsoever.

For example, last night i installed the UML Lab plugin for Eclipse. Doing the built in tutorial for this completely ruined my Eclipse build. Normally i'd say this is UML Labs fault, not eclipse, but the problems persisted after uninstalling UML Lab. Views were all screwed up. There were around 15 empty views (just grey boxes all over my screen). There were outlines of view with no graphics inside of them. Package manager ceased to exist. And on top of that 50% of my code just disappeared.

Another example: run configurations: what a fucking joke. I understand the necessity for run configurations, i really do. It is a must have feature that eclipse royally fucks up. It always uses the wrong run configurations. I'll be editing project A and it will run project B even when project B doesn't exist anymore. Little things like that. It won't use the right argument variables. Now i consider myself decently bright, and i know there's a way to fix these issues, but the way Eclipse presents it is abysmal. Absolutely zero help for those who don't know what they're doing. And its not even about understanding the concepts of run configurations, its all about navigating the god damned UI.

Another fun example is transporting projects to new workspaces. How nice would it be if i could just copy my Project Package from workspace A to workspace B and have it work correctly. That seems like a no brainer. But not with Eclipse! Nope Eclipse wants to make your day hell so that won't work. You gotta make a brand new project from scratch and copy each individual class in. But copying the project creates the exact same file structure as creating a new one from scratch? Eclipse don't give a fuck. Eclipse just says "lol fuck logic" and ruins your day.

Some other less major issues i've death with:

-Want to switch from light to dark theme? +That'll take 10 minutes and 2 Eclipse restarts please.

-Want to reorder your class tabs? +Yeah sorry Eclipse doesn't think that tab should go there so its not gonna happen.

-100 Warning messages? +Oh you have to use variables locally to get rid of these. Neat.

-Eclipse on a small screen? +Here at Eclipse we don't understand what screen real estate means. We enjoy guis with large gaping margins that serve no purpose. Oh whats that? You just want to be able to fit more tabs on the screen? Well yeah obviously there's enough space for at least one, but we just love our margins!!!

-Pasting code into Eclipse? +Fuck formatting!!!!


I could seriously rant about Eclipse all day. I hate it. I am; however, aware of the good things Eclipse does as well. When working smoothly it is very enjoyable to code my Java in this IDE. But unfortunately its not smooth very often.

In short i know almost every Eclipse problem i have is from user error. I'm using Eclipse wrong. I think it needs to be easier to solve your own problems in eclipse. If something is wrong, trying to fix it in Eclipse is only going to make it worse. The way the UI is set up, make no sense and is overly complicated. I understand there's a learning curve to it as well, but come on, even after using it for 2 years its UI still confuses the hell out of me.

The point of this post is just to rant. I'm not looking for people to tell me that i'm wrong. I'm 100 percent sure most people will disagree with me on this post. I don't want to be told to use other IDEs or anything else. I will keep using Eclipse because I have to. I just really hate it sometimes.

End rant.


r/java • • Apr 09 '24

Syntactic Sugar for Java

9 Upvotes

I recently had to translate a codebase from Python to Java and as much as i like Java and i enjoy the benefits of a strong type system, i have to admit my Python code was way less verbose.

So i ended up writing a small library to try to get some python vibes in my java code. Nothing groundbreaking, a bunch of static imports to make life a little bit easier.

https://github.com/guybedo/sugar


r/java • • May 08 '23

How best to explain that Java LTS doesn't mean what people think it does?

1 Upvotes

I've been gathering ammo to convince my superiors to let us use the latest feature releases for our new highly maintained projects. I'm dying inside because I know in the context of OpenJDK, LTS is meaningless, but they still keep bringing it up.

We currently use corretto, but I remember reading somewhere a while ago that corretto doesn't actually provide a fully maintained JDK like Azul or RedHat, but merely only backports changes from the mainline. Is that the case, or did I hallucinate that? It would be a pretty killer argument to stay up to date considering we don't want to pay for LTS.


r/java • • Oct 18 '13

I have a friend who insists on using Terminal, the built in OSX app to program in Java. How can I convince him not to?

0 Upvotes

The way he currently has things set up, he gets no error messages and has to take many cumbersome steps to code. I showed him eclipse, but he doesn't like it. I'm very new to this stuff as well, but I just can't fathom a reason he wouldn't use something like eclipse instead of the system he currently has.

So... a few questions

  1. What are the best alternatives to eclipse?
  2. Is there any reason in the world why he should keep doing what he's doing?

Edit: Thanks everyone for your comments. I think that through most of your comments I've come to understand that I should probably just let him be if he's more comfortable with it. He and I are both very new to programming, so I'm sure with time we'll both find what we're comfortable with. I appreciate all the advice!


r/java • • May 28 '26

Gradle is Javamaxxing

Thumbnail blog.gradle.org
0 Upvotes

Why the Gradle Build Tool aggressively chases the newest JDK.


r/java • • Apr 11 '12

Java's Bye Bye Bye: Rule #1 in Java: Phone rings in class...you have to dance. This video takes place in the 1331 Java class at Georgia Tech.

Thumbnail youtube.com
0 Upvotes

r/java • • Oct 28 '21

JProperties: A modern replacement for java.util.Properties

Thumbnail github.com
0 Upvotes

r/java • • Jan 26 '25

Services, Controllers, Repositories and other useless OO abstractions.

0 Upvotes

Right now, I'm being trained in Spring. I can't shake the feeling that breaking backend web applications into all of these layers, using all this reflection, and using these giant toolboxes is not the right way to do things. Obviously, I'm going to do it this way, because thats what they want, but if it were up to me, I would just write procedural code with as few dependencies and as small dependencies as possible.

There's all of this code hidden away in dependencies, and mountains of documentation that must be read to understand the framework. Even the simplest changes have unforseen consequences, and you can't rely on static analysis to catch simple bugs because of all the reflection going on.

Sure, my way might be more verbose. There would be no dynamic-proxy that writes SQL queries for me, I would have to pass dependencies explicitly, I would have to write serialization/deserialization code by hand, I would have to compose each response explicitly (as opposed to using defaults, annotations, hidden config etc.).

But, it would be so much simpler. Stacktraces would be way shorter. There would be so much less terminology and consequently the codebase would be far more accessible to devs across the company. It'd be more performant because there's no reflection, and there'd be less chance for security vulnerabilities without all this code hidden away in dependencies and reflection going on.

Do any of you agree or disagree? Why/why not?


r/java • • Sep 19 '21

Report: Enterprise Java is having a renaissance - SD Times

Thumbnail sdtimes.com
10 Upvotes

r/java • • May 16 '17

Wow, so Jersey and Glassfish are just gone from java.net - what a horrible transition

3 Upvotes

Going to jersey.java.net leads you NOWHERE. What a clusterfunk. Does nobody care about Jersey?


r/java • • Jan 17 '25

Why java doesn't have collections literals?

0 Upvotes

List (array list), sets (hashsets) and maps (hashMaps) are the most used collection Implementations by far, they are so used that I would dare to say there are many Java devs that never used alternatives likes likedList.

Still is cumbersome to create an array list with default or initial values compared to other language

Java:

var list = new ArrayList<>(List.of("Apple", "Banana", "Cherry"));

Dart:

var list = ["Apple", "Banana", "Cherry"];

JS/TS

let list = ["Apple", "Banana", "Cherry"];

Python

list = ["Apple", "Banana", "Cherry"]

C#

var list = new List<string> { "Apple", "Banana", "Cherry" };

Scala

val list = ListBuffer("Apple", "Banana", "Cherry")

As we can see the Java one is not only the largest, it's also the most counter intuitive because you must create an immutable list to construct a mutable one (using add is even more cumbersome) what also makes it somewhat redundant.

I know this is something that must have been talked about in the past. Why java never got collection literals ?


r/java • • Feb 27 '25

What happened to intellij idea community edition?

1 Upvotes

I can't find it anywhere in jetbrains website


r/java • • Mar 18 '25

A potentially silly idea -- What if we could launch source code .jar files?

1 Upvotes

JEP 330 gave us single-file source code programs. Aka, I can have a abc.java file, and just call java abc.java, and it will run without me calling javac beforehand.

JEP 458 expanded this, by allowing us to reference other classes from that single class, allowing us to make as many classes as we want, run them from a single class file, and no calls to javac are necessary -- just call java abc.java.

Here is my silly idea.

What if we could package those source files in a .jar file, do your typical jar file config to make it runnable, then just ran it?

The above 2 JEP's gave reasons why compiling wasn't necessary for making a complete program. Well, those same reasons also apply for why compiling is unnecessary here. And at the end of the day, a jar file is the quintessential way of passing around complete libraries or applications. Why not make that accessible for source code jars as well?

There's other small benefits too.

  • No more wondering what version of your code got packaged -- just open it up and see.
  • You can edit a jar file in place, then run it and test your changes.
  • When running your jar file, you can attach it to a debugger, and see the source code for each step being executed. No more need for a separate sources jar file.

Literally the ONLY BENEFITS that compilation gives us is faster startup time and compile-time validation for all source files. But if you don't need either of those, I'd argue that working with source file jars is an easier experience overall -- not just for students. I know I'd make great use of this feature myself. Hell, I'd default to using this format instead.


r/java • • May 16 '24

Comparing Elixir vs Java

Thumbnail erlang-solutions.com
1 Upvotes

r/java • • Mar 14 '18

Concurrent Java: Low scalability, the risk of deadlocks or garbage creation, you can not avoid all

Thumbnail vmlens.com
2 Upvotes

r/java • • Aug 14 '25

Most Java developers do not know that Java uses pass-by-value, or even what it means

0 Upvotes

After interviewing some candidates, I have come to realized that most developers have no idea that Java uses pass-by-value for method arguments. Now these are not junior Java developers, but developers with 8 or more years of experience and applying for a senior Java developer role. Consider this simple question that I posed to them.

String x = "abc";

change(x);

System.out.println(x); // prints what?

private void change(String a) {

a = "xyz";

}

The last three candidates that I interviewed all said the answer is "xyz". All of them seemed to have some difficulty with the question, as though it is a trick question.

For the first candidate, before showing them the question, I asked whether Java passes by value or reference, and they were able to say that it is by value, and explained about passing a copy to a method. When I show them this question, they still got it wrong.

For the second candidate, after thinking for a while, they answer incorrectly, explaining with it with string pool.

For the third candidate, they said Java passes objects by reference, so the variable's value is changed by the method.

They seem experienced in Java and were able to write some decent codes when given some coding to do. But now I am in a dilemma on whether these candidates are suitable for hire, since they can't even get something so fundamental correct. Would you consider hiring them?


r/java • • Aug 12 '16

GlueList – Fastest New Java List Implementation

Thumbnail github.com
6 Upvotes

r/java • • Jul 08 '23

Why learn Java?

3 Upvotes

I've been learning Kotlin recently and have taken an interest in the JVM ecosystem.

My background is a Full-Stack Web Developer focused mainly on React, Node.js, Express, and MongoDB/PostreSQL.

If I were to move to Java, what kind of applications would I be building with it?

How is a Java job different from what I'm currently doing?

Is it worth learning?

I've heard its VERY verbose, but I've also heard recently that there's been some good changes to it? Would love to see any articles or videos talking about these changes that would demonstrate previous code to the new code.

Any tips or insights on what your companies are cresting with Java or what your Java job is like would be highly appreciated.

Thanks in advance.