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]
[choroba]: My average XP per node lowered in the last three months :(
[choroba]: (check my homenode for the graph link and the tool to create it)
[LanX]: blocked by FW :(
oldtechaa takes a cookie from the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-04-26 12:02 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (474 votes). Check out past polls.