DCI and decoupling business logic from ruby on rails

by Lancelot Carlson | | Articles

Every so often the rails community adopts new best practices and patterns because someone figured out a better way to architect their applications. One great example was when everyone was urged to push the logic out of controllers and move it into models. This solved a lot of issues for most applications. Now we’re able easily isolate and test away the logic on the model layer instead of the hard to isolate controller layer.

Pushing the logic to the models created a nasty side effect however. Our models became completely bloated and hard to maintain. They contained logic that we tried to abstract away into model classes or new modules inside of the lib directory with one-off abstractions with no clear home. I’m sure some of us already knew there was something wrong, but perhaps it was only a gut feeling because no one piped up! It wasn’t until I saw Uncle Bob’s keynote speach at Ruby Midwest 2011 that I realized there was a huge flaw in the status quo of rails development.

Read the rest here: http://lancecarlson.github.com/2012/05/15/dci-and-decoupling-business-logic-from-ruby-on-rails.html





About HealPay
HealPay provides innovative, consumer-centric payment solutions to businesses nationwide. Attorneys, collections, receivables, charitable organizations, property managers, finance companies, and other types of billers rely on our solutions to accept multiple payment types online and over the phone with or without a human agent.


HealPay Offers:
  • Merchant account(s) to accept ACH, Debit and Credit Cards
  • Online payments with your firm’s logo & a custom URL
  • Virtual Terminal for one time payments or setup a recurring schedule
  • Consumer friendly payment options with our Settlement Application
  • Consumer portal to view balance information & link accounts
  • Interactive Voice Response, (IVR) Agentless Phone Application
  • Reporting analytics and data to analyze your operations
  • Fast and friendly Support

For Inquires:
Please contact
info @healpay.com
734-272-4729
203 E. Washington St.,  Ste. 3
Ann Arbor, MI 48104-2007
www.healpay.com

HealPay logo