Updates

Latest Tweet



What's New?

Check out for latest innovation, a computer based training video collection


Like this Page

Java Enterprise Design Patterns: Patterns in Java Volume 3 (With CD-ROM) Review by anonymous

Too many serious coding errors in the samples

I just wanted to vent my displeasure with some of the errors in the code samples in "Java Enterprise Design Patterns (Vol 3)". One specific pattern I tested was the Ephemeral Cache Item pattern (pg. 325). Not just one simple error but some serious flaws in the code (both as printed in the book and as copied on the CD). The background DeletionScheduler thread is not reducing the currentCacheCounter and more problematic is the fact that the run method (on that thread) only enters a while loop if there are no objects in the cache (quite the opposite from what should be happening). As well there are another 2 lines of code in that while loop that had to be moved. I would think a junior or intermediate developer would quickly get frustrated if they tried to implement that code. As for me, well I would definately think twice again before spending my money on a book published by Wiley. I also believe that if Mark Grand is going to put his name as the sole author on a book, he should take the time (or hire a code monkey) to test the code prior to publishing it. JM2C