SeanLuckett/StringCounter_kata — pull request #5 by anthonynavarre (2012-02-25 19:11:08+00:00)
Title: BIG Refactor + next test

Sorry I've taken so long to get back on this - VERY busy at work and w/ Lantern this week.

Check out how clean code can get when you embrace object-oriented practices. Since we're inside of a single instance (and we don't need to talk to other objects), we can call methods within the class instead of passing around arguments. In fact, if you can avoid passing arguments, you usually should. This avoids type problems, and makes it a little easier to manage changes in state. It also makes new features much easier to add.

Your turn!
PS: Looking forward to seeing you at Factory next week