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

Re: On Commenting Out 'use strict;'

by bluto (Curate)
on Aug 10, 2005 at 22:59 UTC ( #482800=note: print w/ replies, xml ) Need Help??


in reply to On Commenting Out 'use strict;'

I stared at Him for a good fifteen seconds. Then I got up and left the room.

Well done. Many people seem willing to sacrifice what they know are absolute minimum standards in order to get the job "finished".

In a previous project I worked on, not just the programmers but also the project management had fallen to this rubber-stamping dark side. In one case people were left out of a code review, since their (expert) comments would presumably slow things down. I've seen more than one review announced out of the blue for a major piece of code (>10K lines) just a few days before it occurred. I think the classic case occurred when a review consisted mainly of people that didn't know the language the code was written in, so I'm sure the review went smoothly.


Comment on Re: On Commenting Out 'use strict;'
Re^2: On Commenting Out 'use strict;'
by softworkz (Monk) on Aug 10, 2005 at 23:47 UTC
    I feel your pain OGB~! In my experience I had a GREAT instructor! You guys on here and my prof in college who enlighted us on Perl. He always said, "never turn off strict", and always comment your code when time permits, but don't leave it out.

    After college I got this really cool job as a systems admin using Perl on windoze, I walked into a shop with shaky code, no comments and not a hint of strict~! After fixing programs and converting their unix like utilities to work on windoze the powers above decided to change their web server to windoze. While two of us rushed to learn .asp .Net came along and this web interface needed to be done. So they decided to hire a student who was fresh out of college who knew .Net and has a father who is a .Net programmer. This kid finished the project in record time but me and this other person would be maintaining it (the web person for the web aspect and me for the programming aspect), anyway this other person was skeptical because some of it was in .Net and some of it was in .asp and she didn't like that there wasn't any comments anywhere? I approached the boss and said HEY we need to get this guy commenting his code, this is scary!! I looked at the .Net code and it was ALL over the place, calling here, going there, coming back going there and not a single line of comments!

    About a month later the kid comes back to fix some bugs and work on commenting. The kid leaves with everything working (maybe) and one day I go in some of his code to look and low and behold I see these kinds of comments 'global variable' 'private variable' 'helper function' I was in complete awe.... I have since left that college because of it, but I will never stop using Perl.

    FU CU

      I fairly recently gave some perl coaching to a VB programmer who has been dabbling in perl scripts. He had a problem that required some debugging; I introduced him to the delights of perl5db and we found the problem - a typo in a variable name.

      I then explained to him about use strict; and he agreed it was a good idea, and should be in any agreed coding standards. I also asked him whether he would conceive of having production VB code without "option explicit". He took my point.

      --

      Oh Lord, won’t you burn me a Knoppix CD ?
      My friends all rate Windows, I must disagree.
      Your powers of persuasion will set them all free,
      So oh Lord, won’t you burn me a Knoppix CD ?
      (Missquoting Janis Joplin)

        A few minutes with the perl debugger would be enough time for anyone to decide they're rather use strict and avoid having to use the debugger again.


        the hatter
      This kid finished the project in record time but me and this other person would be maintaining it (the web person for the web aspect and me for the programming aspect), anyway this other person was skeptical because some of it was in .Net and some of it was in .asp and she didn't like that there wasn't any comments anywhere?

      Now you got me going -- I feel your pain as well. If I don't like rubber-stamp reviews, I really don't like it when management brings in "free" help. Any monkey can be really productive writing code with no design, comments, etc since banging out code is about 25% of what you need to do (if that). The project I mentioned in my previous post also had a case like this. They decided to let some folks half way around the world update a major server. These apes inserted comments in a foreign langauge, had huge indented sections of code with gargantuan variable names, bad memory leaks, and they just dropped it and the abyssmal documentation in our laps to support.

      Now that I think about it, I think my life mirrors Dilbert...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-08-31 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls