Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  JavaScript Is Not A Language

Recently people presented arguments for and against using CoffeeScript. I felt the argument against was pointless and obviously wrong, but I couldn't figure out why, and I thought the counterargument for was kind of toothless and irrelevant. I've figured out the real issue.The real argument for CoffeeScript is that JavaScript is not really a language.Years ago I read something which explained, in my opinion, why Lisp has never achieved the mainstream adoption its passionate advocates believe it deserves. Lisp projects experience a degree of balkanization because everything is left wide open; y...

4,498 0       JAVASCRIPT NOT A LANGUAGE COFFEESCRIPT MODEL


  Advanced event registration models

On this page I explain the two advanced event registration models:W3C’s and Microsoft’s. Since neither is cross–browser supported,their use is, for the moment, deprecated.W3C and Microsoft have both developed their own event registration modelto replace Netscape’straditional model. Though I’m notimpressed by the Microsoft model, W3C’s is very good, except for onecrucial vagueness.Unfortunately few browsers support it at the moment.W3CW3C’sDOM Level 2 Event specification pays careful attentionto the problems of the traditional model. It offers a ...

2,521 0       JAVASCRIPT EVENT MODEL THIS BUBBLE CAPTURING


  A String is not an Error

I decided to write a little article to discourage an unfortunately common pattern in Node.JS modules (and browser JavaScript, to a lesser extent) that can boil down to these two examples:// A:function myFunction () {  if (somethingWrong) {    throw 'This is my error'  }  return allGood;}and// B: async Node.JS-style callback with signature `fn(err, …)`function myFunction (callback) {  doSomethingAsync(function () {    // …    if (somethingWrong) {      callback('This is my error')    } else {    &nb...

3,449 0       JAVASCRIPT NODE.JS STRING ERROR OBJECT


  JavaScript as a First Language

At Khan Academy we've been investigating teaching Computer Science to students in some new and interesting ways. The most interesting aspect of which is that we're likely going to be teaching them JavaScript as their first language.We're in a very unique position as we're primarily aiming to teach students who've been through our previous math and science-centric curriculum. Because of this we can create some rather compelling exercises and projects that never would've been feasible otherwise.The prospect of teaching the JavaScript language as a first language is actually really exciting. Teac...

5,822 0       PROTOTYPE JAVASCRIPT LEARNING FIRST LANGUAGE INHERITENCE


  I’m too lazy to be a HTML developer

There’s no denying it. I’m just to damn lazy to be an HTML developer. This really sunk in when I looked at a tutorial for doing a jQuery Lightbox – for a client project. The tutorial was titled “Super Simple Lightbox with CSS and jQuery” but after reading it over I thought a better title would be “A really freaking hard tutorial on the inane intricacies of doing something that looks simple but in reality is a skein of HTML, Javascript and CSS that no one except an HTML Jedi Master could every come up with “.I must say that I have a totally refreshed...

4,109 0       JAVASCRIPT HTML WEB DESIGN COMPLEXITY MESSY


  HTML5 History of 20th Century Music

We've seen some neat interactive HTML5 infographics before -- but the periodic table, for example, doesn't really care that much about time.Visual representation of time introduces numerous complications. Traditional ways of representing time visually were, roughly speaking, translations of dimension-type, from temporal to spatial; the mapping selected would depend on what kind of temporal relation was meaningful for the particular application. For example, circles represent cyclical behavior; lines represent development; trees represent evolutionary history; and so forth. New media change the...

8,936 0       JAVASCRIPT HTML5 MUSIC TIMELINE


  ECMAScript 6 looks promising

I am quite excited about ECMAScript 6, after watching David Herman’s talk at YUIConf 2011. I am especially looking forward to seeing some of these features landing up on V8 soon, so that I can use it on node.js. These additions will solve many common sources of frustration that newcomers face when working with JavaScript. Although the spec is not expected to be finalized till 2013 (so says David in the video), a lot of these features are expected to hit Chrome and Firefox much before that. I am personally looking forward to the following: let keyword The let keyword has a block scope. ...

1,549 0       JAVASCRIPT NEW FEATURE ECMASCRIPT 6 LET TEMPLATE


  Google Dart? Don’t bet against JavaScript

Procotols, programming languages and operating systems all compete in a constantly evolving software ecosystem. Out of that ecosystem only a few technologies truly have staying power and survive over the long term. An example? How about Ethernet? It’s been a survivor over the last thirty years despite existing in a constantly changing landscape that’s been populated with many worthy competitors. Ethernet’s grasp has been so strong, there even an informal law, known as Metcalfe’s second law, that says “nev...

26,595 0       JAVASCRIPT COMPARISON FUTURE GOOGLE DART