Monthly Archives June 2008

Don’t generalize…

Back in university we were taught a simple rule, “0, 1, ∞”. In other words if you are writing a function (library, framework) it must operate on 0, 1 of infinite number of elements (parameters, objects). I had no problems understanding that rule. Requirements are ever-changing; today you might want to handle 2 objects, tomorrow [...]