Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

A DO and a DON’T for OO programming

Saturday, December 17th, 2005

Here’s a little DON’T hint for OO programming:

  • Don’t use classes to cut up your program.

Here’s a little DO hint for OO programming:

  • DO use classes to create small libraries which are all seperate entities that your program uses (and, in essence, consists of)

When writing a program, ask yourself this:

Can I seperate each individual class from the rest of my program and still use it“.

Or just write test cases for each individual class and you’ll find out quick enough if your program’s structure is okay.

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.