A Goon
Do you hear that, Mr. Anderson? That's the sound of inevitability. The sound of your death.
- Agent Smith (The Matrix)
Liz and I have been together for 17.502 years. Yay us!
Modified: August 09 2006.
Hits: 7915253/11783384
User: Anonymous Coward
Time: 0.04 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