4 ms·
well, I really hope this doesn't happens.. jQuery IS just a library at the end. There is no magic going on. JS is a functional language where you can fiddle wit
by middayc 17y ago
well, I really hope this doesn't happens.. jQuery IS just a library at the end. There is no magic going on. JS is a functional language where you can fiddle with prototypes so everybody can make arr.each(function(...){..}); and $ is not a special character. And that is all that those examples in blogpost show.
- DLWormwood 17y ago> There is no magic going on. What does this mean exactly? No language performs "magic" at a fundamental level. When I first started with programming in the early 80's, the distinction between library and language was just as blurry as it is now. Many of the Basics and Pascals I worked with made graphics drawing primitives language keywords, even though nowadays, these would be considered part of an OS's platform specific libraries. (Logo, in particular, was almost all graphics related keywords.)
- middayc 17y agoMeaning that whatever jQuery does ("language" vise) every simple lib in JS can do. So what jQuery enables, basically JS as a langauge enables. So jQuery is not almost it's own language but it's library in JS.
- shaunxcode 17y agoYeah - magic to me would be implementing blocks i.e. arr.each { x | ...}; at that point it would be a different language rather than a clever fluent expression happy library.