Refactoring from Good to Great
summary
Lots of live coding that keeps the specs green while refactorings happen: extracting temp vars into query methods, moving date logic from collection into an Order#placed_between and a new DateRange (then switching to Range.cover for a tiny perf win), replacing nil checks with a NullObject contact (deleting about ten lines), and isolating payment logic into a PaymentGateway adapter so gateway swaps and tests are easy. Uses quick vim macros, RSpec runs, small incremental steps and recommends books like Clean Code and Working Effectively with Legacy Code.
AI-written summary · about
chapters (4)
- 0:00Start
- 3:25pulling out 10 variables into query methods
- 28:13charge for a subscription
- 30:36create a payment gateway object
related talks
44mRefactoring from Good to Great
48mRefactoring from Good to Great - A Live-Coding Odyssey
33mSo You Want to Start Refactoring?
31mAn Optimistic Proposal for Making Horrible Code... Bearable
25mRefactoring: The ASMR of Programming Talks
28mFluent Refactoring
45mPanel Discussion Refactoring
40mWorkshop - Simplifying Code: Monster to Elegant in Less Than 5 steps
