JT Book a call

Blog / Tags

ruby

104 posts tagged ruby, newest first.

rubytutorialbeginners

How to Learn Ruby: Resources for Ruby on Rails Beginners

Starting to learn a new programming language or a new framework every person faces a problem — what should I start studying with?

rubyrailstutorial

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.

programmingrubybestpractices

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.

railsrubydocker

Rails 7.2 Dev Containers: The Generated .devcontainer Setup

Rails 7.2 can generate a .devcontainer with a database, Active Storage, Redis and headless Chrome for system tests. Commands for new and existing apps.

railstutorialpattern

How to handle remote services in tests

Do you have difficulties in adding the new tests and their readability decreased due to mocks and stubs?

capybararubyrails

Tips for writing readable system tests in Rails

The Four-Phase Test pattern applied to Rails system tests, and how keeping those phases visible keeps a Capybara spec readable months later.

railsrubytutorial

5 Rails Virtual Attribute Use Cases - Skip the Column

Use Rails virtual attributes to handle data without adding a database column. Five practical patterns for formatting, confirmation fields, and more.

rubyrailstutorial

Avoiding N+1 Queries in Rails With Materialized SQL Views

In the first part, we considered the solution with extracting logic to the separate class and implementing the Facade pattern.

rubyrailschangelog

Enum validation in Ruby on Rails 7.1

The latest version of Rails 7.1 introduces the ability to validate enums, enhancing data integrity and error handling in Rails models.

techreviewerwebdevtopwebdevelopmentcompany

Techreviewer Names JetThoughts a Top Web Dev Company, 2020

Techreviewer named JetThoughts one of its leading web development companies for 2020.

Tell us what you need built

JetThoughts has been building software since 2008. Book a call, or write to sales@jetthoughts.com. You'll leave the call with a written one-page scope within 2 working days.

#01 Paul Keen
Paul KeenFounder & Open Source Contributor

A 30-minute call; pick a time.