9 of 9 people found the following review helpful:
5.0 out of 5 stars
Using Struts? Buy this book!, October 4, 2003
This review is from: Jakarta Pitfalls: Time-Saving Solutions for Struts, Ant, JUnit, and Cactus (Java Open Source Library) (Paperback)
I have to admit that I am a big fan of antipattern books. There are many ways to code an application but a few of those ways will cause problems in the long run both in debugging and maintenance. This book looks at four of the most popular Jakarta applications, JUnit, Cactus, Struts, and Ant, and shows the most common problems that you encounter when using these applications. The book gives a chapter each to Ant and the two testing applications JUnit and Cactus but the majority of the book is dedicated to Struts.
Each chapter looks at several programming mistakes and then discusses ways to revise your code to fix these mistakes and make your code more robust. The problems with certain coding styles are well explained with clear reasoning as to why you don't want to code a particular way. Corrective solutions are well documented with plenty of code samples to show both before and after images.
Although the chapters on testing and Ant are good, the heart of the book is the chapters on Struts. The authors discuss potential problems using Actions, ActionForms, and the Struts tag library. Some problems can just make your code more difficult to maintain while others can introduce intermittent bugs that are very difficult to diagnose. Anyone who is using Struts should absolutely read these chapters, as it will save you from making some simple mistakes that could cause a lot of long-term pain in your development.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
7 of 8 people found the following review helpful:
2.0 out of 5 stars
The synopsis in the back is the entire book, December 18, 2003
This review is from: Jakarta Pitfalls: Time-Saving Solutions for Struts, Ant, JUnit, and Cactus (Java Open Source Library) (Paperback)
The book is fine, but it in the back is a boiled down synopsis, about 5 pages, that suffices for the entire book. The rest of the book doesn't really add that much. The material here is good, but is available by reading a few white papers and faq's on the web. I didn't dislike the book, I just wish I hadn't spent the money.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
2 of 2 people found the following review helpful:
5.0 out of 5 stars
easy to read and useful, November 20, 2004
This review is from: Jakarta Pitfalls: Time-Saving Solutions for Struts, Ant, JUnit, and Cactus (Java Open Source Library) (Paperback)
If you are working with Struts, Ant, or automated unit testing into your development process,
then this is a book for you.
This book looks at the popular Jakarta applications as
JUnit/Cactus, Struts, and Ant, and shows the most common pitfalls when using
these applications. The book gives
a chapter to Ant and one chapter to JUnit/Cactus and rest to Struts.
Most part of the book is on Struts. The authors discuss potential
problems using Actions, ActionForms, and Struts tag library.
Each pitfall has its own section and is formatted the same as the others.
You get a description of each pitfall, an example of the pitfall in action,
and steps for refactoring it. Corrective solutions are well documented with plenty of code samples
to show both before and after images.
This is a good book on anti-patterns and refactoruing, very good companion of the book <<Rafactorying>> (by Martin Fowler)
and
<<Java Tools for Extreme Programming: Mastering Open Source Tools Including Ant, JUnit, and Cactus>>
(this one covers ant and junit/cactus but not struts)
This book is very readable, some may think it just covers obvious problems, actually, it coveres common pitfalls
that most people forget to escape. It's not a difficult book, but very practical.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No