Video.javazone.no was just sorta soft launched, a mashup site collecting the videos of talks from JavaZone from 2009 through 2012. As with any project where you don’t have the time you want, there are some things I am happy with, and some things i am, well not so happy about. But overall I am pretty happy.

The site collects a total of 417 talks from 290 speakers over the last four years, and 100 additional talks from the same speakers from other conferences and meetups. The main features are more metadata on the talks, display of session information (abstract, speaker bio etc.) alongside the vimeo video and metadata about the video.

Implementation

The main app is written in Play Framework 1.2.5 and using MongoDB in the backend. The reason for choosing MongoDB is primarily that it is easy to work with (low developer friction) and has enough querying capabilities for this project. And it’s not SQL. The data model also fits pretty well, with little coupling of different objects at the database level. A simple db reference handles it nicely. MongoDB has some, how should I put it, interesting views on data integrity and there are situations where you can lose data running on a single node. The data set for this app is all generated and updated while running, but can be recreated at any time. So losing data isn’t a big deal, and it doesn’t happen that often, either. So I decided MongoDB was a nice fit.

The reason for Play was mainly to test it out and see if it’s a good framework or not, and also to get away from some of the friction of using standard java server frameworks like Spring MVC (or indeed any server toolkit doing it the normal java way, which is tedious and needlessly complicated). Play lends itself quite heavily on the convention over configuration approach and removes a lot of clutter when setting up a simple controller that has responsbility over an URL, fetches some data, feeds that into a template and renders it. The fact that you default can’t run a single test but have to run all tests in a test class is a real PITA. Play has some other mild annoyances too, but generally I am pretty happy with it.

All in all, these things have been involved in the site:

Here’s a little screenshot for you:

Video site screenshot

I collaborated with bjartek on it for a while and as he is a scala/functional programming buff, we tried out a few different techniques. Some using Google Guava and some using Functional Java. This made the codebase a little messy in some parts. The java syntax doesn’t really support it well, either. Will try to clean up that soon. Anyway, if you try the site, I’d love some feedback on it. Just bear in mind that I am no designer :-)

blog comments powered by Disqus

Published

02 October 2012

Tags