What I read this week

I read a lot of blog posts throughout the week. This is the first in hopefully a series of posts on what I've been reading. It's intended to be a record for myself, but might also serve to give others context for where I'm coming from.

Hybrid sweet spot: Native navigation, web content

I may not agree with everything DHH says, but I do respect his thinking. And I like a lot of what he says about web application architecture. This article is an interesting defense of web views for mobile applications.

The Single Responsibility Principle

Uncle Bob has a great way of describing SRP, specifically with regards to the idea that modules of code should have only one reason to change. He says to think about "who must the design of the program respond to".

Speeding Up ActiveRecord Tests

Corey Haines loves fast tests. Who doesn't!? Most speaking and writing about fast tests focus on how to decouple your business logic from the libraries and frameworks we love to use. This isn't one of those posts. Corey shows how to test ActiveRecord models that connect to a DB faster than the default Rails way.

Beyond Mock Objects

This is one of those posts I think I'm going to want to read several times. I want this kind of thinking to become second nature. J.B. Rainsberger shows how dependency injection can be a crutch for actual design thinking. I read this article on Friday, and it was a great read in the context of the earlier DHH articles (J.B. shows how thinking about testability with no regard for design can harm the design and what do do about it without giving up on TDD and testability all together) and the Uncle Bob article (the end result is code split up along SRP lines). Read those first.

A Rocket To Nowhere

Old but new to me. A longish read on the failures of the manned space program.

Published on

« On view and controller specs
TDD is a thinking tool »