Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Perl Cipher & questions on semantics/layout optimisation.

by educated_foo (Vicar)
on Feb 25, 2012 at 12:46 UTC ( #956101=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Cipher & questions on semantics/layout optimisation.
in thread Perl Cipher & questions on semantics/layout optimisation.

First off: you absolutely must use strictures (use strict; use warnings;).
GMAFB. You "absolutely must" type "use strict;\nuse warnings;\n\n" at the start of your posts to avoid a scolding by GrandFather and his pathetic ilk. Sometimes these things catch bugs; sometimes they don't. But they're always good for cheap upvotes.


Comment on Re^2: Perl Cipher & questions on semantics/layout optimisation.
Download Code
Re^3: Perl Cipher & questions on semantics/layout optimisation.
by GrandFather (Cardinal) on Feb 25, 2012 at 22:00 UTC

    I often give the "use strictures" advice because it gives the greatest bang for the buck in terms of catching the sorts of mistakes newbie (and other) programmers make. In that respect it is cheap advice of great value.

    In the case of the reply to the OP I strengthened my usual "should" to "absolutely must" because strictures would have caught several different types of error in the OP's code. A cursory test of the original code would seem to show it worked. However due to bare word errors and various other types of error Perl glosses over by default the code was not doing anything like what the OP expected.

    I'm not sure why you are fixated on "cheap upvotes". If that were the only advice I ever gave maybe there would be some basis for the implied accusation, but without much work you could find out for yourself that that doesn't apply to me, or indeed to any other monk I can think of.

    I sure as an experienced and competent programmer you have no need for help from the dumb computer, but for me tools such as strictures, a good IDE and unit tests make me an order of magnitude more productive with much greater confidence in my work. I shall continue to advise newbies (and anyone else who will listen) to use stictures and any other such tool that make their life easier and improves the quality of their code.

    True laziness is hard work
      I sure as an experienced and competent programmer you have no need for help from the dumb computer, but for me tools such as strictures, a good IDE and unit tests make me an order of magnitude more productive with much greater confidence in my work.
      I sometimes find "strict," "perl -w," and Emacs's syntax highlighting helpful. I also understand what they do. Mindlessly chanting "use strict;\nuse warnings;\n\n" at people doesn't teach them anything.

      EDIT:

      Reputation: -7 (+0 -7)
      But don't you *dare* question it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-08-22 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls