Why Reinvent the Wheel?
Throughout this chapter, we’ve looked at various third-party components that can greatly enhance your IIS/ASP web site. While most of these components come at a cost, it is almost guaranteed to be much lower than the cost in man-hours needed to develop a similar component inhouse.
Since its Introduction, this book has promoted code reuse repeatedly for several reasons:
Code reuse decreases the time needed to complete a project.
Code reuse decreases the time needed to complete future projects.
Code reuse leads to fewer bugs, since the reused code is more thoroughly tested than newly written code (and it has already been checked time and time again for typos and silly mistakes).
COM components, if they are Microsoft-created, third-party created, or developed in-house, are shining examples of code reuse and are guaranteed to save you time in development and debugging. My advice: if you can find a third-party COM component that can meet your needs, by all means, use it!
Tip
The only disadvantage of using third-party or Microsoft COM objects is you don’t have access to the source. This, in my opinion, has two disadvantages:
Sometimes it’s nice to be able to see under the hood of the car. With third-party COM components, you are in the dark as to how, exactly, they work. While this black-box implementation has its advantages in encapsulating the implementation complexity, there are still those times when you need to know what makes the component tick. For example, use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access