r/JavaProgramming • u/IndigoNight0987 • 53m ago
r/JavaProgramming • u/javinpaul • 1h ago
I Found the Best Course to Learn System Design Visually, and It’s Awesome
r/JavaProgramming • u/javinpaul • 1h ago
Rate Limiting Explained: Token Bucket vs Leaky Bucket vs Sliding Window
r/JavaProgramming • u/fykup • 12h ago
Running Helidon 27 on a 512 MiB VM with PostgreSQL: a practical Java efficiency experiment
r/JavaProgramming • u/javinpaul • 1d ago
Processes vs Threads vs Cores - Visually Explained
r/JavaProgramming • u/frekost • 19h ago
gRPC + Kafka: Un'architettura pratica per microservizi Java (Micronaut 4 & Java 21)
r/JavaProgramming • u/jamie_m_marsh312 • 3d ago
moving off checkmarx on a big java monorepo, what did you go with?
checkmarx renewal is coming up. full scans on our monorepo take ages, and a lot of what it flags in our spring code ends up being nothing once someone looks into it
so i got volunteered to make a shortlist before the renewal call. veracode’s on it, and our appsec lead wants to try rival on the same repo.
part of me thinks the scanner is not even the real problem and it's more what we do with findings after. aanyone moved off checkmarx on a java codebase and spent less time going through findings?
r/JavaProgramming • u/javinpaul • 4d ago
The Only 7 Software Architecture Books You Need (I Read 20+)
r/JavaProgramming • u/javinpaul • 4d ago
I Joined 30+ Spring Boot Courses - Here Are My Top 10 Recommendations
r/JavaProgramming • u/Iamvipersz • 4d ago
Does anyone want to help?
I just made my first version of a copy of Minecraft called alphavoxel. It's in its classic phase, in version Classic 1.0, and I want to continue this project in a group. I have Discord but no mic, so text chatting is the only option. There are gonna be massive updates later, but I need at least 2 people. If you want to participate, reply, and I will share the file with you
r/JavaProgramming • u/NiceLiterature4328 • 4d ago
I built SemVal4j: What if Java's @Valid could validate meaning, not just syntax?
Hey Java developers!
I've been experimenting with an idea: why should Java validation stop at syntax and structure?
"@NotNull", "@Email" and "@Size" are great, but what if we want to validate whether:
- A product review is consistent with its rating.
- A description actually matches its category.
- A customer request contains contradictory information.
That's why I built SemVal4j, an open-source Java library that extends Jakarta Bean Validation with probabilistic semantic rules powered by Jev Decision Models.
SemanticValid({
SemanticRule(
id = "rating-consistency",
question = "Is the review consistent with its rating?",
property = "comment",
passAt = 0.85,
failBelow = 0.20
)
})
public record ProductReview(
Min(1) Max(5) int rating,
NotBlank String comment
) {}
You can keep using standard "@Valid".
Key features:
- Native Jakarta Bean Validation integration.
- Spring Boot starter.
- One provider call per validated object.
- Explicit VALID / UNCERTAIN / INVALID outcomes.
- LangChain4j integration.
- Deterministic offline testing.
- Apache 2.0 license.
The goal isn't to replace deterministic validation, but to complement it when traditional constraints aren't enough.
I'm particularly interested in your thoughts on latency, reliability, and where semantic validation belongs in a Java architecture.
Would you use this in a real-world application?
GitHub: https://github.com/mohamedikbel/semval4j
Maven Central: https://central.sonatype.com/artifact/io.github.mohamedikbel/semval4j-spring-boot-starter
Feedback and contributions are welcome!
r/JavaProgramming • u/uniVocity • 4d ago
Sharing my reusable Gradle "parent" setup for anyone who hates Gradle and Maven equally - hope it eases your pains too
I've used maven for years - it is easy to understand and is predictable until your project gets big and slows down BAD: once you have a bunch of separate libraries that depend on each other, you either shove them all into one giant monorepo or waste half your day running `mvn install` on library A just to test a change in library B.
The solution I found was switching to gradle - and I hated every minute of getting it to work but I have to admit it's day and night after you get your builds running with it.
Then came the next source of pain: every new project with gradle turns into a script adventure nobody wants to touch or maintain.
So I ended up building a reusable gradle `parent` project and just cleaned it up to share with everyone and I hope it helps everyone who is either suck in maven hell (slow) and gradle hell (get get unmanageably complex quickly)
The goal of what I built is simple that's how I use it: put your project folders next to `parent/`, keep your shared settings and versions in two files only (`reactor.properties` to configure the entire workpace across all modules and `libs.versions.toml` for all dependencies in one place too). Then leave each subproject with the LEAST amount of junk possible. This setup requires 2 small files per module instead of 1 but you need 1 line of text in each (until you add dependencies).
This started as a much simpler setup for my own needs but over time I piled in a bunch of other
stuff that kept annoying me:
- I have more than 100 modules (every one of these has its own git repository, and will be public open source jars eventually available on maven central). In many cases I want to only see the subset of modules that are dependencies of the thing I'm working on. So I added support for views: I can open the view as a separate project in IntelliJ and see only the 10 modules that I care about at the moment and forget the rest. So got this `createView` task that I can also clone across multiple repos (viewClone,viewSync,viewMerge) - every clone has a branch and I can change the modules without interfering on with state of the main 100 module build. The thing resolves conflicts rollbacks to ensure you won't end up with half-merged code. Works great if you run parallel coding agents too (each one gets a copy of the subtree it is working on). Tag+release can run from the view copy too so the workspace can remain happily with all modules on their main branches.
- There's support for named execution profiles - use when you want to create shortcuts to run only what you want without having to remember flags and custom commands to enable/disable/select specific tests or flags. You can also run tests by automatically skipping modules you don't want to rebuild and just grab the latest pre-built jars instead of recompiling them.
- I added support for releasing backports . It cross-compiles, runs tests on JDK 21, keeps Javadoc on JDK 27, and rewrites `-jdk21` pom coordinates.
- Since JPMS can be a pain. I also added support for 3 modes of shading non-modular dependencies without having to pollute your build with boilerplate: relocate non-modular jars into your module (shadeEmbed), bundle split-package jars (`shadeBundle`), or build fat jars.
- Lastly there are two old java tools I (and claude) ported into gradle tasks: `couplingUi` which is a small local browser viewer to spot weak/unused dependencies and also help trim `module-info.java`. There's also `render-docs` which reads a markdown "template" that pull code snippets from tests, adds links to other sections in other markdown files and ensures that things remain connected - it also rescues my edits whenever I forget and edit the rendered `README.md` directly instead of the template.
Everything runs through the Gradle wrapper with just a JDK installed - it also enforces TestNG or JUnit if you want.
I think it got good enough for sharing so posting it here in case it saves someone else a few headaches.
Cheers!
---
Unrelated and a bit of context on why this has so much multi-repo machinery in it: some of you might remember me from univocity-parsers. I had to step away from open source 6–7 years ago for personal reasons, and over the years since then I've built up a pretty big stack of modular libraries (~100 repos) that I'm finally getting ready to start open-sourcing. This `parent` setup is the first piece going out, since it's the exact infrastructure I'm using to build, test, and publish all of them without burning out. I wanted to have a bunch of stuff released for a while now but life kept getting in the way. This is hopefully the first of many contribuitions that I think are truly useful enough to share.
r/JavaProgramming • u/javinpaul • 5d ago
Top 30 Black Friday Deals for Java Programmers and Developers (2026)
r/JavaProgramming • u/axishar • 4d ago
Java developer looking for a programming/accountability buddy, preferably in the CET time zone
reddit.comr/JavaProgramming • u/javinpaul • 5d ago
I found Leetcode for System Design Interview and its Awesome
r/JavaProgramming • u/mananvpanchal • 5d ago
RainDrops: Event-driven (choreography) java framework for monolith/microservices
I am working on the framework that helps building event-driven java application. I am still working on edge cases. Here is the gist: https://gist.github.com/mananvpanchal/25aeb37b04da7399adbcde2b251e0bc5
I will appreciate if you spare some time to read it.
Thanks
r/JavaProgramming • u/javinpaul • 6d ago
What Java Developers Should Learn in 2026?
r/JavaProgramming • u/javinpaul • 7d ago
How ByteByteGo and AlgoMonster Helped Me Crack Coding Interviews?
r/JavaProgramming • u/ni241 • 6d ago
Job opportunity for 17 YOE
Hi, I have 17 years of experience in Java application development. I have worked as Tech lead, Engineering manager as well as solution architect.
If anyone knows about any relevant openings then please let me know.
Thanks
r/JavaProgramming • u/Knightlight1729 • 7d ago
Looking to contribute to active Java / Spring Boot open-source projects
reddit.comr/JavaProgramming • u/thearjunreddy • 8d ago
Is Spring Boot necessary for Java Full Stack Development ?
I'm learning Java Full Stack Development and want to understand how important Spring Boot is for building real-world applications and getting a developer job.
r/JavaProgramming • u/EagleResponsible8752 • 8d ago
I built a JUnit 5 add-on for testing Spring AI features: repeated runs, statistical baselines and record/replay in CI
Testing LLM features in Spring AI is awkward: the same prompt can pass one run and fail the next, so a plain assertion is either flaky or meaningless.
spring-ai-eval-baseline treats each LLM test as a small experiment:
- `@EvalTest(runs = 10)` runs the method N times and records the pass rate with a confidence interval
- The pass rate is compared with a baseline file; the test fails only on a statistically significant drop (Fisher's exact test), with optional latency and cost limits
- `RecordingChatModel` wraps any Spring AI `ChatModel`: record real answers once, then replay them in CI, offline and for free
- A Markdown report you can post as a pull request comment
Example:
```java
u/EvalTest(runs = 10)
void refundAnswerMentionsTheLimit() {
assertThat(bot.answer("Can I get a refund?")).contains("30 days");
}
```
I use it in one of my own projects: a regression test runs an LLM-based detector on a synthetic test set and fails CI if a prompt change makes detection worse.
Maven Central: `io.github.rrezartprebreza:eval-junit:0.1.0` (MIT, Java 21, Spring AI 1.0)
Repo: https://github.com/rrezartprebreza/spring-ai-eval-baseline
I'd like feedback on the API and the statistics. What would you need before using something like this at work?