DHH/37signals Rails Style
Applies the distinctive 37signals/DHH conventions to generate and refactor Ruby on Rails code.
Embrace the 'clarity over cleverness' philosophy of DHH and 37signals in your Ruby on Rails projects. This skill provides domain expertise extracted from production codebases like Basecamp and HEY, guiding you to write clean, maintainable, and pragmatic Rails applications. It helps you build features using 'vanilla Rails' conventions, such as fat models, thin controllers, RESTful resource mapping, and database-backed solutions for queues and state management, while avoiding common but often unnecessary abstractions and dependencies.
Características Principales
01Hotwire-First Frontend: Guides on building modern UIs using Turbo and Stimulus instead of heavy JavaScript frameworks.
02Database-Backed Everything: Advocates for using the database for jobs and state management, avoiding dependencies like Redis.
03REST Purity: Models state changes as new resources instead of custom controller actions.
042,824 GitHub stars
05Fat Models, Thin Controllers: Encapsulates business logic within models and concerns, keeping controllers lean.
06Pragmatic Conventions: Follows established naming, scoping, and architectural patterns from production 37signals applications.
Casos de Uso
01Building a new Rails application following the battle-tested principles of 37signals.
02Refactoring an existing Rails codebase to improve clarity and reduce unnecessary complexity.
03Performing a code review to align a project with the DHH/37signals coding style.