Rhnh - rhnh.net - Xavier Shay's Blog
General Information:
Latest News:
Ruby Style Guide 4 Jul 2013 | 11:08 pm
My coding style has evolved over time, and has always been something I kept in my head. This morning I tried to document it explicitly, so I can point offending pull requests at it. My personal Ruby S...
Writing About Code 29 Jun 2013 | 11:02 pm
I wrote some words about The Mathematical Syntax of Small-step Operational Semantics It’s the latest in a sequence of experiments on techniques for presenting ideas and code, xspec being another that...
How I Test Rails Applications 20 Dec 2012 | 07:44 am
The Rails conventions for testing provide three categories for your tests: Unit. What you write to test your models. Integration. Used to test the interaction among any number of controllers. Funct...
How I Test Rails Applications 20 Dec 2012 | 07:44 am
The Rails conventions for testing provide three categories for your tests: Unit. What you write to test your models. Integration. Used to test the interaction among any number of controllers. Funct...
Blocking (synchronous) calls in Goliath 10 Dec 2012 | 02:45 am
Posting for my future self. A generic function to run blocking code in a deferred thread and resume the fiber on completion, so as not to block the reactor loop. Usage
Blocking (synchronous) calls in Goliath 10 Dec 2012 | 02:45 am
Posting for my future self. A generic function to run blocking code in a deferred thread and resume the fiber on completion, so as not to block the reactor loop. Usage
Form Objects in Rails 3 Dec 2012 | 05:53 am
For a while now I have been using form objects instead of nested attributes for complex forms, and the experience has been pleasant. A form object is an object designed explicitly to back a given form...
Form Objects in Rails 3 Dec 2012 | 05:53 am
For a while now I have been using form objects instead of nested attributes for complex forms, and the experience has been pleasant. A form object is an object designed explicitly to back a given form...
Poniard: a Dependency Injector for Rails 26 Nov 2012 | 01:27 am
I just open sourced poniard, a dependency injector for Rails. It’s a newer version of code I posted a few weeks back that allows you to write controllers using plain ruby objects: This makes it possi...
Poniard: a Dependency Injector for Rails 26 Nov 2012 | 01:27 am
I just open sourced poniard, a dependency injector for Rails. It’s a newer version of code I posted a few weeks back that allows you to write controllers using plain ruby objects: This makes it possi...