| help | account  


The Practice of Programming
View Larger Image
Brian Kernighan, Rob Pike
Addison-Wesley, Paperback, Published February 1999, 267 pages, ISBN 020161586X
List Price: $44.99
Our Price: $34.95
You Save: $10.04 (22% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock

Customer Reviews: 2     Average Customer Rating:

Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual programmers more effective and productive.

The practice of programming is more than just writing code. Programmers must also assess tradeoffs, choose among design alternatives, debug and test, improve performance, and maintain software written by themselves and others. At the same time, they must be concerned with issues like compatibility, robustness, and reliability, while meeting specifications.

The Practice of Programming covers all these topics, and more. This book is full of practical advice and real-world examples in C, C++, Java, and a variety of special-purpose languages. It includes chapters on:

  • debugging: finding bugs quickly and methodically
  • testing: guaranteeing that software works correctly and reliably
  • performance: making programs faster and more compact
  • portability: ensuring that programs run everywhere without change
  • design: balancing goals and constraints to decide which algorithms and data structures are best
  • interfaces: using abstraction and information hiding to control the interactions between components
  • style: writing code that works well and is a pleasure to read
  • notation: choosing languages and tools that let the machine do more of the work

Kernighan and Pike have distilled years of experience writing programs, teaching, and working with other programmers to create this book. Anyone who writes software will profit from the principles and guidance in The Practice of Programming.

Contents

  • Preface

  • Chapter 1: Style
          1.1 Names
          1.2 Expressions and Statements
          1.3 Consistency and Idioms
          1.4 Function Macros
          1.5 Magic Numbers
          1.6 Comments
          1.7 Why Bother?

  • Chapter 2: Algorithms and Data Structures
          2.1 Searching
          2.2 Sorting
          2.3 Libraries
          2.4 A Java Quicksort
          2.5 O-Notation
          2.6 Growing Arrays
          2.7 Lists
          2.8 Trees
          2.9 Hash Tables
          2.10 Summary

  • Chapter 3: Design and Implementation
          3.1 The Markov Chain Algorithm
          3.2 Data Structure Alternatives
          3.3 Building the Data Structure in C
          3.4 Generating Output
          3.5 Java
          3.6 C++
          3.7 Awk and Perl
          3.8 Performance
          3.9 Lessons

  • Chapter 4: Interfaces
          4.1 Comma-Separated Values
          4.2 A Prototype Library
          4.3 A Library for Others
          4.4 A C++ Implementation
          4.5 Interface Principles
          4.6 Resource Management
          4.7 Abort, Retry, Fail?
          4.8 User Interfaces

  • Chapter 5: Debugging
          5.1 Debuggers
          5.2 Good Clues, Easy Bugs
          5.3 No Clues, Hard Bugs
          5.4 Last Resorts
          5.5 Non-reproducible Bugs
          5.6 Debugging Tools
          5.7 Other People's Bugs
          5.8 Summary

  • Chapter 6: Testing
          6.1 Test as You Write the Code
          6.2 Systematic Testing
          6.3 Test Automation
          6.4 Test Scaffolds
          6.5 Stress Tests
          6.6 Tips for Testing
          6.7 Who Does the Testing?
          6.8 Testing the Markov Program
          6.9 Summary

  • Chapter 7: Performance
          7.1 A Bottleneck
          7.2 Timing and Profiling
          7.3 Strategies for Speed
          7.4 Tuning the Code
          7.5 Space Efficiency
          7.6 Estimation
          7.7 Summary

  • Chapter 8: Portability
          8.1 Language
          8.2 Headers and Libraries
          8.3 Program Organization
          8.4 Isolation
          8.5 Data Exchange
          8.6 Byte Order
          8.7 Portability and Upgrade
          8.8 Internationalization
          8.9 Summary

  • Chapter 9: Notation
          9.1 Formatting Data
          9.2 Regular Expressions
          9.3 Programmable Tools
          9.4 Interpreters, Compilers, and Virtual Machines
          9.5 Programs that Write Programs
          9.6 Using Macros to Generate Code
          9.7 Compiling on the Fly

  • Epilogue

  • Appendix: Collected Rules

  • Index

    Copyright © 1999 Lucent Technologies. All rights reserved.


    Customer Reviews

    Customer Reviews: 2     Average Customer Rating:

    Nov 7, 2005     V from CA, USA
    a wonderful book to borrow
    The book contains overview of basic data structures and algorithm complexity analysis; some very nuanced insights into C and UNIX programming; helpful introduction to small languages, testing frameworks, and other things that yield lots of abstraction benefit in return for very reasonable effort; good and non-intuitive advice on systematic debugging; and more. Everything is extraordinarily readable, and even an experienced programmer will come across something truly valuable at least every 3 pages. The book is pretty skinny, but every page counts; if you insist on a huge tome anyway, get this book and glue it to a sheaf of printer paper. Not really a reference work like a Nutshell from O'Reilly, so if you're a skinflint it's best to borrow it from an obliging co-worker. (Thanks, Dave!!!)

    Aug 31, 1999     Fred Pamula from Australia
    An interesting book
    This book is well written and covers a lot of different topics. I doubt if all the topics would be new to practicing programmers but most programmers would probably come away learning something from this book.

    One thing I liked about the book was that it is reasonably short.



    Forgot your password?
    FAQs
    Shipping Options
    Returns
    Your Orders
    Your Account