This question might sound naive, and maybe it is. It consists of two parts:
If I used a builder pattern to create my instances, should I also use a factory method? Is it not considered a bad habit to just use the new
keyword in that case; that is innew Foo.Builder()
Aucun commentaire:
Enregistrer un commentaire