by zeroimpl · 7y ago · 0 comments
I've met more than one codebase which tried to use a big hammer pattern to open doors. Heavy indirection to do simple things because of design choices, usually caused by a forced framework - instead of easily factorizable simplicity. Patterns should be emergent not forced. Or more specifically, the choice of appropriate pattern should be based on the problem being solved, rarely one pattern can cleanly solve all problems.
Similarity is very seductive but end result is often complex and hard to reason about when followed religiously.
Design patterns can tap you easily in bad designs. Usually the lost thing is performance, big way, or actual simplicity.