Daily Archives: May 25, 2009

Coding Tip #27: turning bools into enums

On my recent project, I have noticed a resurgence in a pattern that I have seen many times previously: where a field which is represented as a boolean needs to evolve to represent more than just two values (true and false). The number … Continue reading

Posted in Design | 3 Comments