层次思想----C Programming Tutorial 4th Edition (K&R version)

阅读Mark Burgess写的C Programming Tutorial, 印象最深的是其开篇讲到的程序设计思想,代码写的越多,感触越深,现尝试翻译开篇一段:

-----原文-----

Any kind of object that is sufficiently complicated can be thought of as having levels of detail; the amount of detail we see depends upon how closely we scrutinize it. A computer falls definitely into the category of complex objects and it can be thought of as working at many different levels. The terms low level and high level are often used to describe these onion-layers of complexity in computers. Low level is perhaps the easiest to understand: it describes a level of detail which is buried down amongst the working parts of the machine: the low level is the level at which the computer seems most primitive and machine-like. A higher level describes the same object, but with the detail left out. Imagine stepping back from the complexity of the machine level pieces and grouping together parts which work together, then covering up all the details. (For instance, in a car, a group of nuts, bolts, pistons can be grouped together to make up a new basic object: an engine.) At a high level a computer becomes a group of black boxes which can then
be thought of as the basic components of the computer.

----译文----

任何足够复杂的对象都有不同层次的细节;细节的数量取决于我们观察的仔细程度。电脑可以被归类于复杂对象,工作于不同的层次上。名词低层次和高层次通常被用于描述电脑的不同复杂层面。低层次可能易于理解:它描述了机器工作的细节部分:在低层次上,电脑表现得更原始,更机械。高层次描述了同样的对象,但是把细节放在一边。想象退回到机械零件层次的复杂度,把它们组装在一起工作,并把它们覆盖起来。(例如,在一辆车里,螺丝、螺帽和活塞组成了新的基本对象:引擎)在高层次上,电脑可以被看成多个黑盒零件的组成的。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值