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

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

by dragonchild (Archbishop)
on Mar 28, 2007 at 17:32 UTC ( #607071=note: print w/ replies, xml ) Need Help??


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

It all depends on who the maintainer is. In my consulting career, I consistently wrote code that would avoid map, grep, and other such "complex" constructs, save where I heavily commented it. In my last couple jobs, working with people who understood such code (like stvn and mst of DBIC/Catalyst), I use map/grep almost exclusively over for-loops, save where a for-loop is more appropriate from a coding perspective. Why? Because the map/grep code is more readable to us.

Readability is the sole definition of beautiful. There is just a question about what's readable for whom.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?


Comment on Re: 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://607071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2014-12-22 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (128 votes), past polls