if 6 functions are doing the same thing only on different object

来源: 布衣之才 2007-11-27 08:05:33 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 0 次 (193 bytes)
then it should be one function. This is the simple example of reuse. reusable code is also easy to maintain. If any change is needed, you only need to change one place instead 6 places.

所有跟帖: 

回复:if 6 functions are doing the same thing only on different obj -130131- 给 130131 发送悄悄话 (40 bytes) () 11/27/2007 postreply 08:44:22

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”