<?xml version="1.0" encoding="windows-1252"?>
<node id="606931" title="Should I leave behind beautiful code or readable code?" created="2007-03-28 04:13:12" updated="2007-03-28 00:13:12">
<type id="120">
perlmeditation</type>
<author id="579699">
MaxKlokan</author>
<data>
<field name="doctext">
Dear monks,&lt;br&gt;&lt;br&gt;

I wrote for my current client some code that looks like this:
&lt;code&gt;
sub MySub
{
	...some stuff...
	return map split(/ /,$_,2), map uc, @somearray;
}
&lt;/code&gt;
I like it a lot (I know, I could even leave out the "return"). However, in a few months I'll be off to new challenges and I will have to leave this code to be maintained by somebody else.&lt;br&gt;
Should I let my pride prevail and leave the code as it is, our should I be merciful to the maintainer and refactor it to something more readable to the non-initiated?&lt;br&gt;&lt;br&gt;

Max</field>
</data>
</node>
