mhtmaunix.blog.chinaunix.net
maunix
全部博文(136)
Chapter17(1)
Chapter16(0)
Chapter15(0)
Chapter14(6)
Chapter13(0)
Chapter12(0)
Chapter11(0)
Chapter10(3)
Chapter9(7)
Chapter8(0)
Chapter7(0)
Chapter6(0)
Chapter5(0)
Chapter4(0)
Chapter3(5)
Chapter2(11)
Chapter1(0)
Refactoring(1)
Shell Programmin(4)
ch1(1)
ch2(11)
2013年(1)
2011年(135)
neunix
silverwa
Bsolar
small_ma
onlinedo
angleisc
nianhuax
bl竹子
zlonghun
richard2
分类: Delphi
2011-03-29 11:19:11
These philosophical principles aren't just vague generalities. In the Unix world they come straight from experience and lead to specific prescriptions, some of which we've already developed above. Here's a by no means exhaustive list:
Everything that can be a source- and destination-independent filter should be one.
Data streams should if at all possible be textual (so they can be viewed and filtered with standard tools).
Database layouts and application protocols should if at all possible be textual (human-readable and human-editable).
Complex front ends (user interfaces) should be cleanly separated from complex back ends.
Whenever possible, prototype in an interpreted language before coding C.
Mixing languages is better than writing everything in one, if and only if using only that one is likely to overcomplicate the program.
Be generous in what you accept, rigorous in what you emit.
When filtering, never throw away information you don't need to.
Small is beautiful. Write programs that do as little as is consistent with getting the job done.
上一篇:TAOUP: Basic Rules of Unix Philosophy
下一篇:Pragmatic Unit Testing(2): Your First Unit Test
登录 注册