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

Writing Scala DIY style (part1)

Introduction I’ve been contemplating a project in which I recreate commonly used libraries to gain a deeper understanding of their functionality. Many Scala projects rely on a variety of libraries that offer unique features such as effect systems, streams, and other essential components. It’s crucial to understand the purpose of each building block in a modern Scala project. While most of these libraries are well-documented and provide ample information about their design choices, I believe that the most effective way to grasp the author’s intent is by re-implementing the library yourself....

April 8, 2023 · 5 min · 1040 words · benetis

What software engineer needs to do in 1-2 hours?

Introduction What can software engineer do in 2 hours? Can you make MVP and deploy it to production in that time? What about a senior software engineer? Recently I applied for a developer position. I did it after a personal suggestion from that company’s engineer. I received a fairly simple but not easy task to do and I could do it in any programming language I wanted. I will not mention company’s name or any of the people involved....

December 16, 2021 · 7 min · 1329 words · Me

Conway's Game of Life

Introduction The game of life is a cellular automation devised by John Conway. This simulation has only a few rules, but it is Turing complete [0] and incredibly interesting to watch. With recent news about Conway, I thought it’s time to give it a go. In one programming kata, I had encountered this problem, but never went to fully complete this simulation. This time, I’ll use my favorite programming language, Scala, and my current favorite library, ZIO [1]....

May 4, 2020 · 4 min · 641 words · benetis