Home > Store > Operating Systems, Server > Linux/UNIX/Open Source

larger cover

Add To My Wish List

Art of UNIX Programming, The

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Extras
  • Sample Content

"Reading this book has filled a gap in my education. I feel a sense of completion, understand that UNIX is really a style of community. Now I get it, at least I get it one level deeper than I ever did before. This book came at a perfect moment for me, a moment when I shifted from visualizing programs as things to programs as the shadows cast by communities. From this perspective, Eric makes UNIX make perfect sense."
--Kent Beck, author of Extreme Programming Explained, Test Driven Development, and Contributing to Eclipse

"A delightful, fascinating read, and the lessons in problem-solvng are essential to every programmer, on any OS."
--Bruce Eckel, author of Thinking in Java and Thinking in C++

Writing better software: 30 years of UNIX development wisdom

In this book, five years in the making, the author encapsulates three decades of unwritten, hard-won software engineering wisdom. Raymond brings together for the first time the philosophy, design patterns, tools, culture, and traditions that make UNIX home to the world's best and most innovative software, and shows how these are carried forward in Linux and today's open-source movement. Using examples from leading open-source projects, he shows UNIX and Linux programmers how to apply this wisdom in building software that's more elegant, more portable, more reusable, and longer-lived.

Raymond incorporates commentary from thirteen UNIX pioneers:

  • Ken Thompson, the inventor of UNIX.
  • Ken Arnold, part of the group that created the 4BSD UNIX releases and co-author of The Java Programming Language.
  • Steven M. Bellovin, co-creator of Usenet and co-author of Firewalls and Internet Security.
  • Stuart Feldman, a member of the Bell Labs UNIX development group and the author of make and f77.
  • Jim Gettys and Keith Packard, principal architects of the X windowing system.
  • Steve Johnson, author of yacc and of the Portable C Compiler.
  • Brian Kernighan, co-author of The C Programming Language, The UNIX Programming Environment, The Practice of Programming, and of the awk programming language.
  • David Korn, creator of the korn shell and author of The New Korn Shell Command and Programming Language.
  • Mike Lesk, a member of the Bell Labs development group and author of the ms macro package, the tbl and refer tools,lex and UUCP.
  • Doug McIlroy, Director of the Bell Labs research group where UNIX was born and inventor of the UNIX pipe.
  • Marshall Kirk McKusick, developer of the 4.2BSD fast filesystem and a leader of the 4.3BSD and 4.4BSD teams.
  • Henry Spencer, a leader among early UNIX developers, who created getopt, the first open-source string library, and a regular-expression engine used in 4.4BSD.

Index

Download the Index file related to this title.

Sample Pages

Download the sample pages (includes Chapter 1 and Index)

Table of Contents

I. CONTEXT.

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.

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

 
Best Value

Book + eBook Bundle  $89.98  $58.99

Book Price: $44.99
eBook Price: $14.00

Add To Cart

This book includes Instant Online Access with Safari and free shipping!

Instant Online Access with Safari Books Online

With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.

Add To Cart

Book  $49.99  $44.99

Usually ships in 24 hours.

This book includes Instant Online Access with Safari and free shipping!

Instant Online Access with Safari Books Online

With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.

Add To Cart

eBook (Watermarked)  $39.99  $35.99

About Watermarked eBooks

This PDF is easy to download and read -- no passwords or activation required. We customize your PDF by watermarking each page with your name in the lower right corner.

Your PDF will be accessible from your Account page after purchase and requires the free Adobe® Reader® software to read it.

We respect your choice for easy-to-use digital content and hope in return you will respect the hard work that went into producing it.

Watermarked PDF FAQ.

Safari Books Online

What is this?

Safari Books Online

Online access to books, videos, and tutorials from Addison Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media and others - starting as low as $22.99. Learn more and start a free trial.

Start Reading Online
Informit Network