Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Design patterns" has become an ambiguous term.

There are a lot of design patterns for object oriented programming that were created specifically to overcome structural flaws in C++ and Java. These simply don't apply to some languages.

Dependency Injection is not one of these and actually has widespread applicability. Although the name always sounds wrong to me since it makes me think of dependency creep, one of the problems that it is intended to alleviate.

Design patterns have gained an "enterprisey" reputation because much of the time they are represented as if each one is a universal, language agnostic solution. They reek of cargo cult management.

Every language and/or ecosystem will have its own set of effective design patterns that will partially overlap with those of other ecosystems. Some communities care more about making names for the patterns, which could in itself be considered enterprisey.

Interestingly enough, the person that first told me about design patterns was a Python hacker.



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

Search: