Bonus- John Resig - Inventing JQuery
دوره: Python Data Structures / فصل: Chapter Ten- Tuples / درس 4سرفصل های مهم
Bonus- John Resig - Inventing JQuery
توضیح مختصر
And, additionally, I wanted to make the process of attaching events into the page, because when you're building an interactive JavaScript application, you need to listen for when the user's going to be doing certain things. One was that I provided an explicit plug-in architecture so that people could write plug-ins and add them into the JQuery library and now they could get the full advantage of this framework. And part of that was setting up a nonprofit and making sure there were enough people working in every aspect of it, such that when I eventually came and joined Khan Academy, I actually stepped down from the JQuery project.
- زمان مطالعه 0 دقیقه
- سطح خیلی سخت
دانلود اپلیکیشن «زوم»
فایل ویدیویی
برای دسترسی به این محتوا بایستی اپلیکیشن زبانشناس را نصب کنید.
ترجمهی درس
متن انگلیسی درس
See, I started working on JQuery in 2005. Before then, JQuery wasn’t even a thing, it was just a collection of tools that I had written. It was mostly because I had been creating a number of websites and resources around that time, and I kept wanting to have these certain utilities to make my development easier. And part of that was, one, just working around sort of like the browser incompatibilities that existed at the time. There was Internet Explorer and Firefox and it was just so hard to try and like develop against all these different browsers simultaneously. So that was one issue, but the other issue was just that I felt that the pre-existing development tools, especially the JavaScript development tools, could be better. The most popular library at the time was the prototype JavaScript library. And this was one that was bundled with the Ruby on Rails framework, so its popularity was taking off with Rails. And that library, actually, I found to be extremely informative. That was the first time I had seen a JavaScript library written in a nice clean object oriented manner, where you have nice, all these nice functional paradigms built into it. And I didn’t really realize a JavaScript could be so beautiful and elegant. And once I saw that it really inspired me to want to build something even better, and I realized that prototype primarily focused on the JavaScript language, whereas there weren’t many tools that focused on the JavaScript language inside the browser, specifically manipulating HTML and the DOM. And so there was this gap here and there was this big usability chasm. And so that’s when I started to build different tools and different libraries. And eventually all of these kind of glommed together into a single library, which I ended up calling JQuery. I was originally going to call it JSelect but that domain was taken or something, and so I ended up going with JQuery and ended up releasing it January of 2006. I should say at the time, I was in college. I was doing all this while I was in college. And all of these different projects and stuff I were working on were just various side projects and things that I had. And JQuery just kind of just spun out of these side projects. And actually, none of those side projects exist any more, JQuery’s the only one that still exists. So the selector pattern came from, at least where I saw it from, was this library written by this developer in the U.K., Simon Willison. And he created this method wherever it is I get elements by selector, if I remember correctly. And it allowed you to just write a simple CSS selector and find some elements, but it was very, very primitive. You could only do just the most basic of queries, and it didn’t have the full nice CSS2 and CSS3 and everything. And, so one of the things I wanted is, one, I wanted a better version of that library, a more comprehensive version. And, additionally, I wanted to make the process of attaching events into the page, because when you’re building an interactive JavaScript application, you need to listen for when the user’s going to be doing certain things. And so doing that process of finding an element and attaching an event to it, I wanted to optimize completely for that. And so that’s really what JQuery was initially all about. And it wasn’t until later that I started in adding in other things, like being able to have like animations. And it wasn’t even until after I released it that I added in AJAX and stuff. That’s because other people wanted it. I wasn’t even using that personally. So it really was, I was definitely inspired by all these other developers and their libraries and they just weren’t quite perfect. I wanted to be just that little bit better to all fit together. And so, how’d it go from, sort of you making something and giving it to it sort of taking on a life of its own, because it didn’t take long for it to take on a life of its own. It felt like it took a long time to take on a life of its own, mostly because of stuff like, you now, release it January 2006. And one of the very first design decisions I made, I guess there were a couple that I made right from the start that helped a lot. One was that I provided an explicit plug-in architecture so that people could write plug-ins and add them into the JQuery library and now they could get the full advantage of this framework. The other decision I made was that on the very first day it was released, I had documentation written. I sat down and went through every method and documented it and how it worked and provided little examples. And one thing I think is interesting is that from January 2006 when we released the library to January 2007, JQuery was the only library, the only JavaScript library with documentation. All the others were just like, read the source code or go through revision control, or whatever it was, and that always really surprised me. Well, I think it’s just a side effect of developers. You want to write your code, you don’t want to do the boring stuff and writing docs and whatever. And, so at least as far as the growth of the library, there are a lot of decisions that I made over the course of its history that weren’t code related. And one of the things I always try to emphasize is that when you’re trying to manage a good project, especially a good open source project, code is only a very small portion of the total equation. You have to spend a lot of time and a lot of effort in making something that people are going to want to learn, that is easy for them to learn, and that once they do learn it, they don’t get frustrated and leave later on. And there’s you have this whole flow that you have to make sure at every step of the way that people are happy and satisfied and that they’re learning. So that usually involves doing things like you have to make sure you have a clear website, that it’s easy to download whatever you’re trying to give, that the documentation is very clear, that you have a very like nice getting started guide, but that additionally, that you have a community built up around this. Now the very first person I brought onto the JQuery team, at this point it was just me, and the next person I brought in, was actually someone to help manage the community, and not another developer, per se, and, although he was a developer. And because the reason why I wanted this was, I wanted to make sure that if anyone was having a problem anywhere, that their needs were going to be taken into account, and that we would be able to help and fix whatever issue they were hitting. And so we were just extremely proactive in fixing browser issues, in finding just issues in the library in general. And summer of 2006 till the end of 2006, I was actually in Y Combinator, the startup accelerator run by Paul Graham and Co. And at that time, they were in Boston and I moved to Boston with some friends and we tried to do a startup, which ended up failing. We did not get enough funding and it just didn’t take off. Once the startup went away, I ended up joining Mozilla. And there I worked as, primarily, for many years, a JavaScript evangelist. So my job was to promote JavaScript and get people to understand what’s coming in the specifications, tools, and all sorts of stuff like that. But again, I wasn’t actually working on JQuery as part of my job. It was still very much, I would do that and then in my spare time I would just be doing mailing lists and fixing bugs and all those sort of things you have to do. It wasn’t until about my last year at Mozilla, so like about 2010 or 2011, that they actually said, okay you can work JQuery full time and that’s when I started working on it. And it was great, because what I ended up doing during that time was I put a lot of effort into making sure there was infrastructure in place. So that if I wasn’t working on it, if I wasn’t there on a day-to-day basis, it could continue to exist. And part of that was setting up a nonprofit and making sure there were enough people working in every aspect of it, such that when I eventually came and joined Khan Academy, I actually stepped down from the JQuery project. And everything has been running very well since. And I can just use JQuery now as a happy consumer.
مشارکت کنندگان در این صفحه
تا کنون فردی در بازسازی این صفحه مشارکت نداشته است.
🖊 شما نیز میتوانید برای مشارکت در ترجمهی این صفحه یا اصلاح متن انگلیسی، به این لینک مراجعه بفرمایید.