Tutorials

Ruby Memoization: ||= vs. defined? - Ruby on Rails and Ember.js consultant
In the majority of the Rails applications or even Ruby gems you can find a lot of use cases where you need to memoize a result of some computation for performance benefits and to not compute it again if this result has already been computed. Seems...


Integrate a scratchpad file into your Rails dev workflow
As Rails developers, it is imperative that we be comfortable and productive in the console. The console is where we have the shortest feedback cycles, making it perfect for learning and tinkering. The Rails console is useful in debugging code, man...


Assert Multiple Differences in Minitest with assert_differences
There have been many times in my coding career that I've needed to test that multiple values change during an event.Maybe you want to check that a User, their Settings, and Posts all get deleted when a user removes their account. Technically you s...

Replacing Eval with Object.send and a self written Parser · Ramblings of a build engineer
A while ago, I was added as a curator for a Gem called JsonPath. It’s a small but very useful and brilliant gem. It had a couple of problems which I fixed, but the hardest to eliminate proved to be a series of evals throughout the code.You could o...


