r/JavaProgramming • u/javinpaul • 8d ago
Top 10 Educative Courses for Software Engineers in 2026
r/JavaProgramming • u/javinpaul • 8d ago
r/JavaProgramming • u/fykup • 8d ago
I've been working on CoilBase, a small open-source Java foundation built around a simple idea: Spring-like comfort, without the weight.
I like Spring Boot's controller → service → repository structure, but wanted to preserve that development experience with a smaller runtime footprint.
CoilBase uses Jdbi for SQL-first persistence, explicit transactions, and constructor wiring. It works with lightweight HTTP frameworks like Javalin and Avaje Jex.
I recently compared five Java application stacks on a 512 MiB VM with MariaDB running alongside the application.
On HotSpot JDK 27, median application memory was:
Spring Boot + Spring JDBC: 181–188 MiB
Javalin + CoilBase: 121–136 MiB
Jex + CoilBase: ~116 MiB
The same CoilBase services and repositories worked across Javalin, Jex, and Micronaut. I also tested GraalVM Native Image, with even smaller footprints.
GitHub: https://github.com/PVRLabs/coilbase
Experiment and results: https://pvrlabs.xyz/articles/five-java-stacks-512mb-vps.html
Curious what others think of this approach. Would you consider a smaller, explicitly wired stack for a small Java service, or do you generally stick with Spring Boot?
r/JavaProgramming • u/thearjunreddy • 9d ago
Many beginners start learning Data Structures and Algorithms but struggle to solve problems independently. I'm curious to know what challenges Java beginners face while practicing DSA.
r/JavaProgramming • u/javinpaul • 9d ago
r/JavaProgramming • u/Full_School_7230 • 9d ago
r/JavaProgramming • u/BudgetMistake- • 10d ago
r/JavaProgramming • u/maritvandijk • 12d ago
What happens when your invoices end up on a dead letter queue? If you're Ronald Dehuysser, you build an open source library to make sure it never happens again.
In this episode, Ronald, creator of JobRunr, joins us to talk about running background jobs in Java. He shows how to set up JobRunr with Spring Boot, enqueue and schedule jobs, and keep an eye on them in the built-in dashboard. And he explains why he loves exceptions. (Yes, really.)
We also cover carbon-aware job scheduling, recurring jobs (and why nobody likes writing cron expressions), whether you need Kafka, and the time-traveling bug that took years to track down.
r/JavaProgramming • u/maritvandijk • 13d ago
r/JavaProgramming • u/LawyerGlittering8993 • 13d ago
r/JavaProgramming • u/javinpaul • 14d ago
r/JavaProgramming • u/Economy_Tie_5224 • 14d ago
r/JavaProgramming • u/Adventurous-Cash-127 • 14d ago
r/JavaProgramming • u/SniperxAMW_ • 15d ago
import java.util.*;
class Cir_matrix
{
public static void main()
{
Scanner in=new Scanner(System.in);
int n,r,c,x,y,i,j,z=1,m;
System.out.println("Enter no. of index");
n=in.nextInt();
int a[][]=new int[n][n];
r=n-1;c=n-1;//last
int R=0,C=0;//first
m=n-2;
for(j=1;j<=m;j++)
{
for(i=C;i<c+1;i++)
{
a[C][i]=z;
z++;
}
R++;
for(i=R;i<r+1;i++)
{
a[i][r]=z;
z++;
}
for(i=c-1;i>=C;i--)
{
a[c][i]=z;
z++;
}
R--;
for(i=r-1;i>R;i--)
{
a[i][R]=z;
z++;
}
R++;C++;r--;c--;
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{ if(a[i][j]<10)
System.out.print(a[i][j]+" ");
else
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
}
r/JavaProgramming • u/TelevisionMajor6461 • 15d ago
Let's challenge each other with tricky Java code snippets! Guess the output, explain the logic, and learn something new every day. From basics to advanced Java concepts. 🚀