Code Craft: The Practice of Writing Excellent Code

  • 13h 26m
  • Pete Goodliffe
  • No Starch Press
  • 2007

You know how to write code that works, but what about code that's well written and easy to understand? And robust and bug-free? If other programmers looked at your handiwork, would they be able to figure out the code's logic and purpose? Exceptional programmers have more than just technical know-how; they adopt the right approach and attitude to development.

Code Craft will help take your programming beyond writing correct code to writing great code, thus turning you into a true programming professional or enhancing your existing professional skills.

With language-agnostic advice that's relevant to all developers, Code Craft covers code-writing concerns such as presentation style, variable naming, error handling, and security. And it tackles broader, real-world programming issues like effective teamwork, development processes, and documentation. Each chapter ends with a Q&A section that reviews key concepts to get you thinking like an expert, making it an especially great reference for newer programmers who want to work professionally and efficiently as part of a team.

This survival guide for the software factory will show you how to:

  • Write good code when the world's not helping you
  • Avoid disasters and distractions in the workplace
  • Assess your abilities accurately and determine ways to improve
  • Adopt productive attitudes and follow best practices

There's little more valuable than the advice of a true, programming professional. You'll find Code Craft to be clear, practical, and entertaining throughout, and a great way to take your code (and your career) to the next level.

About the Author

Pete Goodliffe is an expert software developer who never stays at the same place in the software food chain; he’s worked in numerous languages on diverse projects. He also has extensive experience in teaching and mentoring programmers, and writes the regular “Professionalism in Programming” column for ACCU’s C Vu magazine.

In this Book

  • On the Defensive—Defensive Programming Techniques for Robust Code
  • The Best Laid Plans—The Layout and Presentation of Source Code
  • What’s in a Name?—Giving Meaningful Things Meaningful Names
  • The Write Stuff—Techniques for Writing “Self-Documenting” Code
  • A Passing Comment—How to Write Code Comments
  • To Err is Human—Dealing with the Inevitable—Error Conditions in Code
  • The Programmer’s Toolbox—Using Tools to Construct Software
  • Testing Times—The Black Art of Testing Code
  • Finding Fault—Debugging: What to Do When Things Go Wrong
  • The Code that Jack Built—Mechanisms to Turn Source Code into Executable Code
  • The Need for Speed—Optimizing Programs and Writing Efficient Code
  • An Insecurity Complex—Writing Secure Programs
  • Grand Designs—How to Produce Good Software Designs
  • Software Architecture—Laying the Foundations of Software Design
  • Software Evolution or Software Revolution?—How Does Code Grow?
  • Code Monkeys—Fostering the Correct Attitude and Approach to Programming
  • Together We Stand—Teamwork and the Individual Programmer
  • Practicing Safe Source—Source Control and Self-Control
  • Being Specific—Writing Software Specifications
  • A Review to a Kill—Performing Code Reviews
  • How Long is a Piece of String?—The Black Art of Software Timescale Estimation
  • Recipe for a Program—Code Development Methodologies and Processes
  • The Outer Limits—The Different Programming Disciplines
  • Where Next?—All’s Well That Ends Well
  • Bibliography
SHOW MORE
FREE ACCESS