in reply to Should I leave behind beautiful code or readable code?
Ok, I got the point that the code is not as beautiful as I thought at first, given all those references to "Beauty is in the eye of the beholder." :-)
If somebody else had written my post, I myself would have probably replied along the lines of grinder's post. I also perfectly agree with BrowserUk. After all, I am supposed to write Perl code and use Perl's features and not to write C code in Perl.
I think I will slightly refactor the code as follows:
Thanks everybody for your replies.
I love posting my meditations. Reading what others think is enlightening!
Max
If somebody else had written my post, I myself would have probably replied along the lines of grinder's post. I also perfectly agree with BrowserUk. After all, I am supposed to write Perl code and use Perl's features and not to write C code in Perl.
I think I will slightly refactor the code as follows:
Thanks jwkrahn for the hints.return map(split(' ',uc,2),@somearray);
Thanks everybody for your replies.
I love posting my meditations. Reading what others think is enlightening!
Max
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Should I leave behind beautiful code or readable code?
by perrin (Chancellor) on Mar 28, 2007 at 15:11 UTC | |
by graff (Chancellor) on Mar 29, 2007 at 02:36 UTC | |
by pdcawley (Hermit) on Mar 29, 2007 at 23:07 UTC | |
by perrin (Chancellor) on Mar 29, 2007 at 15:53 UTC |
In Section
Meditations