Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Should I leave behind beautiful code or readable code?

by shmem (Canon)
on Apr 02, 2007 at 09:19 UTC ( #607785=note: print w/replies, xml ) Need Help??


in reply to Re^2: Should I leave behind beautiful code or readable code?
in thread Should I leave behind beautiful code or readable code?

Kernighan comes to mind - "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

As a rule of thumb and corollary to that I'd say: Leave behind code that you understand at a glance, even were you looking at it some time from writing it. Others may still have to gnaw a bit - but the uninitiated will learn something, right?

"Readable to the non-initiated" is malleable - initiated to what level? Acolyte, Friar, Hermit? :-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re^3: Should I leave behind beautiful code or readable code?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607785]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-12-04 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.