News for hackers. Stuff that matters.
Re:Where's Your Business Logic? by mattmanser on Thursday June 28, 2012 @11:28AM (#4172125)
Doesn't everyone do this? It's just good OO.

Although I question demonstrating the principle with a login given that those tokens are usually application specific and little to do with business rules.

Re:Where's Your Business Logic? by jameskilton on Thursday June 28, 2012 @11:35AM (#4172160)
Heh I wish, but no, it's pretty rare to see this at least in the Rails world.

As for the login token, I feel you may be defining "business rules" differently than I am. I'm using "business rules" as "the rules in which the application functions", and one of the rules is that you need an authenticated user to do things. The term is an effort to use a word or phrase that intentionally leaves out the framework you're using, but yes it can get confusing depending on what definition you're use to using. The other phrase, "use case" can at times be too limiting, but I don't know of any better term for what I'm talking about.