大头
Table_bottom

标签云
Table_bottom

分类
Table_bottom

日历
二月
28293031123
45678910
11121314151617
18192021222324
252627282912
Table_bottom

评论
Table_bottom

留言
Table_bottom

微博
Table_bottom

热门文章
Table_bottom

随机文章
Table_bottom

豆瓣上谁关注这里
Table_bottom

链接
Table_bottom

搜索栏
Table_bottom

RSS
RSS Link
Table_bottom

功能
Table_bottom

页面
Table_bottom

计数器
464612
Table_bottom

访客统计
Table_bottom

存档
Table_bottom

重构 - 090805

loveisbug posted @ 2009年8月06日 01:46 in 学习 with tags 重构 , 1796 阅读

3.2

原文:
Since the early days of programming people have realized that the longer a procedure is, the more difficult it is to understand.
Older languages carried an overhead in subroutine calls, which deterred people from small methods.
Modern OO languages have pretty much eliminated that overhead for in-process calls.

翻译:
很久以前程序员就已认识到:程序愈长愈难理解。
早期的编程语言中,“子程序调用动作”需要额外开销这使得人们不太乐意使用small method。
现代OO语言几乎已经完全免除了进程内的“函数调用动作额外开销”。

现代OO语言里函数调用没有开销了么?


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter