Good OOP Techniques

Denaes

Well-known member
Joined
Jun 10, 2003
Messages
956
Ive found books on the technical aspects, but not on the theory and good OOP practices/techniques.

Anyone know of a good book, a link, document or anything else that would help with building a good OOP technique?
 
So I guess "Patterns" are what Im looking for...

That what the different organizations are called... patterns?

Thanks for the tip. I think Ill pick that book up :)
 
Patterns are common reaccurances in OO design. Despite this somewhat simplistic description of patterns, its not entirely what the book is about (although it may seem at first glance - read the description on Amazon.com or browse the book at your book store). I consider this book somewhat similar to some of the great Philosophy books that Ive read; each sentence has so much wealth of knowledge in it, youll find yourself re-reading them several times.

I should warn you, the book isnt for the feignt of heart. Make sure you are very familiar with OOP before reading it. When I first starting reading this book, I was like "what?" I revisited it 6 months later, and had that "aha!" .. as if a lightbult went off in my head. Not only has my programming and design greatly benefited, but it has also given me a far better understanding of the .NET framework and how it all works.
 
Ill say Im definately far from masterfull in all aspects OOP and class related, but I can make classes and do most of the basics.

At least the book would give me some goals as to what I need to learn.

All I know now is that I see someones OOP program and its like a fricking honeycomb of classes all half inheriting from each other and instantiantiating other classes within classes and Im like "woah". Not that I cant follow whats going on. I can figure out where what procedure is, how to get it and how to use it. What I scratch my head at is how do I come to the conclusion that this application needs 12 seperate classes, and how do I come to the conclusion of how to best set them up?

I just make a single class and put the procedures Ill use again in there. Im starting to really see benefits of overloading procedures...
 
Ahh, I see. In that case, it sounds like you could greatly benefit from the book below as well (light reading compared to Design Patterns, but make no mistake, youll still learn quite a bit). Its got a little bit of everything.

Its called Code Complete
http://www.amazon.com/exec/obidos/A...8563253/sr=2-1/ref=sr_2_1/104-5282050-2738367

I should probably mention that its a good idea to get a few opinions before purchasing (dont go on mine alone), and thumbing through the books at your local book store is always a good choice as well.

That would be a hint for OTHER forum browsers to chime in. :P
 
If found this book to be a pretty good read. Its the one that accompanies the Sharp Development open source IDE.
I found it useful to see examples of design patterns explained in the context of an actual application rather than is purely abstract terms - it also discusses the why we did this not this aspects as well which is something Ive found a lot of books do not cover.

Also as a quick overview of the more common design patters you may want to wander over here.
 
Back
Top