The Value of Symmetry
Posted by: K. Scott Allen,
on 07 Feb 2011 |
View original | Bookmarked: 0 time(s)
Symmetry in code is valuable, and often subtle. When I find symmetry in code, I feel it's a positive sign that the design is working well. I like temporal symmetry. When something opens at the very beginning of a request, I'll expect it to close at the very end of a request. I like conceptual symmetry. Milan Negovan has a discussion about symmetry on an old blog post (Achieving Code Symmetry), and includes examples from Kent Beck's Implementation Patterns book. I also like structural symmetry....