in reply to What is clear code ?
Unfamiliarity with Perl's list-processing features does tend to obscure the intent of Ovid's code somewhat, but I can follow it without the comments. (I'd argue it would be clearer with a single comment that said "strip empty lines, wrap paragraphs marked by newlines in paragraph tags".)$i = $i + 1; $i++; $i = $i + $i; $i *= 2;
I'm not completely satisfied with either -- it's not clear why "\r\n" is used instead of $/, though Ovid's has a distinct advantage of the <p>$_</p> construct.
|
|---|