Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

'bloggerdome'

Logically Negating an ActiveRecord scope

If you simply want to know how to negate an ActiveRecord scope, and you don’t care how it works, here’s the TL;DR:

scope(:not), ->(scope) { where(scope.where_values.reduce(:and).not) }

Arel is the powerful library that powers the Rails ActiveRecord library. It’s also …

Read more

Read More

Geek glossary: spy

So spies are pretty easy. They’re test doubles, used like mocks, but instead of setting up expectations before an event, you check the state of the spy after the event, since it records every known message sent to it.

Spy …

Read more

Read More

Ruby/rails performance tools

You have a rails webapp, you’re doing TDD, you are always implementing the simplest thing that could possibly work. Well guess what, the simplest is not always the most performant. If you are always doing simplest thing you’ll not likely …

Read more

Read More

Geek glossary: mock

This is my second post on the trinity of test tools known as ‘test doubles’. The first covered stubs. This one is all about mocks, which are woefully misunderstood and loathed by many.

If you want to know more about …

Read more

Read More

Learning Processes

Every person have their own way of learning, for each one of us there is a method that works better. We have to try and understand the differences and that another person may be slower/faster to learn using a particular …

Read more

Read More

Oh, the programs you'll DRY!

Someone just told you your code isn’t DRY, and you have no idea what they’re talking about. You’re fresh out of college, and you’re starting to fear that your Computer Science degree left you woefully unprepared for the challenge of …

Read more

Read More

Geek glossary: stub

Over the next few blog posts I intend to bang a few more nails in the coffin of the widespread misunderstanding of stubs, mocks and spies. Many before me have had a crack at this (see Ben Moss’s post for …

Read more

Read More

SASS from a developer eyes

I enjoy writing CSS more than the average developer, and I like when I have tools that can help me write better code, be it CSS or regular programming. SASS is my favorite CSS pre-processor and I often see it …

Read more

Read More

Spying on Your Tests with VCR

VCR is a great tool for recording http requests during a test suite so that you can play them back later when the external server is not running or available. However, I’d like to show you how to abuse VCR …

Read more

Read More

Paradigms, Perceptions, Reactions and Motivations

Most programmers I’ve met, not to say all of us, like what we do and enjoy our achievements everyday. Every good class written, every nice refactoring, every file we delete. Even though we enjoy our work very ver much, day …

Read more

Read More