~/talk

How To Code Like A Writer

Talkat Ruby on Ales 2015 · 2015-03-05..03-06· [career-development]
slides:none on file

Argues that applying Strunk and White rules to code produces clearer, smaller Ruby: takes a 427-line Rails utility with 427 lines and no tests, writes characterization tests, extracts a ShipmentBuilder and a ShipmentList helper, and reduces duplication from 36 to 0 while dropping flog 180.4→77.2 and shrinking the build_shipments complexity dramatically (from ~120.7 to single digits); the refactor yields small, test-backed methods and a working, maintainable shipping routine. Strunk and White

AI-written summary · about

  1. 0:00Intro
  2. 0:29About Nick
  3. 4:58What does it do
  4. 5:57Refactoring
  5. 7:12Practical first step
  6. 7:41Isolation
  7. 8:29Unlit
  8. 8:45Explanation
  9. 10:06Store ID
  10. 11:33Order Line Item
  11. 13:13Refactor
  12. 14:04Testing
  13. 15:49Assign Adders
  14. 16:31Unnecessary Words
  15. 17:17Consolidating
  16. 18:31Changing line items
  17. 18:55Rule 213
  18. 20:11Class Adder
  19. 20:40Consolidation
  20. 22:01Line Items
  21. 26:56Consolidate To Dropships
  22. 27:44Label
  23. 33:23Flog Score
  24. 34:50Why did it work
  25. 36:32Breaking every rule
  26. 38:19Dont repeat yourself
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.