What do you think?
Rate this book


179 pages, Kindle Edition
First published January 1, 2018
David Parnas' classic paper "On the Criteria to be used in Decomposing Systems into Modules" appeared in 1971, but the state of the art in software design has not progressed much beyond that paper in the ensuing 45 years.
Long methods aren't always bad. For example, suppose a method contains five 20-line blocks of code that are executed in order. (...) there's not much benefit in moving each of the blocks in a separate method.
Goto statements are generally considered a bad idea, and they can result in indecipherable code if used indiscriminately, but they are useful in situations like this where they are used to escape from nested code.
"The problem with test-driven development is that it focuses attention on getting specific features working, rather than finding the best design."From the description of TDD, however, it's evident that Ousterhout misunderstands the process:
"the developer first writes unit tests for the class[...] None of the tests pass[...] Then the developer works through the tests one at a time, writing enough code for that test to pass. When all of the tests pass, the class is finished."I don't think I've ever seen TDD described like that before. Rather, TDD with the red-green-refactor cycle is an inherently iterative feedback process that continually provides feedback on design.