Developing a database driven webapp with Ruby on Rails

I’m always interested when someone claims to develop a working application with minimal amount of coding. This article on the O'Reilly OnLamp.com site shows how to build a webapp using Ruby with the Rails framework. When they say minimal lines of code they really mean it.

Take a look and see what you think. I haven’t used Ruby yet either, but this framework could be a good reason to start learning…

More info on Ruby here, and the home page for Ruby on Rails is here.

Using Mock Objects with EasyMock and Mocquer

OnJava.com have an interesting article about using Easy Mock and Mocquer for using Mock Objects for Unit Testing.

Mock Objects are incredibly useful for Unit Testing in order to test a slice of your application in isolation from the rest of the application. Mock Objects behave as a facade to the rest of your real application but with stubbed out logic (or alternative logic for testing), so you can test an individual piece of code in isolation from other code.

EasyMock is a framework that automatically generates mock object proxies for you from interfaces (so you don’t have to write the mock object yourself by hand), and Mocquer takes this a step further and facilitates the generation against regular classes.