Encrypted Configuration on Rails 5.2

Credentials is a new feature on Rails 5.2 which replaces secrets and encrypted secrets. Under the hood Credentials use EncryptedConfiguration which you can reuse if you need to use encryption on other parts of your application.

Read More

Disaster Recovery Plan for Rails Apps

This is part of a series on preparing your Rails application for Black Friday. This disaster recovery plan is useful for sites that need to recover quickly when an entire AWS region goes down.

Read More

Load Testing Ruby Apps for Black Friday

 

Is your website ready for Black Friday traffic? Rails is capable of serving a huge amount of traffic. This is already proven. To make sure your Rails application is ready, you should perform load testing and add more servers if needed.

Read More

Looking for Ruby on Rails DevOps Services? 5 Questions to Ask

Building and maintaining a complex infrastructure requires resources. So, what’s a startup to do? Expand its services. While some startups can bring on additional employees as needed, most lack the money and time it takes to afford such a luxury. Instead, these teams should consider the benefits of outsourcing their DevOps services.

Read More

Dependency Management Guidelines for Rails Teams

I recently encountered a discussion in a developer chatroom about how to find good ruby gems to use for projects, and how to choose between them.

The (currently-defunct, hopefully only temporarily) website ruby-toolbox.com was mentioned, as well as awesome-ruby.com, and some conversation ensued about how to properly choose between similar dependencies for a given software requirement and why it's important.

Read More

Improving Rails App Performance with Database Refactoring & Caching

Performance is a huge priority for any developer. However, people often don’t worry about performance until it starts to dip and there’s an immediate cause for concern. Performance needs to be something we focus on up front—not just when the walls come tumbling down. It needs to be part of the process, not something that’s reviewed occasionally.

In this post, we’ll consider a few things you can do to improve performance, starting with the database.

Read More

Using Services to Keep Your Rails Controllers Clean and DRY

We’ve heard it again and again, like a nagging schoolmaster: Keep your Rails controllers skinny. Yeah, yeah, we understand. But that’s often easier said than done—because things get complex. And we need to talk to other parts of our codebase or to external APIs to get the job done.

Mailers. Stripe. External APIs. All that code starts to add up.

Read More

Understanding Rack Apps and Middleware

Many web developers work on the highest levels of abstraction when we program. And sometimes it’s easy to take things for granted. Especially when we’re using Rails.

Have you ever dug into the internals of how the request/response cycle works in Rails? I recently realized that I knew almost nothing about how Rack apps or middleware works—so I spent a little time finding out. Below are my findings. 

Read More

Five Ruby Methods You Should Be Using

There’s something magical about the way that Ruby flows from your fingertips. Perhaps that’s why it was once said that “Ruby will teach you to express your ideas through a computer.” And it’s most likely the reason that Ruby has become such a popular choice for modern web development.

Just as in other languages, there are numerous ways to say the same thing in Ruby. I spend a lot of time reading and nitpicking people’s code on Exercism. And I often see exercises solved in a way that could be greatly simplified if the author had only known a certain Ruby method.

Read More

Subscribe Here!