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

After studying backbone and other such Javascript MVC frameworks, I realized that they are not necessary.

JS has a wonderful MVC architecture built-in. all JS objects are models by defaults, all views (HTML elements) are models too, and JQuery has a lot of helper functions to simplify events.

These frameworks give you a good idea of how to organize your code better and help you standardize implementation, but if you know what you are doing, you can do it anyways.

Edit: typo



Attitudes like this are what cause giant, unmaintainable spaghetti-code front-end applications to be born.


Code becomes unmaintable when it is not object oriented, ESP for front end applications. Nothing to do with using slick looking syntax, IMHO




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

Search: