Methods should be public

I’ve found it is possible to write objects where every method offers some utility beyond the object itself. I try to refactor toward this, and when I’m successful, I find that every statement contributes something important to the computation. When I’m unsuccessful I find more “noise” methods in my objects, and these are the ones I want to make private. Private is my way of saying sorry. —Ward Cunningham

—AK, 2005-05-07

2024 © ak