Boosted by keul@fosstodon.org ("Luca Fabbri"):
nathansmith@hachyderm.io ("Nathan Smith") wrote:
💲 Twenty years ago today (January 14th, 2006) John Resig introduced jQuery to the world at BarCamp NYC. I still remember hearing about it from my coworker Cody Lindley at Albertsons. He swiveled in his desk chair to share the discovery.
> "Hey Nate, check out this JavaScript library."
It was an immediate boon to our workflow and had ripple effects on countless front-end developers. It was amazing for its time, because it allowed one to write CSS-style selectors to "query" for HTML elements in the page. That syntax eventually made its way into browser engines as `querySelector` and `querySelectorAll`.
This snippet might look familiar.
```
// Page load.
$(document).ready(function() {
// Make interactive.
$(".class-for-button").click(function() {
// Hide or show.
$(".class-for-toggle").toggle();// 😅 No `preventDefault` in IE6.
return false;
});
});
```While it has been a while since I have written verbatim jQuery code, I still continue to use and benefit from concepts John introduced. It evolved into the way that modern JS itself works, and I will forever be grateful for the impact it had on my career.
I wrote numerous blog posts, presented tech talks about jQuery, and evangelized it to fellow coder friends. I even had the opportunity to pen a chapter for jQuery Cookbook, published by O'Reilly. For a brief moment, it was a bestseller on Amazon in the programming category. Collectively, several coauthors decided to put those proceeds towards funding the jQuery Foundation.
This weekend, we will be having a jQuery Reunion here in Frisco, Texas. I look forward to catching up with some of the old school JS devs who rallied around a new upstart library way back when.