Just another Foxite.COM Community Weblog site
here's another one that i get asked frequently. just how should you go about designing classes. of course, there is no single ‘right’ answer, but i have always found it helpful, when considering creating a new class, to ask myself three questions:
· is the object going to be re-used?
· will the class simplify the task of managing complexity?
· is it worth the effort?
just for clarity, let me expand these a little:
this is probably the commonest reason for creating a class and the achievement of re-usability is, after all, one of the… Continue reading