Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: What makes good Perl code?

by hardburn (Abbot)
on Aug 15, 2011 at 20:58 UTC ( #920353=note: print w/replies, xml ) Need Help??


in reply to What makes good Perl code?

I've noticed that what a lot programmers think of as "dumb code" is actually a lack of techniques to reduce code duplication. Lambdas are unlikely to meet anybody's definition of "dumb code", but they are a powerful technique for removing redundancy.

Cleverness as an end to itself shouldn't be done outside of games like Perl Golf. Neither should cleverness be avoided when it helps manage complexity.


"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://920353]
help
Chatterbox?
[choroba]: ovedpo15 Hard to tell without context. You probalby used $dir outside of its scope, which is the body of the "unless".
[choroba]: if you use unless as a statement modifier, you can't use the variable declared in the modifier in the statement.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-04-22 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?