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

>> SQL mixed with HTML

And now we have Javascript being mixed with HTML; which I never thought would happen.



JavaScript isn't a type of logic, it's a language. You wouldn't say JavaScript is the M in MVC, for example. If you have JS in HTML, and that JS code is strictly view logic, then your code still has a clear and useful separation of responsibilities.


> now we have Javascript being mixed with HTML

Now we have JavaScript mixed with an HTML-like syntax.


It's funny how this anti-pattern like has become so widely accepted.




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

Search: