Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: What is code readability?by Herkum (Parson) |
on Jan 02, 2007 at 23:39 UTC ( [id://592667]=note: print w/replies, xml ) | Need Help?? |
I think one of the most important concepts to take from programming is replacing abstract code with a function name that describe the work it is supposed to do. For example, I came across this code,
I don't even know what this does or why it is doing it. If they had done something like this, I would have a basic understanding of the what they are trying to accomplish.
To me, the difference between a good developer and a bad developer is being able to break code into functions that explain what the program is supposed to be doing. Something most beginning programmers do not understand. Update: Changed sub determine_total_fee to sub determine_maximum_fee(), thanks to the Anonymous Monk for pointing out the error
In Section
Meditations
|
|