zlacker

[parent] [thread] 38 comments
1. ground+(OP)[view] [source] 2025-12-02 23:01:33
Haven’t checked in on Java in a while?
replies(3): >>ozim+g7 >>throwa+ln >>auxili+wC
2. ozim+g7[view] [source] 2025-12-02 23:55:12
>>ground+(OP)
From what I gather everyone is still stuck on Java 8 so no need to check?
replies(4): >>foo4u+Pa >>vips7L+1k >>throwa+Kl >>gf000+dc1
◧◩
3. foo4u+Pa[view] [source] [discussion] 2025-12-03 00:27:17
>>ozim+g7
This is absolutely untrue. Code from JDK 8 runs fine on JDK 25 (just released LTS). It is true that if you did something silly that locks you into certain dependency versions, you may be stuck, but this is not the majority of applications.
◧◩
4. vips7L+1k[view] [source] [discussion] 2025-12-03 01:51:05
>>ozim+g7
No, everyone isn’t. You really should check.
◧◩
5. throwa+Kl[view] [source] [discussion] 2025-12-03 02:07:01
>>ozim+g7
Where do you gather this from? We are a startup, on Java and on 25.
replies(1): >>pylotl+zV
6. throwa+ln[view] [source] 2025-12-03 02:26:06
>>ground+(OP)
i haven't. do people still use the "class" keyword?
replies(1): >>buzzer+Dv
◧◩
7. buzzer+Dv[view] [source] [discussion] 2025-12-03 03:47:30
>>throwa+ln
Is that the issue people have with Java?
8. auxili+wC[view] [source] 2025-12-03 05:09:09
>>ground+(OP)
I tried to check in on Java recently but got a NullPointerException when using the AbstractSingletonProxyFactoryBean !
replies(2): >>Orange+US >>gf000+Jc1
◧◩
9. Orange+US[view] [source] [discussion] 2025-12-03 08:11:22
>>auxili+wC
I'll never understand people making fun of verbosity. So you really prefer short, ambiguous, opaque and unpronounceable abbreviations? Really?!
replies(2): >>auxili+NW >>pjmlp+M1c
◧◩◪
10. pylotl+zV[view] [source] [discussion] 2025-12-03 08:27:29
>>throwa+Kl
Why didn't you choose something more modern/sensible. go/kotlin/anything else on the planet?
replies(3): >>gf000+Ac1 >>throwa+qV1 >>krzyk+P22
◧◩◪
11. auxili+NW[view] [source] [discussion] 2025-12-03 08:34:07
>>Orange+US
For me at least, I find it easier to see the shape of algorithms, control flow, and expressions when the variable names are concise. But this also might be because I have found Go to fit my use-cases and thinking style well, and Go programs tend to follow this naming convention.

For example, if I have a struct `PageEntity` with a field `Id`, and I am iterating over a slice of such IDs, I would prefer using `pid` instead of `pageEntityId` as the variable name. But Java APIs and conventions tend to use these longer names, so I find it takes more thinking to remember the different names instead of quickly seeing the behavior of code at a glance.

Java also tends to have a lot of inheritance which results in these long glued-together names and makes it harder to follow program flow because behaviors get introduced in multiple different places (i.e., it has the opposite of locality of behavior).

But those are just my opinions and experiences! I know many people love Java, and it is a versatile and powerful language.

replies(1): >>gf000+Pc1
◧◩
12. gf000+dc1[view] [source] [discussion] 2025-12-03 10:20:16
>>ozim+g7
Even stuck on Java 8 it's less verbose than Go, which everyone seems to love.

But the majority of projects are on a newer JDK than 8 for quite some years now.

replies(1): >>the_gi+3e1
◧◩◪◨
13. gf000+Ac1[view] [source] [discussion] 2025-12-03 10:23:34
>>pylotl+zV
Go is more verbose than Java though, in what way would it be more sensible?

Also, Java's ecosystem is unparalleled (top 3 in size, depending on domain it usually has the best packages (e.g. typical backend-related functionality)), has stellar performance, a huge developer base, best-in-class IDE support, even LLMs understand it exceptionally well (given how widely represented it is in the training corpus, plus has a decent type system) if that's your thing.

For a typical backend system, you really have to have a good reason to choose something else at this point.

replies(2): >>codr7+6U1 >>zeroc8+Ls4
◧◩
14. gf000+Jc1[view] [source] [discussion] 2025-12-03 10:24:15
>>auxili+wC
R/ProgrammerHumor quality comment here.
◧◩◪◨
15. gf000+Pc1[view] [source] [discussion] 2025-12-03 10:24:53
>>auxili+NW
That's really funny that you complain about complexity and then use Go which is a significantly more verbose language...
◧◩◪
16. the_gi+3e1[view] [source] [discussion] 2025-12-03 10:33:45
>>gf000+dc1
Not even latest Java is less verbose than Go.
replies(2): >>gf000+Ye1 >>vright+R65
◧◩◪◨
17. gf000+Ye1[view] [source] [discussion] 2025-12-03 10:40:35
>>the_gi+3e1
Are we talking about the language that has a couple extra lines after every statement, disguising as error handling?
replies(2): >>the_gi+Hu1 >>BobbyJ+IQ2
◧◩◪◨⬒
18. the_gi+Hu1[view] [source] [discussion] 2025-12-03 12:48:14
>>gf000+Ye1
go's error handling is very poor and too verbose, but go is still way less verbose than Java overall. Like any other language.

Java is the running joke of verbosity, and you are too if you seriously argue that it's not.

replies(3): >>gf000+SA1 >>lenkit+uw2 >>vips7L+934
◧◩◪◨⬒⬓
19. gf000+SA1[view] [source] [discussion] 2025-12-03 13:30:09
>>the_gi+Hu1
Feel free to provide some evidence. Like really, I would be interested in examples e.g. from the Java stdlib that are significantly more verbose than another generic purpose language.

But I do know that you are meaning stuff like AbstractFactoryFactory, but you do realize that there is zero need to write anything like that and you can (and people do) write bad code in any language?

replies(2): >>ground+O02 >>the_gi+Hs2
◧◩◪◨⬒
20. codr7+6U1[view] [source] [discussion] 2025-12-03 15:17:00
>>gf000+Ac1
Except for Kotlin, which is a much nicer language to deal with.
replies(2): >>throwa+FV1 >>lenkit+Qv2
◧◩◪◨
21. throwa+qV1[view] [source] [discussion] 2025-12-03 15:24:31
>>pylotl+zV
While kotlin is somewhat nicer, it is not making a huge difference compared to java25. Like the sibling said, go is as verbose , the JVM is unparalleled still.

Why wouldn't I choose java

replies(1): >>BobbyJ+vR2
◧◩◪◨⬒⬓
22. throwa+FV1[view] [source] [discussion] 2025-12-03 15:25:19
>>codr7+6U1
Little nicer for sure
◧◩◪◨⬒⬓⬔
23. ground+O02[view] [source] [discussion] 2025-12-03 15:50:17
>>gf000+SA1
Why is the quality of discourse in this thread so low?
◧◩◪◨
24. krzyk+P22[view] [source] [discussion] 2025-12-03 15:58:27
>>pylotl+zV
Kotlin sensible? It plays catchup game with newest JDKs.
◧◩◪◨⬒⬓⬔
25. the_gi+Hs2[view] [source] [discussion] 2025-12-03 17:50:39
>>gf000+SA1
You started it, where's your evidence?
◧◩◪◨⬒⬓
26. lenkit+Qv2[view] [source] [discussion] 2025-12-03 18:05:32
>>codr7+6U1
A nicer language which is much slower to compile compared to Java.
◧◩◪◨⬒⬓
27. lenkit+uw2[view] [source] [discussion] 2025-12-03 18:08:36
>>the_gi+Hu1
Coding repetitive for-loops for everything and mind-numbing error handling put everywhere makes line count bloat up like crazy. Go is one of the most verbose languages I have seen and I say this as a guy coding in Go in my daily work.

Evidence is easy - think of a problem and ask LLM to generate idiomatic examples (leverage Java streams, with functional decomposition, etc) in Go and Java and with error handling. You will find that more often than not, the Java line count is far smaller.

replies(1): >>the_gi+s53
◧◩◪◨⬒
28. BobbyJ+IQ2[view] [source] [discussion] 2025-12-03 19:47:53
>>gf000+Ye1
Go only looks like that in toy examples where you have one method calling a bunch of libraries and services. If you are writing actual logic, the error handling is preferable to exceptions IMO, because no project even uses them correctly.

Now if you complain about slice handling, I'm with you.

◧◩◪◨⬒
29. BobbyJ+vR2[view] [source] [discussion] 2025-12-03 19:51:28
>>throwa+qV1
Golang has a way smaller memory footprint on average.

I left a place using Java to run edge apps and the footprint was a major issue.

◧◩◪◨⬒⬓⬔
30. the_gi+s53[view] [source] [discussion] 2025-12-03 20:54:32
>>lenkit+uw2
I also code go daily for work, and while what you say is true, it's still far less than what I remember from working with Java, which was constantly wrapping mundane crap in classes and other stuff.
replies(1): >>lenkit+fh4
◧◩◪◨⬒⬓
31. vips7L+934[view] [source] [discussion] 2025-12-04 04:04:44
>>the_gi+Hu1
I can guarantee you that 9/10 times any similar Go snippet will be more verbose than Java.
◧◩◪◨⬒⬓⬔⧯
32. lenkit+fh4[view] [source] [discussion] 2025-12-04 06:55:48
>>the_gi+s53
Yeah, well you can write "enterprise 10k patterns crap" in any language. Java projects suffered from the craze of those initial years where every "architect" and their grandmother insisted on patterns.

Idiomatic, Modern Java is written quite differently. Today, Go has a lot of arcane, noisy, complex code too. Ex: many, many k8s Go projects.

replies(1): >>ngrill+iu8
◧◩◪◨⬒
33. zeroc8+Ls4[view] [source] [discussion] 2025-12-04 08:53:16
>>gf000+Ac1
Java is ok for typical backend stuff, but Go doesn't hide things the way Java does. With Go, you actually learn what's going on, while with Java, you just learn your way around the various frameworks. As a programmer, I don't want that That said, my current company uses Spring Boot. It does its job, but it wouldn't be my top choice.
replies(1): >>throwa+1R5
◧◩◪◨
34. vright+R65[view] [source] [discussion] 2025-12-04 14:06:24
>>the_gi+3e1
Before go had generics it was pretty common to have multiple implementations of the same thing just for different datatypes.
◧◩◪◨⬒⬓
35. throwa+1R5[view] [source] [discussion] 2025-12-04 17:58:40
>>zeroc8+Ls4
It is the programmer's job to learn what is going on. Java itself doesn't hide anything from you. You are free to write a servlet from scratch, or use a framework like Spring to hide everything. Your (company's) choice really.

People end up choosing something that has batteries included so they can focus on solving business problems. A programmer who will superficially understand SpringBoot without understanding how it works. Really, there is no magic there - its a few core concepts - annotations, bytecode enhancement and dynamic proxies. Maybe Im missing one or two. Everything else is built on top of this.

This is regardless of language/ecosystem. If I do not understand the fundamental concepts, I will never be successful in that ecosystem.

replies(1): >>zeroc8+AX6
◧◩◪◨⬒⬓⬔
36. zeroc8+AX6[view] [source] [discussion] 2025-12-04 23:43:43
>>throwa+1R5
The layer in Go is much thinner, if I want to learn about a new concept or technology. Of course there is no magic, if you are willing to put the time in. The question is how much time is required.
replies(1): >>gf000+tK7
◧◩◪◨⬒⬓⬔⧯
37. gf000+tK7[view] [source] [discussion] 2025-12-05 08:09:52
>>zeroc8+AX6
The layer is thinner because you can't create abstractions as well in that language.

But that's like saying that a bicycle is better than a car, because the first is simpler to understand. (At the same time, nothing prevents you from assembling a bicycle in Java if that's indeed what you need. But for general long distance travel you are better off starting with a car frame, aren't you?)

◧◩◪◨⬒⬓⬔⧯▣
38. ngrill+iu8[view] [source] [discussion] 2025-12-05 13:06:41
>>lenkit+fh4
What is an example of a modern Java open source codebase, so I can have a look?
◧◩◪
39. pjmlp+M1c[view] [source] [discussion] 2025-12-06 16:08:12
>>Orange+US
The irony is that the same bunch of folks will complain about array languages.
[go to top]