The Art of UNIX Programming (美國原版)

Eric S. Raymond

  • 出版商: Addison Wesley
  • 出版日期: 2003-09-23
  • 售價: $1,925
  • 貴賓價: 9.5$1,829
  • 語言: 英文
  • 頁數: 560
  • 裝訂: Paperback
  • ISBN: 0131429019
  • ISBN-13: 9780131429017
  • 立即出貨

買這商品的人也買了...

相關主題

商品描述

Summary

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.
Operating-system comparisons.
What goes around, comes around.

II. DESIGN.

 

4. Modularity.
Encapsulation and optimal module size.
Compactness and orthogonality.
Libraries.
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.
Applying minilanguages.
Designing minilanguages.

9. Transformation.
Data-driven programming.
Ad-hoc code generation.

10. Configuration.
What should be configurable?
Where configurations live.
Run-control files.
Environment variables.
Command-line options.
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.

III. IMPLEMENTATION.

 

14. Languages.
Unix's Cornucopia of Languages.
Why Not C?
Interpreted Languages and Mixed Strategies.
Language evaluations.
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.
Version-control systems.
Run-time debugging.
Profiling.
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?
Licensing issues.

IV. COMMUNITY.

 

17. Portability.
Evolution of C.
Unix standards.
Specifications as DNA, code as RNA.
Programming for Portability.
Internationalization.
Portability, open standards and open source.
18. Documentation.
Documentation concepts.
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.
20. Futures.
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.
B. References.
C. Contributors.

商品描述(中文翻譯)

《UNIX程式設計的藝術》提出了一個觀點,即了解未寫下的UNIX工程傳統並掌握其設計模式將有助於各種程式設計師成為更好的程式設計師。本書試圖捕捉UNIX、Linux和開源軟體開發社群在過去三十年中演變的工程智慧和設計哲學,以及最有經驗的程式設計師如何應用這些智慧和哲學。

埃里克·雷蒙德(Eric Raymond)為下一代「駭客」提供了一個獨特的機會,通過仔細研究最優秀的UNIX/Linux程式,學習UNIX哲學和實踐之間的聯繫。此外,還有UNIX先驅和暢銷作家布萊恩·克尼漢(Brian Kernighan)、UNIX管道發明者道格·麥克羅伊(Doug McIlroy)、korn shell發明者大衛·科恩(David Korn)、X windows發明者吉姆·蓋蒂斯(Jim Gettys)和基思·帕卡德(Keith Packard)、原始UNIX駭客亨利·斯賓塞(Henry Spencer)、原始BSD開發者和JINI創建者肯·阿諾德(Ken Arnold)、傳奇uucp、lex和tbl程式的作者邁克·萊斯克(Mike Lesk)以及UNIX著名make工具的作者斯圖爾特·費爾德曼(Sturat Feldman)提供評論。

本書分為四個部分。第一部分探討了UNIX開發背後的哲學。第二部分探討了UNIX傳統核心的設計原則和模式。第三部分介紹了UNIX開發者可用的豐富的重用傳統和各種編程工具。第四部分探討了UNIX開放標準過程以及UNIX在可移植性方面的優勢。

《目錄》

1. 哲學。
文化?什麼文化?
Unix的持久性。
反對學習Unix文化的理由。
Unix做錯了什麼。
Unix做對了什麼。
Unix哲學的基礎。

Unix哲學的一個教訓。
應用Unix哲學。
態度也很重要。

2. 歷史。
Unix的起源和歷史,1969-1995。
駭客的起源和歷史,1961-1995。
開源運動:1998年以後。
Unix歷史的教訓。

3. 對比。
作業系統風格的要素。
作業系統比較。
歷史循環。

II. 設計。

4. 模塊化。
封裝和最佳模塊大小。
緊湊性和正交性。
庫。
Unix和面向對象的語言。
為模塊化編程。

5. 文本性。
成為文本的重要性。
數據文件元格式。
應用協議設計。
應用協議元格式。

6. 透明性。
一些案例研究。
設計透明性和可發現性。
設計易於維護性。

7. 多程序設計。
將複雜性控制與性能調優分離。
Unix IPC方法的分類。
要避免的問題和方法。
設計層面的進程劃分。

8. 迷你語言。
語言的分類。
應用迷你語言。
設計迷你語言。

9. 轉換。
數據驅動編程。
臨時代碼生成。

10. 配置。