Friday, February 03, 2006

The woes of OOP!!!!

Well, here I am again. I am still looking after the site at work. I have been asked to add a new facility to the site. The modifications required would result in my opinion in poorly maintainable code, so have decided to rewrite the backend using OOP - this will enable me to update the backend database (this was not a requirement before), easier.

Thinking in the OO way and trying to model things using OO is a lot easier said than done. In the real world modeling an OO system is a lot harder, I have become akin to converting real world problems per se to computer speak procedural steps. With OO, you need not convert and need to try and think of the problem in terms of lots of small entities interacting. This has meant that in some cases where my procedural up bringings have kicked in, the code has become bitty. Not a problem when it is in the right place; finding the right place to implement a piece of functionality however it isn't easy.

Slowly however, I am getting there. I have asked for some extra time to get the new feature up and running and convinced them that in the long term the site will be easier to maintain and update. I am confident that I will get my head around it and will be sure to post an update.