mrjcleaver
#springone2gx looks very interesting. Custom apps for corporates can be rapidly built in Grails, Spring, Vmware & embedded in corp wikiJul 30, 2010 6:45 AM
In this presentation, you will learn how to improve your applications by implementing business logic using a rich domain model. Chris will refactor a procedural design into an object-oriented design and illustrate the benefits of using the object-oriented approach. You will learn how to identify procedural code smells and eliminate them by refactoring your code - something you can start doing the Monday morning after the conference.
Java is an object-oriented language and object-oriented design is considered by many to be a good way to tackle complexity. However, surprisingly many complex enterprise Java applications are written in a procedural style. The business tier consists of fat services and anemic domain models and consequently can be difficult to understand, maintain and test.
In this presentation, you will learn about how to improve your applications by implementing business logic using rich POJO domain model. We will compare and contrast a procedural design with an object-oriented design and describe the benefits of using an object-oriented approach.You will learn how to identify procedural code smells and eliminate them by refactoring your code - something you can start doing the Monday morning after the conference.
A domain model encapsulates data and behavior together into expressive domain objects. Testing is not only important for verifying domain behavior, but also measuring the suitability of the design. In this session, Chris will show you testing techniques that build confidence in your code and help you improve your design.
A rich domain model is an excellent way to organize complex business logic. It can make the code easier to understand and maintain. Using a domain model can even make testing easier. Sadly, many developers do little or no automated testing and so do not fully benefit from using a domain model. The quality of their code gradually declines, development becomes increasingly more difficult and they often have to throw the code away and start over. In this presentation you will learn some simple yet effective ways to test a domain model. We describe how to overcome some of the common obstacles to writing tests. You will learn testing techniques that you can easily apply to your existing domain model.