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

As I understand it, MVC is just how Smalltalk built its GUI toolkit: for each widget, the view did the rendering, the controller responded to user events and the model held the data. All the GUI toolkits that followed combined the view with the controller, which is why MVC seems to make no sense.

As for structuring your code, someone (I don't remember who) offered the suggestion that out of all the parts that the framework gives you, your application logic doesn't belong in any of them.



Yep. MVC is a UI pattern. How the UI displays application state and updates application state based on user interaction.

Everything else is outside MVC. Apparently some people don't understand this and stuff their application logic into MVC controllers.




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

Search: