samedi 1 octobre 2016

Experiment Fluent Java

Hello everyone and a nice late evening, the last days i tested some Code Generators FreeBuilder, POJOBuilder, AutoBuilder and lombog. I want to use features from different artifacts and i am asking me how to do this. I know something about the maven lifecycle and for example lombog is running in the compile phase and not as maven provided:) Important is builder automation, security in case of refactoring, stability, Domain grammtic easy collection handling, shortcut not so much build() calls - maybe one, and also that i can write code in the builder an it will not be overwritten or there is another way. FreeBuilder generates complete new classes. By the way, what is the sense? It is much work to hold the interface file therefor up to date. The API is in my opinion with the most features. POJO Builder has some important features, but no grammar, but with AutoValue is is good and you can do some basic value checks and modification.

What is the best to use? Which Pattern ObjectMother is suitable and what is the best to keep maintaing time very low in case of refactoring (versioning)? Does anybody know a nice explanation? I am thinking of autovalue and guava maybe with POJOBuilder, when it should be possible of course. I think to inject all values by constructor how Auto Value causes in unreadability. I would be afraid to get some experiences.

Thanks.

Aucun commentaire:

Enregistrer un commentaire