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

For me it's all down to philosophy. Prototype adds a bunch of global variables and extends loads of built-in ojbects. That's fine, unless you ever want to include code that has a different idea about how any of those extensionss should work (like mooTools, which I also avoid on philosophical grounds). jQuery adds just one global variable (called jQuery) along with a revertible alias (the $ symbol). That pretty much guarantees jQuery will work flawlessly with any other code.


newer versions of jquery also allow you to clean up the one global variable it adds, afaik, moving it to a location of your choosing. it's very clean.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: