Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: SoundOff Program (eg. for Pandora Radio)

by liverpole (Monsignor)
on Dec 05, 2011 at 13:07 UTC ( #941832=note: print w/replies, xml ) Need Help??

in reply to Re: SoundOff Program (eg. for Pandora Radio)
in thread SoundOff Program (eg. for Pandora Radio)

    Why add the leading whitespace and colon when you are just going to remove them anyway?

Because it's far more easy to visually parse when it's indented, and I use that formatting trick in other programs, where I sometimes have to hand-edit the text, and it's much easier when the line begins with ':' than without.

    And the substitution would be more efficient as..."

So what? It's in the startup code so it's not a performance hit, and I think the "unneeded" capturing parentheses makes it easier to read. But, yeah, thanks for "enlightening" me on regular expressions.

Honestly, I posted this because I thought it might be useful to a few others besides me, not because I needed the code nit-picked for insignificant optimization. Did you even run it? Or was this just a chance to show off your ikegami-like superiority? It's your type of comments that make me tired and sad that I even post here any more.

  • Comment on Re^2: SoundOff Program (eg. for Pandora Radio)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-10-28 03:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (374 votes). Check out past polls.