Decoupling Persistence from your Domain moonmaster9000.tumblr.com
moonmaster9000 — 9 posts
http://github.com/moonmaster9000
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?
ruby v. haskell bit.ly
an algorithmic showdown by a ruby practitioner with declarative aspirations...
A humble attempt to present both the class-variable inheritance gotcha in ruby, as well as several ways around the problem depending upon your needs (mutable or non-mutable class attributes).
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.
