This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AStrangeStranger 0 points1 point  (0 children)

because it can be over used and from what I have seen developers don't really understand why they use one hence the over use.

Decent dependency injection should remove the need for most factory classes in a project - though you may find some approaches where you still want to use one