Rico said:
Hi Ralph,
Yes, that is what I definitely need for sure. Right now I'm in the
unenviable position of having very little expreience with classes, yet being
asked to create them just the same. I was hoping to find a quick and dirty
guideline on best practices only so I don't go too far in the wrong
direction or at least be able to recover gracefully if I do (if that makes
sense). If I can't find anything, I'll just plug along as I'm doing now,
but always hate doing things without the benefit of some prior research.
I will check out the design patterns book for sure.
Rick
<snipped>
This just isn't the media for getting into a general discussion of OO. When
you come across a specific question for a specific solution - then by all
means post.
A main sore point with classic VB and OO is not all OOPL constructs are
available, and because of VB's general reliance on implementing "Classes"
using OLE/COM, there does tend to be some over-head. (However, you will reap
immediate benefits in readability and reuse.) There is also perhaps more
resistance to OO among VBers for the above reasons as well as a long
tradition of using VB in a linear or data-centric fashion. (Aaron's comment
is not an un-common opinion. <g>)
The best way to gain a feel for OO is to read other peoples code and most
importantly just start playing with it. Don't be overly concerned with doing
it the "right-way" at first. For two reasons: One, there never is a
"right-way", there are always multiple ways to provide a solution - some
just make more sense than others for YOUR problem domain. Second, the
average competent programmer usually has a feel for what is working and what
is not. You may not know exactly why something is ugly - but you just feel
it. Unfortunately, you usually have to start typing before the bells start
going off. <g>
One of the nice advantages to OO is that you can generally cut 'n paste your
way out of a blind alley, cf. to a linear approach where one often ends up
scrapping the whole thing. <g>
-ralph