With the holidays approaching, the AppSignal team is taking a mini winter break from publishing Ruby posts. We hope to bring you a lot more of them in 2023. 🍵 ❄️
In the meantime, let's look at the top 5 most liked Ruby blog posts from 2022!
A state machine can hold all possible states of something and the allowed transitions between these states. For example, the state machine for a door would have only two states (
closed) and only two transitions (
closing). In this post, we'll look at how to set up a state machine in Ruby and use the state machines gem.
In this post, we'll dive into ractors in Ruby, exploring how to build a ractor. You'll send and receive messages in ractors, and learn about shareable and unshareable objects.
This article will give you a greater understanding of polymorphism, specifically in Ruby on Rails. To accomplish this, we’ll dive into:
- The use of polymorphism in the real world
- Polymorphism in programming by way of OOP
- How you can incorporate it into your Rails application to help maintain high-quality code
Hotwire is a completely new way of adding interactivity to your app with very few lines of code, and it works blazing fast by transmitting HTML over the wire. That means you can keep your hands clean from most Single Page Applications (SPA) frameworks. You can also keep your rendering logic centralized on the server, while still maintaining quick page load times and interactivity.
This article offers a set of good practices for working with transactions. The tips are pretty simple, but they will help make your transactions bulletproof, readable, and relatively safe.
Honorable Mention - Test and Optimize Your Ruby on Rails Database Performance
We hope you've learned something new while reading our blog this year. We know we have! In 2023, our team will continue working hard to publish new blog posts to spread knowledge across the Ruby community and bring you the best content and resources to help you improve your skills and build performant Ruby applications.
Wherever you are in the world, we hope you enjoy a happy and healthy end of year. We hope that 2023 will be an amazing year for you, with no bugs and packed with events and adventures that are almost as sweet as a stroopwafel.