博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
thinking in linux 机制与策率
阅读量:2419 次
发布时间:2019-05-10

本文共 1393 字,大约阅读时间需要 4 分钟。

The distinction between mechanism and policy is one of the best ideas behind the Unix design. Most programming problems can indeed be split into two parts:
“what capabilities are to be provided” (the mechanism) and “how those capabilities can be used” (the policy). If the two issues are addressed by different parts of the program, or even by different programs altogether, the software package is much easier to develop and to adapt to particular needs.
机制(mechanism ):
A mechanism is some technical aspect of a larger process or mechanical device, or combination of parts designed to perform a particular function. Sometimes an entire machine may be referred to as a mechanism. Examples are the steering mechanism in a car, or the winding mechanism of a wristwatch. When one of the links of a kinematic chain is fixed, the chain is known as a mechanism.Mechanisms are used to convert between one type of motion and another...
策略(policy ):
A policy is typically described as a deliberate plan of action to guide decisions and achieve rational outcome(s). However, the term may also be used to denote what is actually done, even though it is unplanned.
策略通常描述为一个谨慎的行动计划来引导结果和达到理性的结果。但是通常也用于指示实际完成,尽管是毫无计划的。
不这么羞涩地诠释这个思想的说法是这样的:
对于每一个设备,它的驱动的作用是表达出设备有那些功能,而不是简单地去实现它的功能就完事了。软件工程更倾向于把功能的接口表达出来,让别的应用程序去调用这些接口,而不是像某些菜鸟级程序一样,仅仅地把功能实现但是没有提供任何人去实用的机会。

转载于:https://my.oschina.net/rinehart/blog/61086

你可能感兴趣的文章
阿里技术人的成长路径是什么?
查看>>
你值得拥有!更省钱地完成数据监听
查看>>
漫画 | TCP,一个悲伤的故事
查看>>
张一鸣无圈胜破圈?
查看>>
抓紧!抓紧!CSDN年终重榜福利来了~人手一份,快来投稿!!
查看>>
干货! AI 推断解决方案栈 Vitis AI 全流程独家解析
查看>>
真相了 | 敲代码时,程序员戴耳机究竟在听什么?
查看>>
回首互联网十年,我们能从八次烧钱大战中学到什么
查看>>
漫画:如何辨别二逼互联网公司!?
查看>>
麒麟信安面向场景化创新,赋能openEuler商业验证
查看>>
王者又连跪了?快让 AI 帮你上分!
查看>>
1 分钟带你认识从 "�" 到 "锟斤拷"
查看>>
3 年培养 10 万“码农”,郑州推出“码农计划”
查看>>
一个三本程序猿的大厂逆袭之路
查看>>
程序员弃码投中医?还做成了不错的生意! | 极客视频
查看>>
百度一 29 岁程序员因“篡改数据”被抓
查看>>
去年我年薪 30W,今年我一天做 3 顿饭
查看>>
入职大厂,我容易吗?
查看>>
《互联网人退化简史》
查看>>
CTO 写的低级 Bug 再致网站被黑,CEO 的号都被盗了!
查看>>