Skip to content

Commit b468c80

Browse files
author
Matt Swanson
committed
add objects on rails writeup
1 parent 77c779f commit b468c80

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

_posts/2012-07-11-objects-on-rails.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: writeup
3+
title: "Objects on Rails"
4+
categories:
5+
- writeup
6+
---
7+
8+
![](/static/objects-on-rails.jpg)
9+
[Objects on Rails: Notes on flexible web application design][link]
10+
Avdi Grimm
11+
12+
---
13+
14+
**What's the point?**
15+
This book takes the form of an "engineer's notebook" and examines a handful of
16+
alternative OO-patterns to make your Rails applications more flexible and maintainable.
17+
18+
**How was it?**
19+
Though at times I felt in over my head, I really enjoyed the book. It was at the perfect
20+
intermediate level that I have been seeking lately. While I didn't fully grok everything,
21+
I can always return to the text when I do encounter some of the more subtle problems.
22+
23+
The patterns discussed - particularly the `Exhibit` pattern - were new to me and the
24+
author did a good job of showing the "before and after" versions to illustrate *why* you
25+
might want to use them.
26+
27+
The sections on isolated, fast unit testing were helpful, though I'm still a bit
28+
uncertain about when to use a `stub` vs `OpenStruct` vs `Object.new`. This is kind of a
29+
trap topic for me, as I find I am sending too much time trying to figure out the
30+
optimal way of doing TDD in Rails - instead of just getting my hands dirty first and
31+
optimizing later.
32+
33+
It was nice to see how topics I was familiar with from other contexts (dependency
34+
injection, aggregate root) fit into a Rails app.
35+
36+
**Who should read it?**
37+
Anyone with interest in the on-going "how to do OO in Rails"; basic-to-intermediate
38+
Rails knowledge required to get the most out of this book
39+
40+
[link]: http://objectsonrails.com/
41+

static/objects-on-rails.jpg

29.3 KB
Loading

0 commit comments

Comments
 (0)