Skip to main content
  • 175 Accesses

Abstract

Up To This Point you have written a fair amount of code. In fact, if you do a line count, you will find out that it comes to about 3,624 lines of code (this includes blank lines and Windows Forms-generated code, but not comments). That is a lot of work for just two sets of classes that retrieve only two tables worth of data. In this chapter you will look at two ways of reducing the amount of code that your application needs. First, you will consolidate some of the code in your user-centric classes, and you will create a base class that you can use in your user-centric objects. After you do that, you will set up a couple of enterprise templates so that you can add standard blocks of code and just edit the parts you need to edit. In this manner, you might add 1,000 lines of code, but you only have to type about 50 lines. It makes for a much more streamlined development process, as you will see.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Jeff Levinson

About this chapter

Cite this chapter

Levinson, J. (2003). Reusing Code. In: Building Client/Server Applications with VB .NET: An Example-Driven Approach. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0762-7_8

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0762-7_8

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-070-6

  • Online ISBN: 978-1-4302-0762-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics