Rule of Modularity: Write simple parts connected by clean interface
Rule of Clarity: Clarity is better than cleverness
Rule of Composition: Design programs to be connected with other programs.
Rule of the Separation: Separate policy from mechanism; separate interfaces from engines.
Rule of Simplicity: Design for simplicity; add complexity only where you must.
Rule of Parsimony: Write a big program only when it is clear by demonstration that nothing else will do.
Rule of the transparency: Design for visibility to make inspection and debugging easier.
Rule of Robustness: Robustness is the child of transparency and simplicity.
Rule of Representation: Fold knoweledge into data, so program logic can be stupid and robust.
Rule of Least Surprise: In interface design, always do the least surprising thing.
Rule of Silence: When a program has nothing surprising to say, it should say nothing.
Rule of Repair: Repair what you can--but when you must fail, fail noisily and as soon as possible.
Rule of Economy: Programmer time is expensive; conserve it in preference to machine time.
Rule of Generation: Avoid hand-hacking; write programs to write programs when you can.
Rule of Optimization: Prototype before polishing. Get it working before you optimize it.
Rule of Diversity: Distrust all claims for "one true way".
Rule of Extensibility: Design for the future, because it will be here sooner than you think.
All these rules are from the book:
The art of UNIX Programming, written by Eric S. Raymond.
分享到:
相关推荐
"Stephen Rago's update is a long overdue benefit to the community of professionals using the versatile family of UNIX and UNIX-like operating environments. It removes obsolescence and includes newer ...
【UNIX操作系统概述】 UNIX操作系统是计算机科学领域中最具有影响力的操作系统之一,自1960年代末诞生以来,它在科研、工程、教育和商业应用中扮演着重要角色。本章将详细介绍UNIX操作系统的基础知识、历史发展、...
Differential Equations are somewhat pervasive in the description of natural phenomena and the theory of Ordinary Differential Equations is a basic framework where concepts, tools and results allow a ...
And yet, it does all this while retaining the style and taste of the original classic."--Mukesh Kacker, cofounder and former CTO of Pronto Networks, Inc."One of the essential classics of UNIX ...
The book is fully up-to-date with the 10.4 (Tiger) release of OS X which is built on top of a UNIX system. Building upon Mark Sobell's A Practical Guide to the UNIX System, this book provides step-by...
Presented in this paper is the design philosophy employed for the construction of DIESTRO, an isotropic, six-axis, serial manipulator. The kinematic criteria applied so far in manipulator design have ...
UNIX, Third Edition 版本: The Textbook 3rd Edition By 作者: Syed Mansoor Sarwar – Robert M. Koretsky ISBN-10 书号: 1482233584 ISBN-13 书号: 9781482233582 Edition 版本: 3 出版日期: 2016-11-04 pages ...
"Stephen Rago's update is a long overdue benefit to the community of professionals using the versatile family of UNIX and UNIX-like operating environments. It removes obsolescence and includes newer ...
With more and more systems being run under UNIX and Linux, the ability to program and customize the shell quickly and reliably to get the best out of any individual system is becoming a more and more ...
In the early days of computer science, the interactions of hardware, software, compilers, and operating system were simple enough to allow students to see an overall picture of how computers worked....
author of First Aid for the USMLE Step 1First Aid for the Basic Sciences: Organ Systems, 2e provides you with a solid understanding of the basic sciences relative to human organ systems with which ...
Linux是一种广泛使用的开源类Unix操作系统,其内核由林纳斯·托瓦兹(Linus Torvalds)在1991年首次发布,旨在提供与Unix相兼容的操作系统。Linux系统以其稳定性和灵活性受到个人用户、企业和开发者的一致好评。以下...
A repo for people who wish to learn the basic of c++ coding in Linux.
Beginning with the description of operating system in general the book discusses features that made Unix the most suitable operating system of its time. An overview of file management in Unix and ...
understanding of the basic setup and solution procedures. Some steps will not be shown explicitly. This tutorial uses the mixture fraction/PDF model with the k-epsilon turbulence model and P-1 ...
Using the 0.11 edition source code as a representation of the Linux basic design, the book illustrates the real states of an operating system in actual operations. It provides a complete, systematic ...
A_basic_configuration_of_A_project_for_the_MSPM0L1_MSPM0L1106-basic-MSPM0L1106-basic-RUST-CONFIG_A_basic_configuration_of_a_project_for_the_MSPM0L1_MSPM0L1306-BASIC-RUST-CONFIG.zipRUST-CONFIG_A_basic_...