in reply to Use strict _encouraged_, but not mandated :-)
in thread Use Strict needed?

How much debugging do you expect from a script that has been running fine for 5 months?

There's little to gain when adding strict now, but there's a lot of debugging time to lose when you add it now.

Abigail

  • Comment on Re: Use strict _encouraged_, but not mandated :-)

Replies are listed 'Best First'.
Re: Re: Use strict _encouraged_, but not mandated :-)
by Sifmole (Chaplain) on Aug 05, 2002 at 13:57 UTC
    Well that all depends -- how often has it been run in the past 5 months? In how many different scenarios? Why is the poster looking at it again after this much time? Are there changes that need to be made? Is it going into heavier use?

    I say again, if the developer didn't expect to see warnings then they are a sign that the developer overlooked something. I don't care if it has been running right for the past 5 months; code that spews warnings when I don't expect it to makes me worry.

    Hmm, I wonder what I will see if I put in use strict... <tappity tap> Yikes! Where are all these warnings coming from?! <thinks> Oh well, if I remove the use strict they go away. <tappity tap... slams head into hole in sand.>
Re: Re: Use strict _encouraged_, but not mandated :-)
by Anonymous Monk on Aug 06, 2002 at 00:22 UTC
    How much debugging do you expect from a script that has been running fine for 5 months?

    You would be amazed.

    My experience is that the process of adding strict.pm to any lengthy script that doesn't have it already goes quickly (because it is largely mechanical), and generally fixes several bugs. (In particular you find that "has been running fine" often means, "Shit, that caused the problem I was having?") It may or may not fix the one I started out looking for, but if it doesn't then I generally come out with a pretty good picture of how the code works, and my development time on that code will be faster.