- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
开源数控EMC2用户手册第 1 章 前言 ForewordEMC2 is modular and flexible. These attributes lead many to see it as a confusing jumble of littlethings and wonder why it is the way it is. This page attempts to answer that question before youget into the thick of things. EMC2是模块化设计的,柔性很强。很多人都觉得它是由一些令人迷惑的小东西堆叠而成,很奇怪它是怎样做到的。那么在进入实质内容以前,让我们首先试图回答这个问题。EMC started at the National Institute of Standards and Technology in the USA. It grew up usingUnix as it’s operating system. Unix made it different. Among early Unix developers there grew a setof code writing ideas that some call the Unix way. These early EMC authors followed those ways. EMC项目起源于NIST(美国国家标准与技术研究院)。它起初是在Unix操作系统下运行的,这使它与众不同。早期Unix开发者规定了一些代码编写的原则或方法,称为Unix编程方法(Unix way),EMC项目的作者们遵循了这些方法。Eric S. Raymond, in his book The Art of Unix Programming, summarizes the Unix philosophyas the widely-used engineering philosophy, Keep it Simple, Stupid (KISS Principle).He then describes how he believes this overall philosophy is applied as a cultural Unixnorm, although unsurprisingly it is not difficult to find severe violations of most of thefollowing in actual Unix practice:* Rule of Modularity: Write simple parts connected by clean interfaces.* Rule of Clarity: Clarity is better than cleverness.* Rule of Composition: Design programs to be connected to other programs.* Rule of Separation: Separate policy from mechanism; separate interfaces from engines. Eric S. Raymond在他的著作《The Art of Unix Programming》中把Unix的哲学上升为普遍适用的工程哲学,即“KISS原则”(Keep it Simple, Stupid)(保持简单化、傻瓜化)。然后他描述了这个KISS原则和Unix规范之间的文化纽带,尽管他也明明知道在Unix的编程实践中找到违反这些规则的例子代码也是不困难和不令人惊奇的。 模块化原则:写出具有清晰接口的简单模块。 简洁性原则:简洁比聪明更重要。 组合性原则:设计程序是为了和其它程序对接。 分离性原则:把策略从机制中分离出来,把接口从上分离出来。(译者注:这句太难懂了,个人理解:从面向对象的角度说,就是把解决问题的方法和问题本身分离,也就是方法和数据分离;然后把接口从方法中分离出来。)Mr Raymond offered several more rules but these four describe essential characteristics of the EMC2motion control system. Raymond先生还提出了一些其它的原则,但这四个原则就是EMC2运动控制系统最重要的特征。The Modularity rule is critical. Throughout these handbooks you will find talk o
文档评论(0)