Refactoring = Learning
ronjeffries.com · 12 hours ago · discuss
Hello, loves! While you were away, I did a little refactoring. Let’s see what it shows us. I think we’ve done some good here. I’m still working on paths between sections, and still doing most of the work in the tests. Mostly. Yesterday’s afternoon session, unpublished, made a change to the Passages object. Here’s what our active test looked like when last we met: layout.clear_subregions() path_cells = suite_1.find_extended_path(suite_2) # now path_cells[0] is in one suite, and # path_cells[-1] in the other, and # path_cells[1:-1] are the cells we need for # the new path room. room_2 = path_cells[0].room assert room_2...