News for hackers. Stuff that matters.
Re:Am I Doing it Wrong? by ori_b on Friday June 22, 2012 @05:59PM (#4149047)
The rule of thumb I use in most cases: Can it be written statelessly without contortions or large inefficiencies? If so, then I make it stateless. Depending what is idiomatic in the language and project, I will usually put it into a function instead of a class.

I find stateless code easier to reason about.

There are no comments on this comment yet.