Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

(Ovid) RE(2): Regexes vs. Maintainability

by Ovid (Cardinal)
on Sep 29, 2000 at 01:12 UTC ( [id://34511]=note: print w/replies, xml ) Need Help??

in reply to RE: Regexes vs. Maintainability
in thread Regexes vs. Maintainability

Hmm... I had posted this in discussion, since seekers didn't seem appropriate. Ah well.

I like your version of the second regex. Not sure about the comment regarding going overboard on the whitespace. I prefer the extra whitespace because I feel the indentation adds clarity (especially in the comments, oddly enough). Too many programmers just throw things to gether with little or no explanation. I err on the side of overcommenting, but my programs are, I think, much easier to understand.

What don't you like about the whitespace?


Join the Perlmonks Setiathome Group or just go the the link and check out our stats.

  • Comment on (Ovid) RE(2): Regexes vs. Maintainability

Replies are listed 'Best First'.
RE: (Ovid) RE(2): Regexes vs. Maintainability
by japhy (Canon) on Sep 29, 2000 at 04:21 UTC
    You were indenting REALLY far in. It just made it seem more trouble than it was worth. If you use tabs in your actual code, you may want to consider changing to two or four spaces instead.


Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-07-24 21:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.