Contribution 56

From WikiContent

Revision as of 15:14, 14 July 2008 by Balesd (Talk | contribs)
Jump to: navigation, search

The obvious is always illusive

All too often we come up with the most complex reason for and solution to, a problem. Yet, the obvious solution evades us. I suppose it's our own self-importance that plays a big role in this form of blindness.

I suggest:
  • If your computer doesn't work, first see if it is plugged in
  • If you're overweight, eat less and exercise more
  • If you don't want your mother to worry about you, call her once in a while
  • And, if you want to develop great software, model reality, not ideal-ality

This obvious-ness that I am alluding to is reality. Rather than accept the world as it really is, we try to idealize it and in doing so model something that does not exist, and therefore provide a solution to a problem that doesn’t exist.

For example, information in the real world consists of characteristics (data) and behavior (methods) over a period of time. Not just the current characteristics, not just current behavior, but both the characteristics (data) and behavior (methods) as they change over time.

Most software only deals with the current characteristics and behavior of a problem domain. Better software deals with characteristics over time, but applied to current behavior. That’s still not reality.

Reality demands that you:
  • Track the beginning and ending time for an object’s state, not just the time an event took place
  • Add an event date to your method calls so you can apply the appropriate behavior to the event
  • Keep historical behavior intact in your methods so you can apply the appropriate behavior to the time of an event

Reality: if you model it, you can reproduce the characteristics and behavior as they took place over time.

As a software architect, if you model reality, your solutions will actually work.

By Donald J. Bales

This work is licensed under a Creative Commons Attribution 3

Back to 97 Things Every Software Architect Should Know home page

Personal tools