Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by shmem (Chancellor)
on Mar 31, 2007 at 23:17 UTC ( [id://607652]=note: print w/replies, xml ) Need Help??


in reply to Should I leave behind beautiful code or readable code?

Leave beautiful code, which is readable code. If it weren't, how could you see its beauty?

--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: Should I leave behind beautiful code or readable code?

Replies are listed 'Best First'.
Re^2: Should I leave behind beautiful code or readable code?
by MaxKlokan (Monk) on Apr 02, 2007 at 08:43 UTC
    I agree with you, but few monks in this thread seems to have noticed that in my OP I wrote "readable to the non-initiated" assuming that for a moderately experienced Perl programmer the code would be readable as such.
      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}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found