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

A few days ago this guide appeared here in Hacker News: http://www.gabordemooij.com/articles/jsoop.html

I think that it is far better than this article.




yes. quote: "Note that we did not use a lot of confusing JS stuff: no this, no new, no prototype. Therefore this approach is not only easy, minimalist and elegant but it also works in the most ancient and exotic browsers."

This is the correct approach.

...not because those operators are bad, but because they _are_ confusing, and will confuse some people who work on the code base. Simple javascript is elegant and maintainable.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: