Better HN
topnewbestaskshowjobs
Log inSign up

alexborbely

3 karma · joined Dec 24, 2012 (13y ago) · 1 submissions

Submissions

comment 13y ago · link · parent

MVC framework is just a delivery mechanism and your business logic should be outside of it. Your business logic should have no idea about web, console, controllers and routes, it should contain information only about your domain objects and rules. You should be able to extract your application logic and make it available on console, web or mobile just by changing the delivery mechanism. This is the original explanation from http://cleancoders.com (Bob Martin's website) http://www.cleancoders.com/codecast/clean-code-episode-7/sho...