Dropwizard is a rather nice Java REST framework. Although mainly designed
for web services, it can also be used for MVC-style web applications, with dropwizard-views
which supports both FreeMarker and Mustache templates on the front end.
What’s missing out of the box is form-based authentication. The embedded Jetty web server does contain this functionality — but there are a number of steps involved in getting it wired up.
So I decided it was finally time to resurrect this blog and bring it into the 21st century. It’s now powered by Hugo, a static site generator written in Go. I promise there will be a few more posts soon!
If you unit test your code (and I hope you do), you’ll quickly discover that you need to mock out parts of the system. This is much easier if you design with testability in mind from the start of the project. In particular, as you’ll see, you need to be very careful about where you use static classes.