Blog

Ruby

89 posts tagged ruby — the same founder-tested patterns, filtered.

Effortless Code Conventions Review for Pull Request Changes

Effortless Code Conventions Review for Pull Request Changes

Reliably arranged source code helps hackability. You can filter code speedier if its organizing is predictable.
DelayedJob and PG Error No Connection to Server

DelayedJob and PG Error No Connection to Server

Recently I’ve got strange errors on the staging server. Delayed::Job workers started successfully.
Recent Searches & Sorting Hashes: How They are Connected

Recent Searches & Sorting Hashes: How They are Connected

In one of the applications, that we are developing, we needed to implement the storing of 10 last user search requests.
Pay Attention to Method Names in Minitest::Unit

Pay Attention to Method Names in Minitest::Unit

Defining name, message, time or pass in a Minitest test case overrides Minitest::TestCase's own methods. What breaks, and what to call them instead.
How To Name Variables And Methods In Ruby

How To Name Variables And Methods In Ruby

What’s in a name? By any other name would smell as sweet. Junior developers often struggle to choose good names for variables and methods they write.
How To Memoize False and Nil Values

How To Memoize False and Nil Values

Memoizing with ||= breaks quietly when a method legitimately returns false or nil. Use defined?(@_result) instead, and here is why that works.
Placeholder Image

How to Learn Ruby

Starting to learn a new programming language or a new framework every person faces a problem — what should I start studying with?
Avoid data migrations in the schema migrations for Rails

Avoid data migrations in the schema migrations for Rails

Could you re-run all migrations in the project? How often were you required to fix them while production was under fire?
5 Steps to Add Remote Modals to Your Rails App

5 Steps to Add Remote Modals to Your Rails App

Sometimes you don’t want to write big JavaScript application just to have working remote modals in your rails application.
New in Ruby on Rails 7.2: Development Containers Configuration

New in Ruby on Rails 7.2: Development Containers Configuration

Development container is a full-featured coding environment.

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way