Chapter 10 -- Singleton

[Previous] [Next]

Chapter 10

The average company has a mail department responsible for receiving and delivering packages at the company's address on your behalf. Many companies also have a main phone number through which questions, comments, and requests are communicated. Similarly, the average company uses a single printer installed on its network to serve a large number of workstations, avoiding the expense of attaching a printer to each workstation.

We can appreciate the benefits of these arrangements for numerous reasons. Consider the cost savings, for example. It's not very likely that all the workstations will submit print jobs nonstop throughout the day. It's also not likely that most employees require the services of the mail department or the central phone number on a consistent basis throughout the day. Having a single mail department, a central phone number, and a single printer is cost effective because the use of all these services per person is relatively low. You can apply the same reasoning to software development: software components in a given scenario might prove to be beneficial when designed to exist as a single instance.



Microsoft Visual Basic Design Patterns
Microsoft Visual Basic Design Patterns (Microsoft Professional Series)
ISBN: B00006L567
EAN: N/A
Year: 2000
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net