Skip to content

Tag Archives: oo

On Polymorphism

So, in an effort to broaden my horizons, and following the maxim “learn a new language every year” (and theorising here that Classical Latin does not count), I decided that I will learn the basics of Objective-C. After I’ve used a Mac for many years and it’s about time I learned to program the thing […]

case “String” : still FAIL

You know, just because Java is going to gain a switch statement that works on java.util.String still doesn’t make it right. It’s still a code smell for an OO design fail. Although the diamond syntax and lambdas are way overdue (see article). Java is not the new COBOL | Craig Tataryn’s .plan: A switch statement […]

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!* 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 […]