in reply to I fear my code is unreadable

I just think I've gone a bit too far
My experience is that if you "think you've gone a bit too far" you know you've really gone way too far. Split your code up so that each line saves it's results into an array, and use that in the next step.

Doing that will make the code

(And I'm as guilty as anyone else for making single statements too long and too complex)


Unless I state otherwise, all my code runs with strict and warnings

Replies are listed 'Best First'.
Re^2: I fear my code is unreadable
by Erez (Priest) on May 07, 2008 at 06:21 UTC

    I found that, although "self documenting" code is rarely found, good, clean, well-structured, and well styled code is more easily read, and better maintained.

    I suggest reading Tom Christiansen's Perl Style talk, and the article that influenced it, Rob Pike's Notes on writing C for some ideas and guidelines about style.

    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphors.