This idea came about as a result of a chatterbox conversation (one of many, in reality) on commenting code, idioms, semantics, and how we all have different coding habits.
I'd like to propose that we all look at xluke_repwalker.pl, and pick it to pieces.
Ground rules:
- I will not get offended at anything anyone says about this code.
- It's not a golfing contest, at least to the degree of "I can reduce this line by two characters, and still claim that it will run"
- Claiming that whether leading and/or trailing spaces around parantheses or not makes it more readable doesn't count, nor does whether the opening brace goes on the same line as the if/for/while verb.
- Comments about readability are encouraged. Do variable names make sense? Could we improve the program flow? (Let's skip over the "We could make this a module, and permit other programs to have repwalking capability", however.)
- Certain people saying that've already done that in their WebTechniques column doesn't count <G>
I can't think of any other rules that are really necessary, so let's start with that. Doesn't matter what your skill level is particularly, all are encouraged to comment.
Be sure to reply to this node, and not the xluke_repwalker.pl node, please.
--Chris
e-mail jcwren
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.