VSLive! Speaker InterviewsBilly Hollis Billy Hollis knows a thing or two about
VB .NEThe was coauthor of the first book ever on the
topic, VB .NET Programming on the Public Beta. A regular
VSLive! Speaker, we asked Billy for some of his expertise
on Visual Basic .NET and more. Check out his interview below
or register for the next VSLive!
Conference near you and experience this content live and in
person!
On the other hand, it's hard to do a good implementation of form inheritance, except for doing some basic cosmetic standardization on forms. Coordinating the logic on the base form and the inherited form can be tricky. It can be done, and the results can be nice, but it takes some good design to get it right. I'd suggest that your first inheritance attempts should definitely be using the Framework classes as base classes. It doesn't have to be Windows Forms controls there are many other possibilities, such as inheriting from the DataSet class to create your data layer, or creating your own exception classes. Only after you've gotten the basics figured out this way should you go on to creating your own base classes. When you do get to that level, it's easy to get carried away,
so be careful. I'm not a big fan of many-level inheritance
frameworks. The "fragile base class" syndrome can
bite you if you do that. Besides, I've known some organizations
to get so bogged down in doing their framework that they never
got any real product done. However, it's always a good idea
to look at your design problems and see if a generic approach
will work. A well-designed base class can be very reusable
across projects, using inheritance. But only if you design
it right in the first place! What are some of the benefits of upgrading
to VB. NET? One of the new areas of flexibility that is extremely important is the capability to do Web sites purely with VB .NET (using ASP.NET, of course). The earlier attempts to give VB a Web interface (WebClasses and DHTML Pages) were too limiting to be useful. But now you can actually do a pretty impressive Web site without becoming a DHTML guru. VB developers who never got into Active Server Pages can now get into Web development much more easily. You still need to learn basic Web concepts, but you don't have to learn some of the minutia of ASP. How can you get the most out of OOP? What can be the biggest challenge in debugging
and how can you overcome it? Is .NET profiling worth it?
|