Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: On Commenting Out 'use strict;'

by steelrose (Scribe)
on Aug 11, 2005 at 12:22 UTC ( #482921=note: print w/ replies, xml ) Need Help??


in reply to On Commenting Out 'use strict;'

In my experience, this problem is generally caused by someone "picking up" Perl as they go along, rather than actually reading a book, or taking a class, or anything "formal". They simply think that by commenting out the command, since the errors aren't reported, they don't exist.

Far too many programmers are falling into this type of bad programming, either from their own want to take shortcuts, or by pressures put on them by management to maintain code in languages they aren't trained in. In either case, the programmer needs to be made aware of the consequences and shown the "light". Generally speaking, once they are aware, they conform. If they don't, then that's another situation entirely.

If you give a man a fish he will eat for a day.
If you teach a man to fish he will buy an ugly hat.
If you talk about fish to a starving man, you're a consultant.


Comment on Re: On Commenting Out 'use strict;'
Re^2: On Commenting Out 'use strict;'
by bofh_of_oz (Hermit) on Aug 11, 2005 at 12:41 UTC
    I would tend to disagree. I am pretty much "picking up" Perl as I go along, and I never took any Perl classes or finished reading a Perl book (yes, I started reading it, but never finished. However, I've been coding in different languages for last 15 years, and hope I understand the value of commenting/testing my code. So, when I was learning Perl, and I just found out about "use strict", I have this option in every one of my scripts - especially in production (even though someone here in PM told me I don't need it in production as the bugs were fixed in dev/testing phase).

    In my opinion, it is the people who don't care about the result of their work or just can't think logically would comment out "use strict".

    And I agree with you that such people should be educated. I usually say to them "If I place a high-voltage transformer box here, all warning labels from it, and make you maintain it - would you do it, and how comfortable would you feel?". There's nothing like real-life examples...

    --------------------------------
    An idea is not responsible for the people who believe in it...

      I would only point out that you are an exception to the rule, in my experience that is.

      If you give a man a fish he will eat for a day.
      If you teach a man to fish he will buy an ugly hat.
      If you talk about fish to a starving man, you're a consultant.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://482921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-12-19 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (69 votes), past polls