Silkandspinach - silkandspinach.net - silk and spinach
General Information:
Latest News:
The trouble with passwords 25 Aug 2013 | 06:44 pm
Recently I’ve been using other people’s computers a lot more often, because I’m working away from my home office most of the time. And because of this I noticed a serious flaw in the strategy I had us...
Query actions in Rails controllers 15 May 2013 | 12:04 am
Recently some of my controller actions have taken on a definite new shape. Particularly when the action is a read-only query of the app’s state. Such actions tend to make up the bulk of my apps, and t...
Why shorter methods are better 31 Jan 2013 | 12:40 am
TL;DR Longer methods are more likely to need to change when the application changes. The Longer Story Shorter methods protect my investment in the code, in a number of ways. First: Testability. I expe...
A testing strategy 19 Jan 2013 | 01:51 am
The blog post Cucumber and Full Stack Testing by @tooky sparked a very interesting Twitter conversation, during the course of which I realised I had fairly clear views on what tests to write for a web...
I’m growing a mo 4 Nov 2012 | 10:30 pm
Two years ago the fantastic staff at Macclesfield hospital saved my life. To cut a long story short, my colon burst due to diverticular disease; Mr Khan and Mr Hadjiloucas correctly diagnosed it and o...
The problem with code smells 3 Sep 2012 | 05:41 pm
Like most developers I know, I have used code smells to describe problems in code since I first heard about them. The idea was introduced by Kent Beck in Fowler’s Refactoring back in 1999, and has tak...
Hexagonal rails: Rake tasks are adapters 12 Jul 2012 | 03:53 am
If I’m thinking about my Rails app in terms of a hexagonal architecture, I find it also pays to consider every rake task to be an Adapter. Thus: Picture: @rosieemackenzie The true picture is a littl...
Hexagonal rails: Hiding the finders 7 Jul 2012 | 02:30 am
This is a brief follow-up to the Hexagonal Rails sessions I did last week at the Scottish Ruby Conference with Matt and Steve. We tried to cram a 3-day course into 45 minutes, with inevitable conseque...
The wrong duplication (reprise) 24 Dec 2011 | 04:56 am
I came across this old post again today, and I still like what it has to say: The Wrong Duplication. Maybe I should add a code example…?
Global Day of Coderetreat 17 Nov 2011 | 06:43 am
In case you hadn’t noticed, XP-Manchester is running a Coderetreat as part of the Global Day of Coderetreat on December 3rd 2011. You can find out everything you need to know by visiting our page on ...