r/java • u/compilerstuck • Dec 23 '20
r/java • u/tonysphan • Jan 15 '20
If you are using Gitlab and Intellij IDE, now you can do code review right in your IDE 😋
r/java
•
u/chriskiehl
•
Sep 23 '24
I wrote a book on Java
Howdy everyone!
I wrote a book called Data Oriented Programming in Java. It's now in Early Access on Manning's site here: https://mng.bz/lr0j
This book is a distillation of everything I’ve learned about what effective development looks like in Java (so far!). It's about how to organize programs around data "as plain data" and the surprisingly benefits that emerge when we do. Programs that are built around the data they manage tend to be simpler, smaller, and significantly easier understand.
Java has changed radically over the last several years. It has picked up all kinds of new language features which support data oriented programming (records, pattern matching, with expressions, sum and product types). However, this is not a book about tools. No amount of studying a screw-driver will teach you how to build a house. This book focuses on house building. We'll pick out a plot of land, lay a foundation, and build upon it house that can weather any storm.
DoP is based around a very simple idea, and one people have been rediscovering since the dawn of computing, "representation is the essence of programming." When we do a really good job of capturing the data in our domain, the rest of the system tends to fall into place in a way which can feel like it’s writing itself.
That's my elevator pitch! The book is currently in early access. I hope you check it out. I'd love to hear your feedback!
You can get 50% off (thru October 9th) with code mlkiehl https://mng.bz/lr0j
BTW, if you want to get a feel for the book's contents, I tried to make the its companion repository strong enough to stand on its own. You can check it out here: https://github.com/chriskiehl/Data-Oriented-Programming-In-Java-Book
That has all the listings paired with heavy annotations explaining why we're doing things the way we are and what problems we're trying to solve. Hopefully you find it useful!
r/java • u/mensmelted • Dec 21 '19
This has to be the most intimidating list of required skills I ever seen
r/java • u/aroger276 • Jun 15 '17
Why reverse loops are not faster
r/java • u/chabala • Apr 12 '22
IntelliJ IDEA 2022.1 has been released
r/java • u/aclinical • Jun 29 '22
Top 8 Most Demanded Programming Languages - By job postings
r/java • u/elliotbarlas • Jun 08 '22
Conway's Game of Life Implemented With Communicating Sequential Processes (CSP) and Project Loom Virtual Threads. 50,000 Cells as V-Threads Communicating Via Channels. https://github.com/ebarlas/game-of-life-csp
r/java • u/cosofx • Jul 06 '17
Apology to Java (fanboy rant).
Java has turned out to be one of the most useful languages i use. It's a brilliant tool which strikes a perfect balance between high and low level. You want to grab a webpage? Easy and built-in, 10 lines of code. Draw some 2d graphics without OS-specific libraries or third party? Various built-in options. The inherent issues around a lack of low level memory management is handled very elegantly. Garbage collection seems seamless.
C++ is my language of choice for the most part, always will be i suspect, but Java has shown me that it has a huge array of potential applications and should almost always be considered before undertaking a project.
I say this is an apology because i used to run Java down. Previous to me using it proper i believed it was slow, lazy and useful for only trivial applications. Now i know how much work has been put into the JVM and just how efficient it is.
Sorry Java. You're pretty good.
r/java • u/gufranthakur • Aug 17 '26
Where and how did Java lose in the game dev space?
Nearly a decade ago, Java was quite the popular choice for Game development. We had libGDX as the most optimal game framework, along with LWJGL (when low level was needed) and JMonkeyEngine was a fairly good option too. Now no one even talks about Java for game development, even for educational purposes
However over the course of time they all disappeared. Everyone slowly switched to game engines and C#
The arguement of “JVM slow, Garbage collector overhead” doesnt fit either because C# is also a GC language. Where did Java fail?
r/java • u/gufranthakur • Sep 06 '25
With all the AI website slop going around, here are some Java desktop applications I created at work!
r/java • u/pushthestack • Jan 08 '19
GitHub announces free private repositories
r/java • u/Kaelin • Mar 21 '13
Oracle Corporation: Stop bundling Ask Toolbar with the Java installer
r/java • u/desrtfx • Dec 16 '21
Log4j MEGATHREAD
Upon special request of /u/bluegoliath, we are opening a megathread.
From now on, all information, questions, communication about the discovered Log4j vulnerabilities has to be inside this thread.
Posts covering this topic outside the Megathread will be removed.
r/java • u/itoshkov • Oct 29 '21
Hint (to myself and other poor souls): Don't use java.net.URLs as keys in a Map!
I've stumbled on this before, but I managed to forget.
The problem is, that it's hashCode() method will try to resolve its domain name, which is slow and blocking operation. Innocently looking code can slow down your application to a crawl.
r/java • u/[deleted] • May 16 '21
Can I get some reasons to use Java instead of Kotlin?
I'm thinking about using Kotlin + Spring Boot for my next project, but the level of love for Kotlin and bashing on Java makes me feel a culty vibe. I'd just like to hear some counter points.