View Review Details


Book:   Spring: A Developer's Notebook
Subject:   Gaps in code?
Date:   2005-05-25 08:32:30
From:   cocciag
Rating:  StarStarStarStarStar

The format of these books is great and I was really looking forward to using this latest version, however, it appears that the code examples are insufficient and/or incomplete... An example is in Chapter 1 'Getting started'. When moving from the simple Injector Dependency to the Spring-based Injector Dependency, the text mentions that we just have to replace our assembler with a Spring version and provide a configuration file - there's more to it than that... We need to modify the ArrayListRentABike class, adding a default constructor and accessors for storeName, we need to move the bikes.add() code into the default constructor... And the ant build script doesn't account for the spring.jar classpath, or moving the xyz-context.xml to a place on the classpath.


Of course all these things can be solved relatively easily and quickly, however, they are interference when trying to focus on the issues raised in the text; most of my time gets spent fixing up silly config problems.


Disappointing...

Full Threads Oldest First
  • Gaps in code?,  July 05 2005
    Submitted by Anonymous Reader   [Respond | View]

    I'm in complete agreement that my experience has been frustrating do to all the typos/ommissions that I have to troubleshoot. The point of this series is to focus on actually building some examples not try to guess what's been left out of the text now.



    I left a longer entry on my blog.