mardi 7 août 2018

Why avoiding conditional logic of Factory pattern is good?

One of Abstract factory pattern benefits is to avoid conditional logic of Factory pattern. However, such approach plods more classes, more code, more units tests and does not make code neither quicker nor readable, so as code class diagrams or documentation. So, what's the point in not having conditional logic on Factory pattern in such a case?

Aucun commentaire:

Enregistrer un commentaire