OO Design
-
Folks I had asked this question a couple of days ago and based on the response i have attempted to implement it, I posted a reply in the thread but it did not bump the topic so i'm just bumping here to see what the opinion of the experts here are: Here is a link to the codeproject post: http://www.codeproject.com/Messages/4625183/Re-OO-Design-for-Specifc-Problem.aspx[^] TIA
-
Folks I had asked this question a couple of days ago and based on the response i have attempted to implement it, I posted a reply in the thread but it did not bump the topic so i'm just bumping here to see what the opinion of the experts here are: Here is a link to the codeproject post: http://www.codeproject.com/Messages/4625183/Re-OO-Design-for-Specifc-Problem.aspx[^] TIA
KeithF wrote:
So basically before i carry on with my design I am wondering from an OO point of view if I am approaching this task in the right way or if what I am doing is overkill and could be greatly simplified?
There is no clear and specific "right way" in OO; it's called OO once you structure your methods and data into objects. If you think the new code is more easily to maintain than the original code, than it'd be an improvement. If the new code looks "complex" or contains a lot of repetitions, then it'd be wise to re-evaluate the design. Is it an improvement (from your viewpoint), in terms of readability?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
KeithF wrote:
So basically before i carry on with my design I am wondering from an OO point of view if I am approaching this task in the right way or if what I am doing is overkill and could be greatly simplified?
There is no clear and specific "right way" in OO; it's called OO once you structure your methods and data into objects. If you think the new code is more easily to maintain than the original code, than it'd be an improvement. If the new code looks "complex" or contains a lot of repetitions, then it'd be wise to re-evaluate the design. Is it an improvement (from your viewpoint), in terms of readability?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]