Hacker News new | past | comments | ask | show | jobs | submit login

If you're actually using that configurability (i.e. your method actually instantiates different implementations in different cases) then no - that's the same thing you'd do in any language. If you're pre-emptively defining factory methods that actually just call the normal constructor then yes (a lot of Java bloat is like that - see also getters and setters on every field for the sake of the 0.01% where you actually want to do something other than just read/write the field).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: