Best Practices in Javascript Library Design
Google Tech Talks
August 17, 2007
ABSTRACT
This talk explores all the techniques used to build a robust, reusable, cross-platform JavaScript Library. We’ll look at how to write a solid JavaScript API, show you how to use functional programming to create contained, concise, code, and delve deep into common cross browser issues that you’ll have to solve in order to have a successful library.
John Resig is a JavaScript Evangelist, working for the Mozilla Corporation, and the author of the book ‘Pro Javascript Techniques.’ He’s also the creator and lead developer of the jQuery JavaScript library and the co-designer of the FUEL JavaScript library (included in Firefox 3). He’s currently located in…
Duration : 1:1:24
@Thunderbird861 …
@Thunderbird861 Write code. Lot’s of it. And study code written by other programmers.
@Thunderbird861 it …
@Thunderbird861 it really depends what scale your applications will have.. jquery will do for most parts in visual effects but for more complex architectures you would have to go into code design.. for example i build lots of js applications in good old MVC pattern combined with domain driven design rules. but what makes javascript special is its behavures.. you should read or listen to “Javascript – The good parts” its on google tech talks too!
@bloodychan i …
@bloodychan i really start learning but i still suffered from learning gap, what is the best way to full this gap?
david walsh postet …
david walsh postet a good post in his blog concirning seperation of librarys with double brackets.. like ((myLib))();
@Thunderbird861 …
@Thunderbird861 starting!
what is the best …
what is the best way to learn JavaScript?
@fallenland true …
@fallenland true that. javascript is one of the most used languages right now. Ctrl + u
niced vid!
niced vid!
@Edel99 Nope, …
@Edel99 Nope, JavaScript is definitely worth learning even if you aren’t doing anything with it. Its one of those languages that does things in a strange but really cool way and is unlike other languages around. Its probably most used language right now.
12:49 haha Rebecca …
12:49 haha Rebecca Murphey…vintage js all-stars.
this was helpfull. …
this was helpfull. im curantly trying to got to fscj to learn computer science and grahpic desi this helped alot.
Nice
Nice
@WoWultiplayer3355 …
@WoWultiplayer3355 synchronised is the word
am currently doing …
am currently doing bcom please advice iwant to be a an app developer what shoul i do?
@peedee1138 Thanks …
@peedee1138 Thanks for the reply. The timing is interesting, as I recently started doing that for that very reason.
@JamesMorlan I …
@JamesMorlan I realize this comment is 2 years old, but just in case you never found the correct answer, here it is:
It simply helps you and other programers know that the function is immediately invoked. It’s hard to catch the parens at the end of the function declaration when scanning through lines and lines of code.
Simply put, it’s not required but it’s a good neighborly thing to do.
the guys a sexy …
the guys a sexy genius!
@Edel99 There is no …
@Edel99 There is no more robust or capable client-side language than JavaScript, but you should also know that JavaScript has nothing to do with Java. They are very different languages, typically used in different places for different purposes.
You can use …
You can use VBScript to manipulate the DOM in IE… that’s about it
@Edel99 Please …
@Edel99 Please look up the history of Java and JavaScript before you expose this level of ignorance. JavaScript is a radically different sort of OO language that C# or Java. If you are confusing Java and JavaScript, look at Wikipedia, a local bookstore or just Google.
I guess the idea is …
I guess the idea is that these are things that are so natural you don’t have to document them – they should still be in the documentation though, e.g. for people who write their own plugins.
what a video …
what a video smooth work..time has no problem does it
Sun has Java, of …
Sun has Java, of course, and now JavaFX, which uses JavaFX Script. Adobe has Flash, which supports ActionScript and, with Alchemy, C/C++ compiled to ActionScript. Its AIR runtime lets Flash/Javascript run offline in a VM. Microsoft has Silverlight, which supports many languages thru the CLR/DLR (e.g. C# and IronPython). Google has ‘Native Client’, which lets compiled C/C++ code run in the browser with standard library support (e.g. stdlib, libstdc++, math, NPAPI, RPC, and threads).
I read how ‘Java’ …
I read how ‘Java’ slow and to be avoided. In the case on Javascript, is this the only language use for building interaction on the web? It seems to be the most popular…
Java & Javascript …
Java & Javascript are different. Javascript was never well supported on various browsers. However with JQuery framework it is probably your best client-end scripting tool. If you are new to web development, you should definitely try JQuery. It is wonderful and makes your job very easy. There are numerous JQuery plugins that are contributed, you can use them in your application and get instant functionality without writing lengthy and unstable javascript code.