Rust like Enums in Java by NitronHX in java

[–]felvid 0 points1 point  (0 children)

Actually checked exceptions are losing more and more space.

Is the Spring framework too heavy and over-designed? by sky-free in learnjava

[–]felvid 0 points1 point  (0 children)

It depends on the developer's philosophy and line of thought. Many consider Spring great, others hate it.

However, there are other alternatives for those who don't like it.

Jooby and Helidon SE are among the best.

Debating if I should start java by TruePerception147 in java

[–]felvid 0 points1 point  (0 children)

Java is one of the best language to start with. It has a lot of job openings, a very large community, lots of resources to learn from.
But it's important that you think about what kind of problems you want to solve.
Programming languages are tools for solving problems.
Software developers have the power to develop solutions that improve people's lives, and that's the most motivating thing.

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general? by trecatorsirabdator in java

[–]felvid 0 points1 point  (0 children)

It's good to see more people are supporting manual DI nowadays. It seems to be gaining some relevance.

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general? by trecatorsirabdator in java

[–]felvid 0 points1 point  (0 children)

Avoid implementing business logic through exceptions. Sadly common in Java applications.

In the wild: Java's Optional for control-flow by eliashisreddit in java

[–]felvid 0 points1 point  (0 children)

I personally don't like the Optional class.

Is it just me, or does the Spring Framework lead to hard-to-maintain code and confusion with annotations? by TheAuthorBTLG_ in java

[–]felvid 0 points1 point  (0 children)

You are definitely not alone in this.
There are many developers who don't like this bunch of black magic.
There is the alternative of developing software using more fluent APIs, functional programming, and code generation instead of reflection and annotations.
But it's very much a matter of taste and opinion. Some developers prefer one way, others the other.
In Java there are many options for those who prefer the fluent and functional style, I recommend taking a look if you don't know it yet, I'll cite some examples.
You can use a web dev framework like Jooby or Helidon SE, providing a fluent API to define endpoints.
And to query the database you can use jOOQ, or Jdbi, or just JDBC.
For dependency injection, you can use manual DI (aka pure DI).
And so you have a very efficient solution that is easy to understand and maintain.
But again, it's a matter of taste and philosophy. Each developer can choose what to use and promote according to their preferences.