Blogs

Lesser Model Callbacks — Refactoring Rails the Clean Way
Callbacks are double edge swords. They are predictable actions that always executes. And can (most times) be evil, especially when trying to do a simple update and suddenly something else gets changed because of a callback.Callbacks should be simp...

Prevent an Outdated and Broken Bin/setup With This Simple Trick
Having a good bin/setup is very essential to having a quick onboarding time as well as getting your environment back up and going in case of emergency.But how often do you run this bin/setup if it’s only ran when you setup your repo? Most develope...




Better passwords in Ruby applications with the Pwned Passwords API
At Twilio we're fans of using a second factor to protect user accounts, but that doesn't mean we've forgotten the first factor. Encouraging users to pick strong passwords is still the first line of defence for their accounts.After spending years c...




Dup vs Clone in Ruby: Understanding The Differences
Did you know that you can copy an object in Ruby? Not only that, but there are two different methods to do this!These methods are:dupcloneWe will explore the differences in a moment, but first…Why would you want to clone an object?Many objects in ...