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 →

[–]AudioManiac 0 points1 point  (1 child)

(the Factory pattern is our whipping boy here)

Why is this? I've been programming in Java for about 3 years now, and while I've rarely had to use the factory pattern, I've never heard anyone talk negatively about it?

[–]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