Ruby's early returns can be harmful

Introduction I’ve been using Ruby for a some time now and I’ve noticed that early returns can be over used. I’ll review at one example with enums where I think some early returns can be harmful. Note: I am not saying early returns are bad, but in this specific example they can be harmful. Enums Ruby does not natively support enums, but they still do exist in business and other domains....

August 23, 2023 · 3 min · 473 words · benetis

Exploring Ruby & Rails: Building a Chatbot

Introduction New Ruby community member here. Looking to get familiar with language and share my insights. Recently, I’ve accepted an offer to work in a different company. They use Ruby as their main language. I’ve never worked with Ruby in a professional setting, but I did already take a stab at Ruby koans [1] the other day. I do have quite a bit of experience in programming, especially with functional language like Scala....

June 14, 2023 · 7 min · 1461 words · benetis