Java Extreme Programming Cookbook

Java Extreme Programming Cookbook
Authors
Eric M. Burke, Brian M. Coyner
ISBN
0596003870
Published
01 Mar 2003
Purchase online
amazon.com

Brimming with over 100 "recipes" for getting down to business and actually doing XP, the Java Extreme Programming Cookbook doesn't try to "sell" you on XP; it succinctly documents the most important features of popular open source tools for XP in Java-- including Ant, Junit, HttpUnit, Cactus, Tomcat, XDoclet-- and then digs right in, providing recipes for implementing the tools in real-world environments.

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

KeepItSimple said
I'll keep this short, since I don't think I can say anything not already said. But I just felt like sharing that I loved this book.

Jack D. Herrington said
This is an interesting work because while it does have the cookbook format it isn't really a cookbook. The book starts with an introduction to the XP methodology (which is concise and great), and then has chapters on a number of tools (Ant, JUnit, HTTPUnit, XDoclet, Tomcat, etc.). Each of these technology chapters has a number of 'recipes' which are in fact how-to segments about commonly used tasks around these technologies. Now these sections are great and I think anyone looking at these technologies should consider this book a quick and concise way to learn the fundamentals.

That being said the book fails somewhat, and thus the four stars, because it isn't organized in the problem/solution manner of the cookbooks. Most of the chapters are about testing but these are organized around the tool and not the problem. I would have preferred a section on web development that combined information on Tomcat and Ant, and one on web testing that talked about HTTPUnit, JUnit and Ant. In that way the book addresses problem areas without relying on the reader to understand the tool that would address his problem in addition to understanding his problem at hand.

My gripe is not so critical. The content in the book still remains very valuable and if you are looking for a concise how-to in these Java technologies you should have a look at this book.

Thomas Duff said
If you are starting out in the Extreme Programming (XP) methodology, you will quickly learn the importance of running continual builds and unit tests of your code. And if that process isn't easy and automated, realistically it won't get done. Fortunately, there are a number of open source tools out there that are commonly used to take care of this. The Java Extreme Programming Cookbook will help you understand what those tools are, how they are used, and how to solve some of your common problems with those tools.

This isn't a tutorial on XP. Instead, it concentrates on the tools you need to make XP work for you and become part of your normal development process. In some ways, a more accurate title for this book would be the Java Extreme Programming Tools Cookbook. The format provides a nice basic introduction to each tool, where you can download it from (as well as where to find the complete documentation), and then a number of problem/solution scenarios from basic install to more complex automation tools.

For instance, let's take one of the tools; JUnit. JUnit is a tool that does unit testing on your code. You define a test class as well as test cases that should either pass or fail. Once you have your test class and test cases set up, you can quickly test your code after making changes to make sure that all the results are still accurate. In XP methodology, you actually write your test cases first, and then write the code to make them pass. In that way, your testing drives your coding. This book will give you the overall information on what JUnit is, how to install it, and how to run it. You then run into a number of situations, such as running tests concurrently, repeating tests, testing naming conventions, and organizing tests into test suites. Using the problem/solution layout of the Cookbook series, it's very easy to get the base information you need to stay productive.

If you are brand new to XP or the tool set, you might be a little lost since it's not a "step-by-step" how-to of each tool. It assumes you either have a small amount of working knowledge, or that you'll supplement your knowledge with the tool's documentation. Still, you can't look up what you don't know, and this book made me aware of some tools I didn't know existed. An experienced user of these tools might also gain a few tricks that they didn't know about, and it might be worth it for those tricks alone.

For Websphere developers, you might find that a couple of these tools aren't necessary. For instance, Websphere Studio does your build for you, so Ant isn't as critical as it would be if you were running a J2EE server such as Tomcat. Also, JUnit integrates directly into Websphere Studio, so it's very easy to run that tool in your environment. Even so, having this book will help you expand your horizons.

Conclusion
If you are a Java developer using the XP methodology, get this book to learn the tools you need to make your build and testing process flow correctly. Even if you don't practice XP, the automated build and testing tools will help you to write better code.

Daniel J. Troesser said
I found this book immediately useful. I say immediately because the recipes presented in this book are succinct and to the point. It has already helped me in several consulting assignments.

You don't have to be a die hard believer in all aspects of XP to find this book useful either. If you're a Java developer and you believe in unit testing, this book is worthwhile. It will help you sort through the various tools out there and find the best one for your situation. It will also give you clear explanations and examples of good techniques.

Frank Carver said
This book covers a very similar selection of tools and techniques to "Java Tools for Extreme Programming" by Hightower and Lesiecki, and in a broadly similar way. Both use the currently fashionable idea of Extreme Programming (XP) to attract readers to a collection of short pieces about a bunch of useful tools for Java programming.

The XP stuff is covered quickly at the start, the meat of the book is in the "recipes", which walk you through configuring and using tools such as Ant, JUnit, Cactus etc. to build, unit-test and manage the development of a Java project.

The tools and tips the authors have chosen to include are a good representation of current practice, but I have a few reservations about the organization and structure of the book. My biggest worry is whether the target reader is actually likely to find many solutions. The authors seem to assume that everyone will pore over the several pages of "contents" at the front of the book every time they hit an obstacle, but in my experience they are just as likely to flip through pages or head for the index at the back, neither of which works particularly well. Worse than that, they may never think to look in the book in the first place - the "Extreme Programming" in the title may help it sell, but it's not something that jumps to mind when you are struggling to get Ant to deploy a web application to Tomcat.

That said, I'm glad I've got it, and some of the recipes now have little sticky notes to try and remind me that it's often an unexpectedly good place to look for Java development tips.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”