Ruby

Showing 1-9 of 36 results
EngineeringIcon ChevronTechnology

Linters Implemented by Ruby Libraries

By Robert Pankowecki

When you hear the word “linter,” you probably think about particular widely used tools. But there’s a different kind of linters. In this article, Toptal Back-end Architect Robert Pankowecki introduces you to linters implemented by Ruby libraries and details their capabilities.

8 minute readContinue Reading
EngineeringIcon ChevronBack-end

Timestamp Truncation: A Ruby on Rails ActiveRecord Tale

By Maciek Rząsa

Tests should keep apps from being flaky. But tests themselves can become flaky—even the most straightforward ones. Here's how we dove into a problematic test on a PostgreSQL-backed Rails app, and what we uncovered.

< 5 minute readContinue Reading
EngineeringIcon ChevronBack-end

Choosing a Tech Stack Alternative - The Ups and Downs

By Viktar Basharymau

If a web application is big and old enough, there may come a time when you need to break it down into smaller, isolated parts and extract services from it. Some of these will be more independent than others. In this post, Toptal Full-stack Developer Viktar Basharymau explains how his team extracted an app from the monolithic Rails application that powers Toptal, and how the new service's technical stack was selected.

11 minute readContinue Reading
EngineeringIcon ChevronBack-end

An Array of Possibilities: A Guide to Ruby Pattern Matching

By Noppakun Wongsrinoppakun

Pattern matching is a powerful tool commonly found in functional programming languages. The Ruby 2.7 release is going to include this feature. In this article, Toptal Ruby Developer Noppakun Wongsrinoppakun provides a breakdown of what this addition will include and why it matters.

8 minute readContinue Reading
EngineeringIcon ChevronBack-end

Ruby Algorithm Documentation with AsciiDoc and Knitr

By Alec Ten Harmsel

A functional specification is a high-level design document created before implementation and serves as a true plan for the team. In this article, Toptal Freelance Ruby Developer Alec Ten Harmsel walks us through prototyping an algorithm and creating a functional specification with the help of AsciiDoc and R for a Ruby on Rails project.

5 minute readContinue Reading
EngineeringIcon ChevronBack-end

Option/Maybe, Either, and Future Monads in JavaScript, Python, Ruby, Swift, and Scala

By Alexey Karasev

If you're searching for the holy grail of bug-free code in JavaScript, Python, Ruby, Swift, and/or Scala, look no further! This monad tutorial by Toptal Freelance Functional Programmer Alexey Karasev takes you from category theory to the practical implementations of the Option/Maybe, Either, and Future monads, plus a sample program—in all five languages.

23 minute readContinue Reading
EngineeringIcon ChevronTechnology

Creating a Cryptocurrency in the Crystal Programming Language

By Eqbal Quran

Crystal is an up and coming programming language that should appeal to Ruby veterans in demand for more performance and flexibility. It may even be the most promising programming language of 2018. In this tutorial, Toptal Ruby Developer Eqbal Quran demonstrates how you can harness Crystal’s potential to create your own blockchain and cryptocurrency.

22 minute readContinue Reading
EngineeringIcon ChevronBack-end

Rails Service Objects: A Comprehensive Guide

By Amin Shah Gilani

Rails ships with everything you need to prototype your application quickly, but when your codebase starts growing, you'll run into scenarios where the conventional Fat Model, Skinny Controller mantra breaks. When your business logic can't fit in either a model or a controller, that's when service objects come in and let us separate every business action into its own Ruby object.

11 minute readContinue Reading
EngineeringIcon ChevronBack-end

Field-level Rails Cache Invalidation: A DSL Solution

By Botond Orban

Fragment caching in Rails provides an easy yet a powerful way of improving your application's performance. However, some real-world scenarios do not work quite well with how the Rails cache behaves by default. In this article, Toptal Ruby on Rails Developer Orban Botond shows how you can implement a small DSL to optimize how the cache for related entities is invalidated to improve template rendering performance.

7 minute readContinue Reading

Join the Toptal® community.