A Goon
A nerd is someone whose life revolved around computers and technology. A geek is someone whose life revolves around computers and technology, and likes it.
- MindStalker
Liz and I have been together for 17.825 years. Yay us!
Modified: August 09 2006.
Hits: 8491926/12381251
User: Anonymous Coward
Time: 0.05 seconds.

Read Message

Reusability, mostly

Author: The Lord DebtAngel ()
Date: 2000-03-30 00:00:00

This is actually a VB guy talking, but the principles are the same.

I have this code that will recursively read a directory structure and return every file that fits a pattern like "*.jpg|*.gif|*.tif|*.bmp|*.pcx". I stuck it in a class. It took me about three days to write and get perfect. Now, whenever I need it, I add the file and about 12 lines of code. It takes less than two minutes. That is the power of the class.

Mind you, there is not a lot of benefit to that until you realize I could stick that in a DLL and it would work just as well.

Is it not nifty? Sluggy Freelance. Worship the comic.

Does anybody here know C++ 'cause I gotta really good question. - Un-King WizardSlayer - 2000-03-30 00:00:00
-Reusability, mostly - The Lord DebtAngel - 2000-03-30 00:00:00