4 ms·
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 speci
by mattmanser 14y ago
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.
- jameskilton 14y agoHeh 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.