The Art of UNIX Programming(美國原版)
Eric S. Raymond
- 出版商: Addison-Wesley
- 出版日期: 2003-10-03
- 售價: $1,925
- 貴賓價: 9.5 折 $1,829
- 語言: 英文
- 頁數: 560
- 裝訂: Paperback
- ISBN: 0131429019
- ISBN-13: 9780131429017
The Art of UNIX Programming poses the belief that understanding the unwritten UNIX engineering tradition and mastering its design patterns will help programmers of all stripes to become better programmers. This book attempts to capture the engineering wisdom and design philosophy of the UNIX, Linux, and Open Source software development community as it has evolved over the past three decades, and as it is applied today by the most experienced programmers.
Eric Raymond offers the next generation of “hackers” the unique opportunity to learn the connection between UNIX philosophy and practice through careful case studies of the very best UNIX/Linux programs. In addition, commentary is provided by Brian Kernighan, UNIX pioneer and best-selling author; Doug McIlroy, the inventor of the UNIX pipg; David Korn, the inventor of the korn shell; Jim Gettys and Keith Packard, inventors of X windows; Henry Spencer, an original UNIX hacker; and Ken Arnold, an original BSD developer and JINI creator; Mike Lesk, author of the legendary uucp, lex, and tbl programs; and Sturat Feldman, author of UNIX's famous make utility.
The book is divided into 4 parts. Part I explores the philosophy behind the development of UNIX. Part II explores design principles and patterns that are at the core of the UNIX tradition. Part III covers the rich UNIX tradition of reuse and the amazing variety of programming tools available to the UNIX developer. Part IV explores the UNIX open standards process, and the advantage in portability that UNIX enjoys.
Table of Contents
1. Philosophy.Culture? What culture?
The durability of Unix.
The case against learning Unix culture.
What Unix gets wrong.
What Unix gets right.
Basics of the Unix philosophy.
The Unix philosophy in one lesson.Applying the Unix philosophy.
Attitude matters too.
2. History.Origins and history of Unix, 1969-1995.
Origins and history of the hackers, 1961-1995.
The open-source movement: 1998 and onward.
The lessons of Unix history.
3. Contrasts.The elements of operating-system style.
What goes around, comes around.
4. Modularity.Encapsulation and optimal module size.
Compactness and orthogonality.
Unix and object-oriented languages.
Coding for modularity.
5. Textuality.The Importance of Being Textual.
Data file metaformats.
Application protocol design.
Application protocol metaformats.
6. Transparency.Some case studies.
Designing for transparency and discoverability.
Designing for maintainability.
7. Multiprogramming.Separating complexity control from performance tuning.
Taxonomy of Unix IPC methods.
Problems and methods to avoid.
Process partitioning at the design level.
8. Minilanguages.Taxonomy of languages.
9. Transformation.Data-driven programming.
Ad-hoc code generation.
10. Configuration.What should be configurable?
Where configurations live.
How to choose among configuration-setting methods.
On breaking these rules.
11. Interfaces.Applying the Rule of Least Surprise.
History of interface design on Unix.
Evaluating interface designs.
Tradeoffs between CLI and visual interfaces.
Transparency, expressiveness, and configurability.
Unix interface design patterns.
Applying Unix interface-design patterns.
The Web browser as universal front end.
Silence is golden.
12. Optimization.Don't just do something, stand there!
Measure before optimizing.
Non-locality considered harmful.
Throughput vs. latency.
13. Complexity.Speaking of complexity.
A Tale of Five Editors.
The right size for an editor.
The right size of software.
14. Languages.Unix's Cornucopia of Languages.
Why Not C?
Interpreted Languages and Mixed Strategies.
Trends for the Future.
Choosing an X toolkit.
15. Tools.A developer-friendly operating system.
Choosing an editor.
Special-purpose code generators.
Make in non-C/C++ Development.
Emacs as the universal front end.
16. Re-Use.The tale of J. Random Newbie.
Transparency as the key to re-use.
From re-use to open source.
The best things in life are open.
Where should I look?
What are the issues in using open-source software?
Evolution of C.
Specifications as DNA, code as RNA.
Programming for Portability.
Portability, open standards and open source.
The Unix style.
The zoo of Unix documentation formats.
The present chaos and a possible way out.
The DocBook toolchain.
How to write Unix documentation.
19. Open Source.
Unix and open source.
Best practices for working with open-source developers.
The logic of licenses: how to pick one.
Why you should use a standard license.
Varieties of Open-Source Licensing.
Essence and accident in Unix tradition.
Problems in the design of Unix.
Problems in the environment of Unix.
Problems in the culture of Unix.
Reasons to believe.
A. Glossary of Abbreviations.