Ruby articles

Brought to you by Honeybadger—simple application monitoring that helps developers move fast and fix things.

The inadequate guide to Rails security

Rails handles many security concerns out of the box, but even small applications face real threats from automated attacks, botnets, and malicious actors. This comprehensive guide covers eight critical vulnerability classes and shows you how to protect your Rails applications using the framework's built-in security features.

Going deep on UUIDs and ULIDs

A chance conversation led me to the realization that the world of unique identifiers is larger and more wondrous than I ever could have imagined. In this post we discuss five types of UUIDs and their upstart cousin, the ULID. We explore what makes each of them special and when they may be particularly useful.

Understanding the insertion sort algorithm in Ruby

There are lots of ways to sort data. Insertion sort is particularly interesting because it sorts the data in place and is pretty easy to understand. While most of us just use the #sort method, interviewers still love to ask questions about sorting algorithms and related topics like Big-O notation. In this post, you'll learn not only how insertion sort works but also how to implement it yourself in Ruby.