ruby

  • Respond in style

    Here's a quick and simple pattern that comes in handy when building simple service objects in Ruby applications. They can be used anywhere in the system to model a command but are commonly found at the boundary between the application domain and the UI layer. In the Rails world, this generally means…

  • Building a MIDI foot controller with Ruby and an Arduino

    I finally managed to get round to doing something constructive with the Arduino I bought a few months back. For a long time I'd wanted a foot controller I could use with Ableton Live. I also fancied having a go at using MainStage for live performances. In my shed I had an old Vox Tonelab LE multi…

  • Refactoring complex methods in Ruby

    We use Apache Solr to handle search queries. If you haven't used Solr before, the principle is that Solr maintains a index of all of our searchable data. We can then retrieve a list of records matching a search query by requesting a url from the Solr server. In its most basic form, the url looks…

Browse all tags