Programming Tips#1: Don't Replicate Code Block
Don't replicate code block, write a function instead. If you replicate any code block and later if you decide to do any change with the block, you might need to change all.
By localizing your changes to a Function or a Macro, you localize the knowledge. If there is any knowledge change, you need to change it in only one place.
No comments:
Post a Comment