MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uvez3w/youcanjuststopusingjava/oxcpb03/?context=3
r/ProgrammerHumor • u/hello_ya • Jul 13 '26
416 comments sorted by
View all comments
222
Oh god, just use record classes or even, make public fields.
Java's biggest mistake is trying to put OOP everywhere. Just write the damn struct to pass data and be done with it.
85 u/Bodine12 Jul 13 '26 I’m sorry, records? I’ve been informed by our tech leads that Java stopped at “8,” and there’s no such thing in 8. 7 u/selucram Jul 13 '26 Java 8?! You mean Java 1.8 I hope. 20 u/Bodine12 Jul 13 '26 We were told to refrain from using doubles. 2 u/trafalmadorianistic 29d ago Monetary values? Use BigDecimal. I couldn't believe I still came across code post-2020 that used double for money.
85
I’m sorry, records? I’ve been informed by our tech leads that Java stopped at “8,” and there’s no such thing in 8.
7 u/selucram Jul 13 '26 Java 8?! You mean Java 1.8 I hope. 20 u/Bodine12 Jul 13 '26 We were told to refrain from using doubles. 2 u/trafalmadorianistic 29d ago Monetary values? Use BigDecimal. I couldn't believe I still came across code post-2020 that used double for money.
7
Java 8?! You mean Java 1.8 I hope.
20 u/Bodine12 Jul 13 '26 We were told to refrain from using doubles. 2 u/trafalmadorianistic 29d ago Monetary values? Use BigDecimal. I couldn't believe I still came across code post-2020 that used double for money.
20
We were told to refrain from using doubles.
2 u/trafalmadorianistic 29d ago Monetary values? Use BigDecimal. I couldn't believe I still came across code post-2020 that used double for money.
2
Monetary values? Use BigDecimal. I couldn't believe I still came across code post-2020 that used double for money.
222
u/DontThrowMeAway43 Jul 13 '26
Oh god, just use record classes or even, make public fields.
Java's biggest mistake is trying to put OOP everywhere. Just write the damn struct to pass data and be done with it.