Skip to content

Reading Refactoring Ruby Edition, typing the code, writing the tests, committing small refactoring steps

Notifications You must be signed in to change notification settings

fanaugen/refactoring_ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 

Repository files navigation

Refactoring Ruby Edition

The code examples in the book on refactoring don’t include tests.

I would like to practice TDD and refactoring on green. Thus, before starting to refactor, I write a test. Then while refactoring, I try and make one-line changes, rerun the tests after every single change, and commit if they are green.

Kindle Locations

If you’re like me, you are

  • reading the book by Jay Fields, Shane Harvie, and Martin Fowler
  • following along with the Ruby Book Club podcast by Nadia and Saron

There’s a slight problem: the podcast episodes are delimited by page numbers. Kindle doesn’t have those. And if you purchased the Kindle eBook from Amazon, you likely don’t even have access to the PDF version, which has the page numbers.

Use these Kindle locations to keep your reading progress in sync with the podcast:

  1. Refactoring Ruby - Ep 1 (Foreword - Ch 1, pg 7) ends at Kindle location 375
  2. Refactoring Ruby - Ep 2 (Ch 1, pg 7-18) – location 375 to 468
  3. Refactoring Ruby - Ep 3 (Ch 1, pg 18-50) – location 468 to 607
  4. Refactoring Ruby - Ep 4 (Ch 2, pg 51-61) – location 615 to 800
  5. Refactoring Ruby - Ep 5 (Ch 2, pg 61-72) – location 800 to 1026
  6. Refactoring Ruby - Ep 6 (Ch 6, pg 101-110) – location 1464 to 1567
  7. Refactoring Ruby - Ep 7 (Ch 6, pg 111-124) – location 1580 to 1713
  8. Refactoring Ruby - Ep 8 (Ch 6, pg 124-132) – location 1713 to 1780
  9. Refactoring Ruby - Ep 9 (Ch 6, pg 133-142) – location 1796 to 1900
  10. Refactoring Ruby - Ep 10 (Ch 6, pg 142-152) – location 1902 to 2020
  11. Refactoring Ruby - Ep 11 (Ch 6, pg 152-160) – location 2030 to 2120
  12. Refactoring Ruby - Ep 12 (Ch 6, pg 160-166) – location 2124 to 2193

About

Reading Refactoring Ruby Edition, typing the code, writing the tests, committing small refactoring steps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages