Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Business logic goes in the controller. That's why it's called a controller because it controls stuff like access to your data.


I try to use controllers just to connect incoming events or API calls to the business layer.

The control part is more like Traffic Controller . Just directing traffic.


Oh sweet summer child.

Please read this carefully: https://folk.universitetetioslo.no/trygver/1979/mvc-2/1979-1...

Business logic is supposed to be reused. Controllers in web frameworks (views in Django) expose no way to do it.


If you want to reuse logic you make another http request to the right endpoint.


Are you just trolling? Or your cronjobs are really making http requests?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: