or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
32 used & new from £20.42

Have one to sell? Sell yours here
 
   
Code Craft: The Practice of Writing Excellent Code
 
See larger image
 

Code Craft: The Practice of Writing Excellent Code (Paperback)

by Pete Goodliffe (Author)
3.5 out of 5 stars  See all reviews (2 customer reviews)
RRP: £35.49
Price: £33.72 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.77 (5%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.

Only 1 left in stock--order soon (more on the way).

Want guaranteed delivery by Thursday, February 11? Choose Express delivery at checkout. See Details
23 new from £20.42 9 used from £24.35

Frequently Bought Together

Customers buy this book with Beautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly)) by Andy Oram

Code Craft: The Practice of Writing Excellent Code + Beautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly))
Price For Both: £54.42

Show availability and delivery details


Customers Who Bought This Item Also Bought


Product details

  • Paperback: 624 pages
  • Publisher: NO STARCH PRESS; 1 edition (18 Dec 2006)
  • Language English
  • ISBN-10: 1593271190
  • ISBN-13: 978-1593271190
  • Product Dimensions: 22.9 x 18 x 4.3 cm
  • Average Customer Review: 3.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon.co.uk Sales Rank: 578,635 in Books (See Bestsellers in Books)
  • See Complete Table of Contents

Customers Viewing This Page May Be Interested in These Sponsored Links

  (What is this?)
   English Work Sheets opens new browser window
www.EdPlace.co.uk/English  -  For All Key Stage Levels & SATs Learning Tools To Get Top Results!
   Making The opens new browser window
Shoppingedge.com  -  Compare Making The Prices Cosmetic at ShoppingEdge.com
   Exam Excellent opens new browser window
Ask.com  -  Search for Exam Excellent Find Exam Excellent
  
 

Product Description

Product Description

Many programmers know how to write correct code - code that works. But not all know how to craft great code - code that is well written and easy to understand. "Code Craft" teaches programmers how to move beyond writing correct code to writing great code. The book covers code writing concerns, including code presentation style, variable naming, error handling, and security; and the wider issues of programming in the real world, such as good teamwork, development processes, and documentation. "Code Craft" presents language-agnostic advice that is relevant to all developers, from an author with loads of practical experience. A Q&A section at the end of each chapter helps readers to review the material and makes the book suited for academic use as well.

About the Author

Pete Goodliffe is a senior software engineer, currently working on embedded systems in C++. He never stays at the same place in the software food chain; from bringing new systems up, writing device drivers, through OS implementation, audio codecs, JVM implementation, to MIDI sequencing applications. He writes a regular column for accu.org called Professionalism in Programming and has published articles on software development in Hardcopy, C/C++ Users Journal, and Dr Dobb's Journal.

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
programming
best practices
software development
computer programming
refactoring
programming books
no

Your tags: Add your first tag
 

What Do Customers Ultimately Buy After Viewing This Item?


 

Customer Reviews

2 Reviews
5 star:
 (1)
4 star:    (0)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.5 out of 5 stars (2 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
9 of 12 people found the following review helpful:
5.0 out of 5 stars A First Class Guide For Developers of all Levels, 8 Feb 2007
By G. Mead "Ged Mead" (UK) - See all my reviews
(REAL NAME)   
I came across an excerpt from this book, thought it might be an interesting browse and so got hold of a copy. It turned out to be far more than that, far better than I had even anticipated.

First of all, it is an easy and enjoyable read - and that isn't a description you can give to many books that delve into technical theories and topics! The reason is that, not only is it well written in clear language, his subtle, gentle humour succeeds in turning what could so easily be a long, boring dry list of do's and dont's into a very interesting and satisfying book.

The author comes from a C language background and uses this for the examples, but - even though VB is my particular language of choice - I didn't find the use of C to be a problem at all. The examples are generally quite short and the logic or the point being made is always clear to see.

Although a huge amount of research has clearly gone into the writing of this book, it is always obvious that most of the examples are from his own personal experience. For me, this added value and credibility to the points that are being made.

I read this book from cover to cover, (and that's not something I usually do) and have already taken many of his suggestions on board. I know that I will go back to it again and again in the future.

This is a really first class book that fully delivers on its promise (again an achievement not shared by all technical books!). If you take the time and trouble to read it and assimilate the guidance it will certainly help you to write excellent code.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
2 of 3 people found the following review helpful:
2.0 out of 5 stars Some useful stuff, but mostly obvious. Needs a technical editor., 12 Dec 2009
Most of the stuff here is obvious, so only for a neophyte. There's stuff which as a programmer of 30+ years experience, I simply disagree with - maximising the number of source files in a project for instance.

Some of the examples are just bad - take a look at the following code: (it's in c and I've had to change the layout slightly)



1 #include <stdio.h>
2
3 int main(int argc,char **argv)
4 {
5 int low, high, div, gcd =0 ;
6 low =atoi(argv[1]);
7 high =atoi(argv[2]);
8
9 printf("Finding GCD for %d and %d\n",low,high);
10
11 for (div=low; div > 0; --div)
12 {
13 if ((low % div == 0) && (high %div == 0))
14 if (gcd < div)
15 gcd=div;
16 }
17 printf("gcd=%d\n", gcd);
18 }


The author says that there's a mistake, and he's right, but it's not the mistake he thinks it is!
In fact, I can see at least 2 mistakes, in such a small piece of code. The author thinks that the problem is input validation - ie what do you do if a zero is entered? Well actually, that's not really a problem - the program will run OK, and simply decide that zero is the GCD. What I'd see as a problem is that the return is in the wrong place - if you're looking for the _greatest_ common divisor, then you'd exit after finding the first occurrence. With largeish numbers, that could save a lot of effort. As it is, the program will find the lowest common divisor, but ignore it as it will be > gcd. In a book about coding style to put in such an awful piece of code is stunning. What about the case of no common divisor (other than 1 - ie the numbers are coprime)? I suppose returning 1 is acceptable - this is only a trivial example, after all.

It should read:
13: if ((low % div==0) && (high %div ==0))
14: return div ;

PS Ignore my formatting as amazon cuts tabs.

Write his code for me and you're fired!
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

   


Listmania!


Look for similar items by category


Look for similar items by subject


Feedback


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.