{{{ When I started using Rails years ago I found helpers extremely cool. I could call a method in a view and it would _help_ me by doing something. The method was simply there, *no need to worry about its source* and how to access it, just call it. I got older, wiser, and more… Continue reading Rails Misapprehensions: Helpers are shit.
Tag: design patterns
Rails Misapprehensions: The Dependency Injection Pattern
{{{ Inspired by the “Stop hating Java”:http://andrzejonsoftware.blogspot.com/2011/07/stop-hating-java.html post by my friend Andrzej I started to identify the pros and cons of a pattern called _Dependency Injection_ in the Ruby/Rails world. Before I explain the pattern, let me discuss the problem – a dependency. h3. What is a Dependency? Let’s say we’re working in a casual… Continue reading Rails Misapprehensions: The Dependency Injection Pattern