Rule #1
Code to an interface, not an implementation (concrete class).
"if CustomVersion ==
"BLAHBLAH" { do this instead! }".
That is...what you end up with when you don't follow Rule#1.
...
Buy a good OO book.
I'll recommend "Head First Design Patterns" for someone new to this inquiry.
..
Here is a start OO blog
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!126.entry
But that's a drop in the bucket.
..
I used to work for a company that did "If companyName=="ABC" then".....so I
feel your struggle.
> I've got a situation that I've not encountered before, but that I'm
> quite sure other folks have: How do you manage application
[quoted text clipped - 23 lines]
> However... I haven't been able to come up with a really clean solution
> to what must be a common problem. How have other folks handle it?
sloan - 19 Feb 2008 21:47 GMT
PS
http://www.google.com/search?source=ig&hl=en&rlz=&q=code+to+an+interface+not+an+
implementation
Read about 5 articles a day....Java,C#,SmartTalk, whatever..for a week.
Then go back and reread some after 1 month, 3 months, 6 months.
They'll start "clicking" after you struggle with it some.
..
Get the Head First Book, it'll open your eyes in alot of different areas.
> Rule #1
> Code to an interface, not an implementation (concrete class).
[quoted text clipped - 48 lines]
>> However... I haven't been able to come up with a really clean solution
>> to what must be a common problem. How have other folks handle it?