background preloader

Crockford on JavaScript: A Public Lecture Series at Yahoo!

Crockford on JavaScript: A Public Lecture Series at Yahoo!

JavaScript Tutorial Script Junkie | Creating Responsive Applications Using jQuery Deferred and Promises Today we’re going to explore the concept of deferreds - an important feature found in JavaScript toolkits such as dojo and MochiKit, which recently also made its debut to popular JavaScript library jQuery. Deferreds offer a solution for abstracting non-blocking elements (such as the response to ajax requests) and achieve this by creating a ‘promise’ which aims to return a response at some point in the future. If you haven’t come across the concept of ‘promises’ before, we'll be covering them in some detail shortly. At a high-level, deferreds can be thought of as a way to represent costly operations which can take a long time to complete. They’re the asynchronous alternative to blocking functions and the general idea is that rather than your application blocking while it awaits some request to complete before returning a result, a deferred object can instead be returned immediately. Promises promise = callToAPI( arg1, arg2, ...) jQuery Deferreds Further Deferreds examples Caching Timing

Smashing Newsletter: Issue #72 Wooji Juice: JavaScript for C & Python programmers This is an introduction to JavaScript. There are plenty of these on the web, but most of them appear to be for non-programmers, teaching the building-blocks of programming as JavaScript uses them. And that’s fine, because many people who have never programmed in their lives, find themselves needing a tiny bit of script for their web page, and need to start somewhere. This article is designed to give much more in-depth information about JavaScript. It assumes a complete absence of knowledge about it, but it also assumes that you are already a competent programmer, preferably in a “C-like” language, and a smattering of Python will help too. I’m going to cover everything I can think of short of the object model. Not Java First of all, a common misconception to clear up: JavaScript is nothing to do with Java whatsoever. JS is a dynamic language, with C-ish syntax for its basic flow control structures. However, it is not. It is a dark festival of pain. Embedding In Pages html Or: Basic Syntax js Oh!

Functions -- Eloquent JavaScript ¶ A program often needs to do the same thing in different places. Repeating all the necessary statements every time is tedious and error-prone. It would be better to put them in one place, and have the program take a detour through there whenever necessary. This is what functions were invented for: They are canned code that a program can go through whenever it wants. ¶ To view functions merely as canned chunks of code doesn't do them justice though. ¶ Pure functions, for a start, are the things that were called functions in the mathematics classes that I hope you have been subjected to at some point in your life. ¶ The defining properties of pure functions are that they always return the same value when given the same arguments, and never have side effects. ¶ In JavaScript, addition is an operator, but it could be wrapped in a function like this (and as pointless as this looks, we will come across situations where it is actually useful): Ex. 3.1 [show solution] ¶ Here is the solution:

Learning JavaScript Design Patterns Design patterns are reusable solutions to commonly occurring problems in software design. They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and ensure we structure our code in an optimized way, meeting the needs of problems we're attempting to solve. Design patterns also provide us a common vocabulary to describe solutions. In this book we will explore applying both classical and modern design patterns to the JavaScript programming language. Target Audience This book is targeted at professional developers wishing to improve their knowledge of design patterns and how they can be applied to the JavaScript programming language. Some of the concepts covered (closures, prototypal inheritance) will assume a level of basic prior knowledge and understanding. Acknowledgments Credits Reading Patterns are not an exact solution. Creational Design Patterns

TinySort About Nibbler - the free website testing tool Want to know more about your website? Enter the address of any website and Nibbler will give you a report scoring the website out of 10 for various important criteria including accessibility, SEO, social media and technology. Nibbler is free and always will be! Get loads of information about your website without having to pay anything. Claim websites & showcase them on your profile After you've tested your website, claim it and add it to your own profile. Customise your profile by uploading your own custom background, or choose from one of our examples. Collect Nibbler badges Websites are awarded badges for cool things. W3C Apprentice Awarded to users when they claim 3 W3C compliant websites. Hot off the press Awarded to sites that have 4 or more feed articles in the past 30 days. HTML5 Maestro Awarded to users when they claim 8 HTML5 websites. Video star Awarded when an embedded YouTube video is found. Multilingual Awarded to sites containing content in more than one language. IE6 Advocate

DailyJS - Let's make a framework .net 3d APIs Canvas ECMAScript Enumeration 06 Jan 2010 Drawter LispyScript Microsoft MochiKit NodeList WebSocket accessibility addons ajax algorithms amazon amd android angularjs animation animations api apis apps arduino assets async audio authentication autocomplete backbone backbone.js backgoog banking basic bbc glow beginner benchmarking benchmarks binary binding 20 Oct 2010 Node Roundup bindings bitcoin blogs books bootstrap bower browser build calendars canvas cappuccino cdn charts chrome chrome-os cli client-side clojure closure-library cloud cms code-review codereview coffeescript color columns command query separation commonjs community competitions component component.json components compression compsci computer-science concurrency conferences 04 Feb 2010 JSConf.US 17 Mar 2010 TXJS 26 Mar 2010 TXJS 27 Sep 2010 JSConf.eu 03 Oct 2011 Node Conference, Italy 11 May 2012 Fluent, Backbone.xmpp, leFunc, Frisby 28 Dec 2012 CampJS, euh.js, node-startup config connect console cookies couchdb crawling cryptography css css3 css4 csv daemons data data structures database

The Best Way to Learn JavaScript Learning something new is scary. For me, the biggest issue with picking up a new skill is that I don’t know what I don’t know. Given that, it’s often useful to find a plan for learning whatever you’re interested in. JavaScript is the language of the browser. Before you actually begin learning JavaScript, take a minute to understand what it is and does. JavaScript is not jQuery, Flash, or Java. JavaScript is the language of the browser (not exclusively these days, though). One more note: you’ve heard about jQuery, which is probably the most widely-used JavaScript library. You might even have heard someone say that you should start with jQuery (or another library) and learn JavaScript after. Codecademy is a relatively new website that bills itself as “the easiest way to learn how to code.” The folks at appendTo have a fantastic set of screencasts geared specifically for beginners. "Level up your skills with our on demand, pragmatic training solution. So, what can you build?

JavaScript JavaScript (JS) is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. JavaScript's dynamic capabilities include runtime object construction, variable parameter lists, function variables, dynamic script creation (via eval), object introspection (via for...in and Object utilities), and source-code recovery (JavaScript functions store their source text and can be retrieved through toString()). This section is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. Looking to become a front-end web developer? Get started

JSON

Related:  javascript