Is loose coupling w/o use cases an anti-pattern?
Posted
by
dsimcha
on Programmers
See other posts from Programmers
or by dsimcha
Published on 2010-09-30T15:37:39Z
Indexed on
2011/11/29
2:07 UTC
Read the original article
Hit count: 314
Loose coupling is, to some developers, the holy grail of well-engineered software. It's certainly a good thing when it makes code more flexible in the face of changes that are likely to occur in the foreseeable future, or avoids code duplication.
On the other hand, efforts to loosely couple components increase the amount of indirection in a program, thus increasing its complexity, often making it more difficult to understand and often making it less efficient.
Do you consider a focus on loose coupling without any use cases for the loose coupling (such as avoiding code duplication or planning for changes that are likely to occur in the foreseeable future) to be an anti-pattern? Can loose coupling fall under the umbrella of YAGNI?
© Programmers or respective owner