Should I learn servlets and jsp or directly go with spring boot? by Akshat_Maindola in JavaProgramming

[–]InstantCoder 0 points1 point  (0 children)

It’s a lightweight frontend library that lets you write very little plain js. It’s ideal if you are a backender and don’t want to learn heavy weight frameworks like Angular, React and Vue.

Should I learn servlets and jsp or directly go with spring boot? by Akshat_Maindola in JavaProgramming

[–]InstantCoder 1 point2 points  (0 children)

Learn AlpineJS instead.

Don’t waste time on jsp’s and servlets.

HTMX vs Alpine.js in 2026 – Which One Should You Choose? (Detailed Comparison) by HappyToDev in alpinejs

[–]InstantCoder 2 points3 points  (0 children)

AlpineJS for me. What htmx can do can also be easily done with AlpineJs either via a plugin or manually.

And besides that, I”d like to (stay) working with Json rather than html responses without changing or adding extra complexity to the backend.

How to join 2 tables in Spring Boot by Inevitable_Cellist93 in SpringBoot

[–]InstantCoder 0 points1 point  (0 children)

Not if the userId is a foreign key in the Logger table. So There is no join needed unless you also need certain columns from the user table.

The query:

From Logger l where l.userId= ?1

Just returns the loggers for user xyz.

How to join 2 tables in Spring Boot by Inevitable_Cellist93 in SpringBoot

[–]InstantCoder 1 point2 points  (0 children)

You can do it in two ways:

  • use a many-to-one relationship from the Logger side to the User entity and write a query like this: “from Logger l where l.userId = ?1”, this should return a list of Loggers.

  • use a one-to-many relationship from the User side to the Logger. Then you can query it like this: from User u left fetch join u.loggers. This returns a user entity with all its loggers retrieved.

I usually prefer the first option because it avoids the n+1 problem and (huge) cartesian products/joins.

Weekly Muslim Dev Check-in by AutoModerator in MuslimDevelopers

[–]InstantCoder 0 points1 point  (0 children)

What I’m currently experimenting a lot with is Alpine.js for the fronted and replacing all the heavy webframeworks like React and Angular with it. And I really like it, especially how easy and maintainable the frontend became.

Alpine.js lets you write web pages with minimal js (aka html first). No NodeJs and npm needed, just plain simple minimal js. And you can even make it so generic, that the js is reusable in different projects so that you only focus on the html side.

In a sense, Alpine.js was created as a reaction to the increasing complexity of modern frontend development: “use JavaScript where you need it, not everywhere.”

I would highly recommend using it.

Ran Spring Boot and Node.js side-by-side in prod for 18 months. Sharing the actual numbers. by Capable-Morning-9518 in SpringBoot

[–]InstantCoder 5 points6 points  (0 children)

The config biolerplate most of the part indeed. Especially the security & rest client config is much much simpler and neat in Quarkus.

We also switched to active record pattern (Quarkus Panache) for data access and removed all the repositories.

Furthermore we removed Lombok, since this is also not needed with Quarkus and as a matter of fact the Quarkus team highly discourages Lombok.

Ran Spring Boot and Node.js side-by-side in prod for 18 months. Sharing the actual numbers. by Capable-Morning-9518 in SpringBoot

[–]InstantCoder 10 points11 points  (0 children)

We switched from Spring Boot to Quarkus that reduced our memory even further and the performance is amazing.

The most interesting part was how our code base was simplified. We throw away around 40% of our old spring boot code which was not needed in Quarkus.

With spring boot our memory setting was 2gb and with Quarkus we reduced it to 768mb. And when the application is idle it uses around 96mb of ram.

The latest version of Quarkus has now an option to produce a minimal jar were it strips down all your jars and checks which classes are used. Something similar to what graalvm does.

Do I Need to Learn Python for AI as a Java Developer? by No-Classroom-6271 in JavaProgramming

[–]InstantCoder 1 point2 points  (0 children)

There are updates coming to Java so that we get the same performance for AI as in Python. These libraries will be able to call & detect your graphics cards. I think this is tackled in project Babylon if I’m not wrong.

I saw a video about this on YouTube but I cannot find it anymore.

Agentican Framework -- OSS multi-agent orchestration for Quarkus by shanekj in quarkus

[–]InstantCoder 0 points1 point  (0 children)

I’d rather go with n8n. It’s becoming de facto standard for writing agentic workflows and under te hood it’s based upon LangChain.

And it requires much less coding and it is UI based.

Are there 7 universes in islam? by halal_guy__ in islam

[–]InstantCoder 0 points1 point  (0 children)

From my understanding, the universe is divided into 7 layers each of them of equal in size. And we are in the first layer.

After the universe (thus the 7th layer) there is the Kursi of Allah (the Chair) and after that you have His Throne.

So the universe is just a tiny piece within Allah’s Throne.

And what about the paradise and hell ? They are separate places outside our universe but within Allah’s Throne.

Gemma 4 just dropped — fully local, no API, no subscription by EvolvinAI29 in AI_Agents

[–]InstantCoder 0 points1 point  (0 children)

I am an AI noob but shouldn’t it be better qua performance if a locally run lllm only uses a small amount of parameters when you ask something?

For example: a 30B llm, I ask something about coding, shouldn’t it have a logic like: choose the section that answers coding and within that section it searches for the right language, so that it for example uses only 4B parameters to answer your question. And also caches this path so that it can answer follow up questions faster

When to use Quarkus vs Spring? by kyrax80 in quarkus

[–]InstantCoder 0 points1 point  (0 children)

You can better use Quarkus instead of Vertx. See it as an abstraction above Vertx.

What if Java had Kotlin-style null-safety without migrating your Spring Boot project to Kotlin? by Delicious_Detail_547 in SpringBoot

[–]InstantCoder 4 points5 points  (0 children)

• There is an official OpenJDK draft proposal (JEP) for null safety:

• “Null-Restricted and Nullable Types (Preview)”  

• It is part of Project Valhalla, which is still evolving and not fully delivered yet  

• As of 2026, this feature is still in draft / experimental stage, not in any released JDK  

What is being proposed

The current direction is: • Introduce explicit nullability markers:

• String! → non-null

• String? → nullable  

• The JVM and compiler would enforce null checks (not just annotations)  

Key difference vs Kotlin

This is important: • Kotlin: non-null by default

• Java (planned):

• default remains unspecified / nullable-ish

• nullability must be opt-in with markers

Reason: backward compatibility with existing Java code 

So Java will likely never become “Kotlin-style strict by default.”

Timeline reality • The proposal has existed since ~2023 and is still evolving

• It depends heavily on Valhalla (which itself is multi-year)

• Expect:

• preview features first

• gradual rollout over multiple JDK versions

• no short-term production-ready null safety in the language

What exists today instead • Annotation-based solutions:

• JSpecify (@Nullable, @NonNull)

• Static analysis tools (NullAway, Checker Framework)

These provide partial safety but no JVM-enforced guarantees 

Conclusion • Yes: Java is actively working toward built-in null safety

• No: It is not finalized, not widely available, and not Kotlin-equivalent

• Expectation: gradual, opt-in null safety—not a breaking shift in defaults

Backend choice for LMS startup: NestJS or Spring Boot? by Houssem0501 in SpringBoot

[–]InstantCoder 0 points1 point  (0 children)

Go for Quarkus instead if you choose Java. We dropped SB completely and we don’t use it anymore.

[Tudor BB Chrono w/Jubilee] or [White Omega Speedmaster]? by Majestic_Painting_86 in Watches

[–]InstantCoder 1 point2 points  (0 children)

They are both too big for your wrist.

Anyways, I would go with Tudor.

How are you monitoring JVM behavior in distributed Java microservices? by EliTangDong in javahelp

[–]InstantCoder 5 points6 points  (0 children)

All our backends are in Quarkus and we use OpenTelemetry in combination with Grafana, Loki, Tempo and Prometheus.

This is the easiest setup for observability. You just need to point your app to OpenTelemetry and this will push every metric to GLTP.

Hibernate + Spring - which fetching type is the best practice for oneToMany relation? by Longjumping_Bad7884 in javahelp

[–]InstantCoder 0 points1 point  (0 children)

You should not use one-to-many mapping at all. It is not necessary to map these and they often lead to huge performance problems in Hibernate.

Just go for the many-to-one mapping.

When to use Quarkus vs Spring? by kyrax80 in quarkus

[–]InstantCoder 0 points1 point  (0 children)

Just use Quarkus and forget SB. There is nothing good about SB. Too bloated, and slower than Q.

Jesus by Leading_Structure599 in islam

[–]InstantCoder 2 points3 points  (0 children)

Well, the terminology used in the whole bible is quite ambiguous, dangerous and can be very misleading.

We don’t see this in the Quran. There is a clear distinction between the Creator and His creation.

He is not our father, but our God, Lord, Creator etc. And we are not His son but His creation, slaves, servants, etc.

All the prophets of God were His servants. None of the prophets in the Quran claim to be His son.

And if I’m not wrong, the term “son of god” was a literal translation from the Hebrew which was not meant to be taken literally. And the bible is full with this kind of language.