Simon Willison’s Weblog

“Is Evil..” titles are evil

Too excellent articles on Object Oriented Design: Why extends is evil and Why getter and setter methods are evil. Ignore the inflammatory titles: the subheading of the second article, “Make your code more maintainable by avoiding accessors”, is a much better indication of their content. I picked up some great tips on proper use of OOP from reading them. In particular, the section on CRC cards made something click which hadn’t clicked when I looked at them earlier this year for my ill fated University software project.

This is “Is Evil..” titles are evil by Simon Willison, posted on 8th September 2003.

Next: Andy in the Garden

Previous: Hinting

Previously hosted at http://simon.incutio.com/archive/2003/09/08/isEvil