3 ms·
Exactly, for some reason I worked a lot with Spring over the last 10 years. I refactor any non-annotation based implementation first thing. But I never gave i
by dopidopHN 6y ago
Exactly, for some reason I worked a lot with Spring over the last 10 years.
I refactor any non-annotation based implementation first thing.
But I never gave in to Lombok until recently, I was seeing it as gimmick at best. Like.... Ok, it will generate getters and setters, so can any IDE.
Lombok actually makes writing and refactoring concise java code way easier. Eg: Macro like @builder allow to introduce immutability instantly. Notation of the form Dog.Builder().size(5).name("fido") are accessible for 'free' and are pretty reliable. ( read : you can tweak them if needed without looking a de-compiled code to understand what went wrong )
So, as much as I dislike Java and Spring. I think you are correct. A CRUD microservice can be expressed in reasonably concise way with the method you describe. ( and it's still plain old boring java code running on regular JVM )