Re: What databases have taught me
Date: 22 Jun 2006 23:57:56 -0700
> - I started life as a procedural programmer.
> - I adopted OO and soon got the 'aha' click described by R. Martin.
> - I spent years coding large OO projects, with beautiful, elegant
> - I spent further years practically gnawing my arm off attempting to
> adapt my perfect OO designs as requirements inevitably shifted and
> exceptions arose.
> - I finally realised that my 'aha' was utterly illusionary, and that my
> code, being OO, was inevitably and irrecovably imprisoned in a
> hierarchical strait-jacket
I share the same experience too. Its a very unpleasant exerience to finally realize that what you believed in for many years is just an illusion. But I still think that there are some limited areas, such as building collection classes (maps, lists, etc), embedded software or GUI components, in which OO have some benefits.
After all OO started in the telecom industry and I think that OO showed some significant benefits in that area. But the big problem is then the gurus tried to apply OO everywhere, specially in business software for accunting, logistics, HR management etc.
I think that the main disadvantage with OO is that it is not multi-dimensional. OO textbooks like to use animals as an example. They like to build a polyphormic hierarchy like this: Fish
- Condor Mammal
- Bat This is the correct zooligical hierachy. But what if there are features (or behavior) that are common for all animals that can fly or that lives in water? Many business entities like bank accounts and employee types, are almost impossible to classify in hierachies.
http://frebe.php0h.com Received on Fri Jun 23 2006 - 08:57:56 CEST