Tutorials

Decoupling Ruby: Delegation vs Dependency Injection
We've all worked with tightly-coupled code. If a butterfly flaps its wings in China, the unit tests break. Maintaining a system like this is...unpleasant. In this article, Jonathan Miles dives into the origins of tight-coupling. He demonstrates ho...

Linking a Webcam Directly to Rails' ActiveStorage
Quick Note: I’m actively looking for a new remote Ruby/Rails opportunity. Please get in touch if you or someone you know needs some hands and I’ll be happy to jump aboard! Here’s a CV.OK, down to business!ActiveStorage is awesome! For all the time...

How to Deal with 1,000 Failing Specs in a Rails App
A few months ago, Planet Argon kicked off a Rails 2.1 to Rails 3.0 / Ruby 1.8.7 to Ruby 1.9.3 upgrade for one of our clients. The monolithic Rails app contained over 1 million lines of code and accumulated over 9,000 RSpec tests throughout its dec...

Rails introduces disallowed deprecations in ActiveSupport
But, when developing new features after it, we might use end up using deprecated update_attributes again. We might ignore these deprecation warnings and on next Rails upgrade we will encounter new issues.To avoid the above case, Rails has introduc...

How Was My Experience Migrating a Rails API to Crystal AWS Lambda? Part I
Today I am going to tell you how was my first project as a Codeminer42 employee. Two colleagues and I were charged of building a microservice for a logistics company. It was a great experience to learn about new services, features, and even a new ...



