Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: "Baby" Perl versus "Bad" Perl

by tphyahoo (Vicar)
on Dec 05, 2005 at 09:13 UTC ( #514069=note: print w/ replies, xml ) Need Help??


in reply to "Baby" Perl versus "Bad" Perl

Maybe...

Baby perl doesn't use shortcuts. EG, doesn't use references, and if it does use them it uses them verbosely: ${$ref} not $$ref. Doesn't use methods, just subs. Doesn't use the "pronouns", eg $_, @_. Or better put, uses them a little bit, but quickly sets them to vars so that the baby doesn't have to look at something that looks like punctuation.

for with a test instead of grep. for instead of map.

On the other hand, basic things, like avoiding overuse of global variables, should be observed even by a "baby."

And I disagree that use strict shouldn't be expected of babies. If you see your baby crawling towards a glowing fireplace with a goofy smile on his face, you would stop him and yell at him not to do that again, no? Same thing.


Comment on Re: "Baby" Perl versus "Bad" Perl
Re^2: "Baby" Perl versus "Bad" Perl
by Anonymous Monk on Dec 06, 2005 at 21:17 UTC
    If you see your baby crawling towards a glowing fireplace with a goofy smile on his face, you would stop him and yell at him not to do that again, no?

    "The burnt hand teaches best" :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-07-31 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls