Skip to content

Tag Archives: composition

Inherit this!

Extends is the most misused keyword in the Java lexicon. In my constant and probably losing battle against poor design, I keep finding systems with a rather rich abundance of implementation inheritance. I’ve actually recently seen systems with seven or more ┬álevels of inheritance, where just about every object extends some class that (eventually) extends […]

Dependency Injection: “Don’t look for things!”

Here’s a piece of advice I definitely can take to heart. From Google testing blog: *Clean Code Talk Series* *Topic: Don’t Look For Things!* http://googletesting.blogspot.com/2008/11/clean-code-talks-dependency-injection.html Recently I’ve been doing maintenance work on a system that has a lot of custom-rolled code to do stuff like, look up EJB Home and Remote references. Even though parts […]