Java

How to run Java JShell with local maven dependencies

March 22, 2024
Java
JShell, Maven

Introduction # There are cases when we want to quickly debug some part of java code, play around with different versions of an isolated snippet or simply to sharpen our knowledge regarding some new libraries and concepts. Since Java 9 there is a REPL (Read–Eval–Print Loop) for an interactive evaluation within Java. No need anymore for the “long” feedback loop: code -> compile -> run -> code! This, of course, does not replace using tests for a quick/correct feedback loop. ...

Domain Driven Design under Spring Data JPA [Design]

March 13, 2024
Design
Object Oriented Design, Domain Driven Design

Introduction # Domain driven design is a rather complex subject matter as it requires a radical change in the way of thinking and approaching things. The more a developer is engaged in an object oriented language development the better it is to absorb and implement concepts using this method. But it is not a necessary or even a sufficient precondition! The idea is somehow related to the way ideas and concepts get translated into a working code base. ...