Decoupling Persistence from your Domain moonmaster9000.tumblr.com
moonmaster9000 — 9 posts
Continuing my series of posts comparing and contrasting the dynamically-typed imperative language Ruby with the strongly-typed declarative language Haskell, I’ll now examine the abilities of these languages to create mutually recursive data structures.
It's no secret that declarative languages falter when it comes to IO and "side-effects"; so how does Haskell fair against Ruby for a script that converts text files to unix style line endings?
Dupe 0.5.1 includes POST, PUT, and DELETE mocking for ActiveResource (ideal for Cucumber testing) github.com
I released Dupe 0.5.1 over the weekend, it includes support for mocking the full life cycle of an ActiveResource object (create, find, update, delete).
If you're going to create a service oriented rails app with ActiveResource, why not cuke the frontend first, letting the frontend drive the services you'll eventually create in the backend service provider? Dupe is the factory-girl of services, and makes outside-in BDD with cucumber possible for a service oriented app. Get gem installation instructions and an overview of the features or check out an in-depth tutorial that takes you through the cuking process with dupe.