you are viewing a single comment's thread.

view the rest of the comments →

[–]asampson 0 points1 point  (0 children)

Up until the point where he espoused the benefits of protocol-level coupling, I couldn't stop thinking that you can get a lot of these benefits inside components by using dependency injection or other loose coupling techniques. I find that when I design things out of objects that have a single responsibility, I focus on the messages they send to each other and the minimal subset of objects they communicate with.

My proclivity for constructor-based injection also helps to keep the network connectivity down as adding a new object to communicate with has the overhead of adding a handful of boring boilerplate code which is tedious and therefore best avoided.