Hacker News new | past | comments | ask | show | jobs | submit login

you're asking from an MVC perspective?

This approach lets you blur the lines between MVC responsibilities. If you wanted to create a widget that had some traditionally 'business-logic' role (like network sync or database interaction) you could do that. I'm not recommending that but there's value in flexibility.




I wasn't talking generally but I'm interested to hear about any purported benefits of conflated responsibilities.


Example:

The FB/google share buttons on websites totally break MVC. It's just a button but it has cookie & network traffic.

I hate those buttons, people often argue they 'break the web' because of weird privacy/performance side effects, but developers use them because it's convenient to 'drop in' the platform integrations.

By comparison -- integrating an android app with GMS requires modifying a bunch of files (xml layouts, java source, multiple build dependency files). You can't just 'drop it in'.




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

Search: