in reply to Re: Writing a perl quiz. Need advice.
in thread Writing a perl quiz. Need advice.
Update: Don't keep fatalsToBrowser in your production script. See postings below for reasons.
You've also got fatalsToBrowser in there - however once your program is done and dusted I would have thought it best to remove it?
I disagree. In the same line of thought, you could propose to remove use strict/use warnings after your program is thoroughly tested. This is somewhat like asking your children to forget their good education once they are grown up :-).
The only reason I can come up with to remove any of the three is to to improve speed, and even that one is not sufficient: I challenge you to prove that the speed gain is more than marginal.
My experience shows that for many scripts I "finished" at a certain time, there is another time I have to go back and make some changes. Software is not like a statue that you once create and never change. But if you are going to change it, you better leave all the security mechanisms in place, or else you'll shoot yourself in the foot.
Even software that you are "sure" you will never modify might fail mysteriously due to not-yet uncovered bugs, a section of code you never really tested, an error condition that never ocurred before etc. For this, it's good to have FatalsToBrowser.
Apart from that, I like to treat every piece of software I write seriously. It helps me to acquire good coding habits, and it tends to save me a lot of work later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forgetting your good education
by adrianh (Chancellor) on Mar 08, 2003 at 13:52 UTC | |
by crenz (Priest) on Mar 08, 2003 at 14:06 UTC | |
by ihb (Deacon) on Mar 08, 2003 at 19:28 UTC | |
by crenz (Priest) on Mar 08, 2003 at 20:08 UTC | |
by bart (Canon) on Mar 09, 2003 at 12:30 UTC | |
| |
|
Re: Forgetting your good education
by Anonymous Monk on Mar 08, 2003 at 21:10 UTC |