I’m pleased to find Kent Beck shares my affinity for methods with a consistent cadence. In the next pattern I translate, he looks for a way to bring a uniform rhythm to a method that writes an object to a stream.
[gist id=”1236930″]SBPP #3: Reversing Method
2 comments
Comments are closed.
Two comments:
1. The label “cadence” is something I’ve been looking for. I have notions of symmetry and “balance” which I can’t really explain, but I know how I feel when dealing with code lacking either. A well-balanced code base which applies symmetry wherever possible will likely have a pleasing cadence. As I understand these terms.
print_on(io)
is very nice.I’m glad it spoke to you!