Keep It Simple, Stupid | |
PerlMonks |
Re: Code for readablity or fewer lines?by TheoPetersen (Priest) |
on Feb 27, 2001 at 21:46 UTC ( [id://61110]=note: print w/replies, xml ) | Need Help?? |
I would have different responses to this, depending on whether the person making
the comment knows Perl well or not. If your boss knows the language, you have something to defend, since you want good recommendations and repeat business. Point out that you are writing code at the level of those most likely to read it, good maintainable code that doesn't require a knowledge of the choicest idioms to understand. If on the other hand he's somehow suggesting you are padding the job by writing bulky code, tell him the same thing but add that you can tighten up the work in further assignments, now that you understand the coding practices better. In either case you've done the write thing, as you seem to know already. The line between efficiency and readability depends on the function of the code and the person who has to read it next. I write example scripts differently than profound object code that only I'm likely to read. Both make me happy, if they serve both function and audience well.
In Section
Seekers of Perl Wisdom
|
|