Monthly Archives: July 2010

How to learn spring quickly !!

1.Use an interesting  reference book like   Spring Recipes by Apress publication.Book presentation is based on  Problem and Solution approach.(Author asks a question and then writes his solution).This approach makes book interesting. 2.Use Spring ROO tool ( -to quickly create … Continue reading

Posted in Uncategorized | 1 Comment

Strategy pattern with a game of Cards

I have to design a game of Cards .This game has multiple flavours (like real card games where each game of cards has their own rule ) .Here I have two flavours with these rules – Rule for flavour A- … Continue reading

Posted in Design | Leave a comment

Design : putting domain constraint at right place

A common question arises where to put Domain constraints ? Of course in domain object but where ? Most suitable place is constructor .Suppose I have a square grid – a position in grid is represented by x,y  – lower left … Continue reading

Posted in Design | Leave a comment