Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
Design pattern interview questions in Ruby test whether you apply patterns idiomatically rather than porting Java solutions. This module covers SOLID in Ruby (SRP via service objects, OCP via modules and Protocols, LSP via duck typing contracts, ISP via small focused modules, DIP via constructor injection and repository pattern), service objects (when to extract, naming conventions — verb + noun: CreateOrder, ChargePayment, the call method pattern), form objects for multi-model forms, query objects for complex AR queries, value objects (Money, EmailAddress as Struct or Data class), decorator pattern with SimpleDelegator vs Draper gem, presenter/view model pattern, the interactor pattern (dry-transaction, Interactor gem), strategy via Proc/lambda, and observer via ActiveSupport::Notifications.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.