What kind of woman would your web framework be?
Struts
![]()
If Struts was a woman, she would probably be around their 40s. She is mature and has a lot of experience, but she has lost her glamour and her good looks. Everything still kind of works, but not ‘like it used to’. Young new JEE developers don’t want anything to do with her and try to stay away. But the older mature managers still have feelings for her and long back to when she was young and the world was a better place.
Category: Java Programming | Tags: girl, web framework, woman | Comments (16)Learn to use Dependency Injection
Recently I placed a comment on this interesting blog from Uncle Bob Martin (Robert C. Martin). It contains a brief description on how I teach people how to use the Spring Framework.
Now, by popular demand (one person requested it over Twitter), I’ll guide you through the method and examples I use in this blogpost. It explains why people should use frameworks like Spring and/or Google Guice, and how.
Category: Java Programming | Tags: dependency injection, google guice, pattern, spring | Comment (1)Splitting up Spring Web Flow & Facelets into JARs
In our current project we want to have multiple Spring Web Flow-flows in one WAR-file. But we also want the flows and pages to be inside seperate JAR files, making the application a bit more managable and modulair.
This sounds straightforward but it took quite a bit of code and time…
Category: Java Programming | Tags: contextresource, facelets, jar, jsf, spring web flow | Comment (1)Cleaner code: Inversion of logic
Design patterns
Almost all programmers have heard about and used design patterns. And there are a lot of them. Famous design patterns include the Singleton, Observer, Template method. These are all patterns that focus on objects and the relationship between them.
There are more groups of patterns, for example take Dependency Injection (or Inversion of Control). This is an architectural pattern. They tell you things about the design of the whole program. And there are specific pattern groups, like concurrency patterns.
These patterns help you solve common problems in a well defined way, other programmers will recognise the patterns used and it will help produce more maintainable code.
Category: Java Programming | Tags: design pattern, inversion of logic, Java Programming, programming | Comment (1)Java EE 6 released, including Servlet 3.0
Today marks the release of Java EE 6. The reference implementation (Glassfish V3) has been released and the specifications are going into their final state very soon.
About two years ago, while I was attending the JavaOne conference, I first heard about the Servlet 3.0 ideas. As a web developer I’ve worked a lot with these Servlets so I was curious about the ideas. But what I saw wasn’t what I hoped for. On the contrary, what I saw was a huge mistake in my opinion!
Continue reading »