bentrask.com > Notes & Essays >

Object Oriented

April 2011

What Object Oriented Isn’t:

What Object Oriented Is:

What Object Oriented Means:

Give the different pieces of data (objects) control of tasks that act on them (methods).

What Object Oriented Implies:

  1. The data that your application acts on should be divided into a wide array of distinct groups based on concrete, logical distinctions.
  2. The different groups of data should be given meaningful noun-form titles.
  3. The tasks that your application performs should be naturally categorized based on the group of data on which they operate.
  4. The different tasks should be given meaningful command-form titles.

What Object Oriented Produces:

Code with a fundamental unified style for all of its most basic parts. Terrible code translated into object oriented style will at least gain structure; great code will remain great (as long as higher-level constructs are preserved).

Remember:

Any program can be rewritten in an infinite number of functionally equivalent ways. As the programmer, your job is to find the way that best conveys the code’s meaning.