JavaScript


Friday, February 8th, 2008

Refactoring your JavaScript for fun and profit

Category: JavaScript

Our newest Ajaxian Chris Heilmann – London Yahoo! – has written a piece on his blog covering five things to do to a script before handing it over to the next developer. He walks through a refactoring experience: Let’s say the job was to add small link to every DIV in a document with the Read the rest…

Posted by Dion Almaer at 8:12 am
6 Comments

+++--
3.9 rating from 17 votes

Thursday, February 7th, 2008

Django Template Language in JavaScript

Category: Dojo, Examples, JavaScript

I am learning at lot at the Dojo Developers Day one. Whenever I met Dojo folks I get the impression that there are 55 gems in the library that I have no idea about! One of them is Neil Roberts implementation of the Django template language in JavaScript. His work lives in dojox.dtl and you Read the rest…

Posted by Dion Almaer at 2:47 pm
10 Comments

++++-
4 rating from 33 votes

JavaScript Library Loading Speed

Category: JavaScript, Performance

John Resig has analyzed JavaScript library loading speed by looking into the recent PbWiki testing results. He delves into the fact that file size != speed and puts out the simple formula: Total_Speed = Time_to_Download + Time_to_Evaluate We also seem to obsess about packing and minification, where it often does give us that much since Read the rest…

Posted by Dion Almaer at 11:30 am
3 Comments

+++--
3.4 rating from 27 votes

jQuery UI and jQuery Enchant Alpha Versions Released Today

Category: Ajax, JavaScript, jQuery

The jQuery UI team announced today the release of alpha versions of jQuery UI 1.5a and jQuery Enchant 1.0a! The projects aim to address the need for a strong set of UI controls and effects to complement the jQuery JavaScript library. I’m very happy to announce the first alpha release of both jQuery UI 1.5 Read the rest…

Posted by Rey Bango at 10:52 am
4 Comments

+++--
3.4 rating from 7 votes

Security Focus: JavaScript Global Namespace Pollution

Category: JavaScript, Security

Security should always be a concern when developing client-side applications as time and time again, sites have been compromised by a lack for forethought into how users, especially malicious ones, interact with your site. GNUCitizen.org is an excellent site for staying abreast of new security exploits and the team constantly pushes the boundaries of how Read the rest…

Posted by Rey Bango at 10:31 am
4 Comments

+++--
3.5 rating from 12 votes

iPhone Cachability: Watch your weight

Category: iPhone, JavaScript, Mobile, Performance

Reposted from devphone. Wayne Shea and Tenni Theurer have continued their performance series by delving into the iPhone and its poor little cache. I always wonder why the cache is so small. It is typical Apple to not allow an expert mode where you can tweak it. I would rather have a few less songs Read the rest…

Posted by Dion Almaer at 10:10 am
1 Comment

+++--
3.4 rating from 14 votes

Wednesday, February 6th, 2008

Server Side JavaScript Databases Access

Category: Aptana, Gears, JavaScript

Reposted from my personal blog As soon as I started to play with Aptana Jaxer, I saw an interesting opportunity to port the Google Gears Database API (note the Gears in the logo!) If I could use the same API for both client and server side database access, then I can be enabled to do Read the rest…

Posted by Dion Almaer at 8:02 am
7 Comments

+++--
3 rating from 27 votes

Tuesday, February 5th, 2008

MySpace Announces Developer Platform

Category: Ajax, JavaScript

In an obvious move to counter FaceBook’s expanding developer platform, MySpace, the top trafficked social network announced today the availability of the MySpace Developer Platform. News of the imminent release had been circulating for weeks and MySpace finally gave developers the keys to its playground. The MySpace Developer Platform (MDP) allows developers to create applications Read the rest…

Posted by Rey Bango at 10:48 am
6 Comments

+++--
3 rating from 15 votes

OpenSocial 0.7: Coming to prime time

Category: JavaScript, Social Networks

The latest version of the OpenSocial spec has been released, 0.7: The best news is that, based on numerous discussions with both app developers as well as container sites, we believe OpenSocial 0.7 has all the necessary pieces to launch OpenSocial apps to users at scale. In fact, both hi5 and orkut will be using Read the rest…

Posted by Dion Almaer at 5:35 am
1 Comment

+++--
3.9 rating from 15 votes

Monday, February 4th, 2008

Ext JS IDE Support Roundup

Category: JavaScript, Sencha

There’s been a lot of talk lately about the different IDEs and the support they offer for the various JavaScript libraries. Ext’s uber-coder, Jack Slocum, has put up a blog entry explaining which IDEs support the Ext JS framework: The Ext 2.0 API is very extensive and remembering all of the functions, properties or configs Read the rest…

Posted by Rey Bango at 11:36 am
1 Comment

++++-
4.3 rating from 44 votes

Adobe Tamarin Tracing JIT for JavaScript

Category: JavaScript, Performance

Chris Double attended the Tamarin Tech summit, and gives us some information about Tamarin Tracing the new trace based JIT experiment: ‘Tamarin Tracing’ is an implementation that uses a ‘tracing jit’. This type of ‘just in time compiler’ traces code executing during hotspots and compiles it so when those hotspots are entered again the compiled Read the rest…

Posted by Dion Almaer at 9:33 am
Comment here

++++-
4 rating from 27 votes

Functional Programming with JavaScript and Dojo

Category: Dojo, JavaScript

Eugene Lazutkin has written a piece on Functional fun in JavaScript with Dojo where he delves into the land of functional and how it is available in JavaScript. Eugene maps out some of the helpful functions that JavaScript itself has added over time: JS 1.6 (in Firefox 1.5) introduced so-called Array extras: special Array methods, Read the rest…

Posted by Dion Almaer at 8:18 am
7 Comments

+++--
3.7 rating from 30 votes

Low Pro for jQuery

Category: JavaScript, jQuery, Prototype

Dan Webb has ported Low Pro to jQuery and along the way discusses differences between Prototype and jQuery: The one big reason was that, while jQuery was super simple and concise when working on smaller projects, it offered no help in structuring larger applications. All you get in jQuery, aside from Ajax methods and a Read the rest…

Posted by Dion Almaer at 7:42 am
3 Comments

+++--
3.6 rating from 21 votes

Namespaced made easy with Prototype

Category: JavaScript, Prototype

kangax keeps up his “Prototype by example”-ness by showing a use of Enumerable#inject. He shows us namespacing made easy: < View plain text > javascript String.prototype.namespace = function(separator) {   this.split(separator || ‘.’).inject(window, function(parent, child) {     return parent[child] = { };   }); } And then you can use it via: < View Read the rest…

Posted by Dion Almaer at 6:56 am
7 Comments

++++-
4 rating from 34 votes

ErlyJS: JavaScript on Erlang

Category: JavaScript

Roberto Saccon has written ErlyJS, a compiler that takes JavaScript and makes it run on the Erlang VM. It is very early days, and supports: Support of a tiny little Subset of Javascript Compilation to Erlang beam files Global Javascript variables are stored at runtime in the Erlang process dictionary (therefore: don’t use global variables Read the rest…

Posted by Dion Almaer at 5:38 am
1 Comment

+++--
3.3 rating from 19 votes

Sunday, February 3rd, 2008

JavaScript Trim Optimizations

Category: JavaScript

Simon found this gem. Steven Levithan wrote about optimizing a JavaScript trim. As Simon nicely puts it: “it turns out that while regular expressions are great for removing leading whitespace you can do a lot better at trailing whitespace by manually looping backwards from the end of the string.” Since the differences between the implementations Read the rest…

Posted by Dion Almaer at 10:51 pm
4 Comments

+++--
3.3 rating from 28 votes