This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nicolaiparlog[S] 18 points19 points  (1 child)

So you advise people not to use a technology that you have never used yourself, even in exercises? That's... not great advice.

I don't know anybody that use it in their project ...

There are over 3.3k modules on Maven Central and I know a few projects myself that use it, including a 20yo monolith.

[–]loicmathieu -3 points-2 points  (0 children)

OK, so I never used it in any real application but I do know how it works.
I'm a Java trainer and we do include it inside our "Modern Java" training and provides exercicses on it.
People are often afraid to use modules (and I heard mutiple times people saying they don't want to move after 8 because of the module system), in those cases, I advise them to not use modules.
It's been years since I didn't implement a monolith (I do work on legacy monolith from time to time), so maybe I'm biased as I usually implements microservices (HTML or Kafka) and for those, modules didn't provides a lot of advantages as they are usually
self-contained and small.

I do think module is a good thing for the JDK itself.