About:

CTO at CoverageBook, Rubyist, Conference Organizer, Speaker, Bootstrapper & Twin Dad.

Website:

Incoming Links:

Outgoing Links:

Garrett Dimon
Subscribe to RSS:
The to_param method in Rails allows customization of model URLs for cleaner paths, enhancing readability and SEO while managing ID visibility.
Utilize Rails' ActiveSupport::StringInquirer to create readable predicate methods for string attributes, enhancing code clarity and handling dynamic data effectively.
Using the `with_options` method in Ruby on Rails helps streamline repeated conditions in validations and callbacks, improving code clarity and reducing redundancy.
Rails' in? method provides a more intuitive and readable alternative to Ruby's include? for checking value existence in collections.
Rails inflections allow developers to customize naming conventions, particularly for acronyms, ensuring correct casing in class names and routes.
The author recounts their experience attending the Rails World 2025 conference in Amsterdam, highlighting personal moments such as exploring the city, meeting friends, and attending various talks. They praise the keynote by David,...
The text discusses the performance testing of Enumerable's partition method and the comparison with other methods. The author shares the benchmarks and improvements suggested by others. The text also explores the use of lazy evalu...
The text discusses a Ruby programming problem of finding pairs of numbers from two arrays whose sum is odd. It provides multiple solutions and discusses the underlying mathematical concept.
The author benchmarks different solutions to a coding problem and finds that the performance degrades quickly as the array sizes increase. The use of .product ends up creating large intermediate arrays which increase memory usage....
The text discusses a Ruby programming problem of finding pairs of numbers from two arrays whose sum is odd. It presents different solutions and optimizations for the problem.
The article discusses the use of deep_dup method in Rails to create deep copies of object structures, preventing unintended modifications and subtle bugs. It explains the benefits and limitations of using deep_dup and its performa...
The text explains the difference between Rails's try and the safe navigation operator. It provides examples and use cases for both methods, and explains the syntax differences and performance considerations.
The text explains how to present numbers in a more human-readable format in Rails applications using Active Support's Core extensions. It provides examples of using the built-in ordinal and ordinalize methods and explains the bene...

0Year in Review 2024

2025-01-18

The year 2024 was filled with various activities for Andy Croll, including welcoming a new team member, launching a tool to encourage realistic results in marketing and PR, attending conferences, working on performance and workflo...
The blog post discusses the use of blank? and present? methods in Rails, which are used to check if a value contains meaningful data or if it is effectively empty. It explains how these methods consolidate multiple checks into a s...
The author launched UsingRails, a directory of Rails-based organizations and companies, to address the misconception that Rails is no longer a good choice for building web applications. The site is built with Rails and uses SQLite...
Andy Croll was initially hesitant to co-chair RailsConf Detroit but eventually agreed. He worked with Ufuk to organize the event, focusing on the program, speakers, and CFP. The event included keynotes, a hack day, and workshops. ...
The blog post discusses a useful variation for specifying the required version of Ruby for an application using a .ruby-version file in the root directory of each app. It also explains how to specify the version of Ruby to use in ...

0Year in Review 2023

2024-10-26

The blog post is a year in review by Andy Croll, the CTO at CoverageBook. It covers his personal and professional life from January to December, including work, fitness, travel, and entertainment.
The blog post discusses the use of the source_location method in Ruby for retrieving the file and line number for where a particular method or block is defined. It also explains how to open the source code of a gem in the command ...
The blog post discusses the use of Ruby's convenience methods on Numeric and its subclasses to express numbers more clearly. It compares the use of comparison operators with Ruby's convenience methods and syntactical sugar, and pr...
The blog post discusses the importance of using sandbox mode when accessing the production environment as a developer to prevent accidental damage to user data. It provides a step-by-step guide on how to use sandbox mode in Rails ...
The blog post discusses the dangers of using <%== in erb files and the potential for XSS attacks. It explains how Rails automatically escapes HTML entities and uses ActiveSupport::SafeBuffer to handle string concatenation and rend...
The blog post discusses the importance of protecting applications against malicious users and the risks of passing strings directly to Active Record scopes in Rails. It provides examples of how using strings with interpolated para...