A month or so ago, I replied to
Implementing strict on shoddy code with a potential solution to adding strict piecemeal by using requires.(
Re: Re:(2501- further clarification) Implementing strict on shoddy code) In short, I found that if I use strict in one script, and then require a separate one, strict does not carry over, other than hiding the variables of the parent script.
My question now is whether writing my new code inside a required script using strict is a valid solution to slowly bringing everything into using strict?
I am currently in a situation where I am working on a large project (20,000+) lines of code. This code, after it's release, will be a continual evolution of bug fixes and added features. None of the code uses strict, as of yet. As I am now adding additional functionality, I have the opportunity to use strict on anything I write, and potentially correct some of the other code as time permits. Because of the amount of preexisting code, and time constraints, I cannot just drop use strict at the top and hope to finish anywhere near the deadline.
Thanks for your help