Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Re: I wrote some clever code - can the comment "defuse" it? (explanations)

by BrowserUk (Pope)
on Jun 17, 2003 at 22:18 UTC ( #266666=note: print w/replies, xml ) Need Help??

in reply to Re: I wrote some clever code - can the comment "defuse" it? (explanations)
in thread I wrote some clever code - can the comment "defuse" it?

Apart from that I think that using the block form of map would make it a whole lot more obvious which part of this is being iterated over, which I know you'll disagree with, possibly vehmently :), I think description of how it works in this post is infinitely more useful as a comment that the original.

I tried (really hard) to understand the code without the original comment. I eventually gave up and read the comment, and frankly was none-the-wiser. Maybe in the context of the surrounding code it might have clarified more. Once I read your description here, I finally understood what the code was doing, and how it was doing it.

On that basis, I would use the description from this post, including the update, in preference to the original.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

  • Comment on Re: Re: I wrote some clever code - can the comment "defuse" it? (explanations)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://266666]
[choroba]: Rama!
[shmem]: hm. That should be "an artist's expression"
[RonW]: Happy Thanksgiving Eve
[RonW]: and no panic, here. We're staying home, safe from the frenzy in the stores

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-11-22 16:50 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (327 votes). Check out past polls.