in reply to What quality is your company's code?
Already, I have a couple of interesting leads to follow up on. In the meantime, I thought I would toss out one of the more amusing debacles that occurred here.
The IS director was writing some code and asked me a question about it. It seems that he was writing a routine that recursively searched directories and deleted old files. Can you say "File::Find" boy and girls? I knew you could.
I mentioned that the File::Find module could handle that safely and he replied "this code is so simple that I don't need a module to do this." -- Yeah, you can see this coming a mile away, I know :)
I cracked open the Cookbook and took about two minutes to write AND test the code that he was developing. My boss took about an hour. Once he was satisfied with it, he ran it on our development server. The code went wild and got into an infinite loop and deleted most of our development environment and crashed the server. It took about half a day to restore everything from backups and get to work again.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: (Ovid - funny) Re: What quality is your company's code?
by jeffa (Bishop) on Dec 06, 2000 at 00:34 UTC | |
|
Re: (Ovid - funny) File Find
by lemming (Priest) on Dec 06, 2000 at 00:13 UTC |