This is a very good topic that you bring up. Often I wonder how many people don't test code before they run it... As for me, I test everything, and I mean everything. Some people, like you, are proven good coders and if they make a mistake here or there, people usually don't think much of it. But I am not a good coder, and I don't pretend to be, so posting something wrong would not only make me look silly or dumb, but it would make me look stupid. If the code is something more complex, I make sure that the code not only runs, but it does what I need it to do. (I feel that that is a very important distinction, code that runs, and code that works.) As far as posting regexes, well, I don't, too dangerous. :-)
Secondly, I love reformatting code. I love code that looks good and I love to make code look good, good for me, that is. You mentioned putting braces underneath a statement, well, I would undo that, but again, it's a matter of opinion. I also like aligned comments and bulky or long lines (looks more advanced that way, also is less wasteful :-)). I also do the exact opposite as far as your funtion, paren relationship goes, but an argument over that should be somewhere else. The point is, well formatted code is important to me (it is also the easiest to do for me :-)).
Well, that's my opinion.
Zenon Zabinski | zdog | email@example.com
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||