Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

KISS原则—UNIX哲学[0]

Posted on 2023年11月14日 by

KISS是指:Keep It Simple, Stupid!

“简单原则”—-尽量用简单的方法解决问题—-是”Unix哲学”的根本原则

  • 内涵
1.模块原则
使用简洁的接口拼合简单的部件

2.清晰原则
清晰胜于机巧

3.组合原则
设计时考虑拼接组合

4.分离原则
策略同机制分离 接口同引擎分离

5.简洁原则
设计要简洁 复杂度能低则低

6.吝啬原则
除非确无他法 不要编写庞大的程序

7.透明性原则
设计要可见 以便审查和调试

8.健壮性原则
健壮源于透明与简洁

9.表示原则
把知识叠入数据以求逻辑质朴而健壮

10.通俗原则
接口设计避免标新立异

11.缄默原则
如果一个程序没什么好说的,就沉默

12.补救原则
出现异常时 马上退出并给出足够错误信息

13.经济原则
宁花机器一分钟,不花程序员一秒

14.生成原则
避免手工hack,尽量编写程序去生成程序

15.优化原则
雕琢前要有原型,跑之前先学会走

16.多样性原则
决不相信所谓不二法门的断言

17.扩展原则
设计着眼未来 未来总比预想来得快

KISS是UNIX的系统开发哲学,对于linux也是适用。

其本质和《技术的本质》中提到的原则相同,即组合,另外为了实现组合上的复杂性,需要降低模块上的复杂性,使得很容易确定问题,并提高模块的健壮性。这和计算机的硬件部分的原则相同,基本就是搭积木的思想,核心是数学的,即符号的。

 

参考资料:

  1. https://zhuanlan.zhihu.com/p/27851578
  2. http://www.ruanyifeng.com/blog/2009/06/unix_philosophy.html
  3. The Art of UNIX Programming@2003 Eric Raymond
  4. https://www.cnblogs.com/cmt110/p/9263644.html
  5. https://www.cnblogs.com/jiading/articles/12296103.html

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT