❝HN 片单

Cascadia Ruby Conf 2012 Therapeutic Refactoring by Katrina Owen

Confreaks · 2 位 HN 用户推荐 · 2013–2018

  1. a thin layer of integration tests (Selenium/Capybara/Whatever), which drive out unit tests for the individual components. If you let the tests drive your code design, and follow the "Red -> Green -> Refactor" workflow, it tends to shepherd you into writing small easily testable functions and objects that are loosely coupled. You can also use TDD to salvage crappy code, and derive good design even
    — megaduck, 2013
  2. It's called "Therapeutic Refactoring" by Katrina Owen: [link]
    — mplewis, 2018

← HN 片单