on.code && such
About Book Reviews Categories Archives
  • Ruby Block Precedence: An Rspec Gotcha

    Nov 1, 2013 • Ylan Segal • rspec, ruby, tdd

    Recently I came across a spec that didn’t seem to be executing the assertion block passed in to the raise_error expectation. Leaving the bare essentials for the example:

    Read on →

  • DelayedJob Workers Are Not Thread Safe

    Sep 11, 2013 • Ylan Segal • jruby, delayed_job, threading, most_popular

    I love DelayedJob. It’s my go-to-gem for background processing in Rails, mainly because it works with whatever data store your project already has in place. No need to bring a different dependency just for background processing. However, using Delayed::Worker in threads is problematic.

    Read on →

  • Exercism: Practice Your Coding Technique

    Aug 16, 2013 • Ylan Segal • ruby

    Perfect practice makes perfect

    Read on →

  • Conway's Game Of Life

    Jul 16, 2013 • Ylan Segal • ruby

    I recently read a blog post recently about Conway’s Game Of Life: Since I had not written an implementation myself, I decided to give it a go.

    Read on →

  • Testing With Multiple Ruby And Gem Versions

    Jun 21, 2013 • Ylan Segal • rvm, rspec

    I found myself writting a gem for internal use that needed to run in several different ruby versions and MRI. In addition, the projects that it would be used in had other dependencies which also meant that it would need to function with different versions of dependencies. Here is how I ensured I was testing all scenarios.

    Read on →

« Older Newer »

© 2012-2025 Ylan Segal - Terms of Service - Powered by Jekyll & whiteglass - Subscribe via RSS