Wednesday, August 26th, 2009

TestSwarm: Crowdsource your continuous tests for JavaScript

Category: JavaScript, Testing

It has been a pleasure to watch John build TestSwarm and see its alpha release today. It is an ambitious project to help developers get real world testing across browsers. Here you can see it all at work: John talks about some of the fun challenges: TestSwarm ended up being a very challenging project to Read the rest…

Posted by Dion Almaer at 1:01 pm

4.3 rating from 35 votes

Friday, August 21st, 2009

Taking JavaScript “all the way” with MVC

Category: JavaScript

Peter Michaux posted about going all the way with a full client-server app view that looks like: < View plain text > HTML < !DOCTYPE html> <html> <head>   <title>The App</title> </head> <body>   <script src="/static/js/the-app/bootstrap.js" type="text/javascript"></script> </body> </html> Joel Webber then showed what the GWT Showcase example could look like (a touch different): < Read the rest…

Posted by Dion Almaer at 6:33 am

3.1 rating from 34 votes

Wednesday, August 19th, 2009

Details on JS compression; Squeezing every last byte on the wire

Category: JavaScript

Ray Cromwell has a great article on techniques he has used with JavaScript compression to bring down the payload of your Ajax application. There are some fantastic advantages to JavaScript being “binary as source” but there is also a real issue with it. We have to make a trade-off on verbose code…. even with minifiers Read the rest…

Posted by Dion Almaer at 6:10 am

4.3 rating from 30 votes

Thursday, July 30th, 2009

Best way to load your JavaScript

Category: JavaScript, Performance

Nicholas Zakas thinks he has the best way to load JavaScript. Steve Souders has a bunch of best practices, and it seems that there is definitely nuance that makes advice very much tailored to your circumstance. Nicholas though, has an opinion: I’ve come to the conclusion that there’s just one best practice for loading JavaScript Read the rest…

Posted by Dion Almaer at 9:41 am

3.4 rating from 52 votes

Monday, July 27th, 2009

Adding your own scripts to Web Workers

Category: JavaScript

Over in Geneva, they have posted on coupling PHP and Workers. They build on the great intro from John and tweak it to use simple PHP on the backend to do things such as making sure that your favourite library has been loaded into each Worker, so you can use it in your script. < Read the rest…

Posted by Dion Almaer at 6:03 am

3.1 rating from 27 votes

Wednesday, July 22nd, 2009

Jetpack to the future with recording Audio API

Category: JavaScript, Mozilla

The Jetpack project is still a young ‘un from Mozilla Labs (disclaimer: I work for labs!) but they are moving swiftly indeed, and each new release has a wicked cool new API that let’s you do something you couldn’t easily do before. With the Jetpack 0.4 release we see two cool APIs: Audio Recording API Read the rest…

Posted by Dion Almaer at 6:15 am

4.1 rating from 30 votes

Tuesday, July 21st, 2009

Wouldn’t it be Swell to be able to drag and drop between Web and desktop

Category: Framework, HTML, JavaScript

Christophe Eblé has kindly written a guest post on Swell JS and his drag and drop manager that works with your desktop. Here he tells us more: At Swell we were about to create a Drag & Drop Manager just like in other Javascript libraries such as Jquery, YUI, Mootools, Scriptaculous, but we were not Read the rest…

Posted by Dion Almaer at 6:06 am

4.5 rating from 59 votes

Monday, July 20th, 2009

A detailed look at how tracing, and TraceMonkey works

Category: JavaScript, Performance

David Mandelin has generously detailed an overview of tracing and TraceMonkey in particular. He starts out by explaining the problem at hand: making a dynamic language such as JavaScript fast is hard. How do you get type info in dynamic type land? Our goal in TraceMonkey is to compile type-specialized code. To do that, TraceMonkey Read the rest…

Posted by Dion Almaer at 1:06 pm

4.4 rating from 30 votes

Thursday, July 9th, 2009

Pimping JSON – YQL now offers JSONP-X!

Category: JavaScript, JSON, Yahoo!

Yesterday’s announcement of Yahoo’s YQL now supporting insert, update and delete overshadowed another interesting new feature: JSONP-X output. Here’s what it is and why it is useful: YQL data can be returned in XML which is annoying to use in JavaScript (for starters because of crossdomain issues in Ajax). JSON is much easier as it Read the rest…

Posted by Chris Heilmann at 10:48 am

2.3 rating from 40 votes

Lessons from Gmail: Using Timers Effectively

Category: JavaScript

Neil Thomas of the Gmail for Mobile team keeps coming with great information on lessons learned. The latest discusses timers, and how to use them effectively (setTimeout/setInterval). There are old questions here…. should you use lots of timers, or use one uber-timer that coordinates life? Here are some thoughts from Neil: When I first started Read the rest…

Posted by Dion Almaer at 6:13 am
1 Comment

4.2 rating from 38 votes

Wednesday, July 8th, 2009

Ouh, shiny! BBC’s Glow is finally out

Category: JavaScript, Library

After being rumoured and showcased at @media Ajax 2008 by Jake Archibald in a pretty epic presentation (audio) the BBC now finally went through all the red tape needed and Glow is available as open source. Glow is the BBC’s own JavaScript library and in use on their sites. The reason to build an own Read the rest…

Posted by Chris Heilmann at 8:21 am

3.3 rating from 55 votes

Thursday, July 2nd, 2009

GeoMaker – geo locations as microformats or a map from texts or URLs

Category: JavaScript, JSON, Yahoo!

As preparation for an upcoming tech talk about Placemaker I thought it would be good to take a bit of the pain out of the geolocation service by making an interface for it. Placemaker works the following way: you post some content or a URL to it, it goes through the content or gets the Read the rest…

Posted by Chris Heilmann at 3:02 am

3.8 rating from 14 votes

Wednesday, July 1st, 2009

A whole lot of testing for JavaScript implementations

Category: JavaScript, Standards

A couple of releases related to unit testing and JavaScript came out on the same day. First, the JScript team posted a set of ECMAScript 5 tests…. 900 to be exact, and the focus on features that are new to ECMAScript 5. All of the tests are released under New BSD. Then, the V8 team Read the rest…

Posted by Dion Almaer at 7:42 am
1 Comment

3.9 rating from 22 votes

Tuesday, June 30th, 2009

LABjs: Simple abstraction for loading dependencies correctly

Category: JavaScript, Performance

Kyle Simpson has developed LABjs, a library that lets you define your JavaScript file dependencies, and then loads them as efficiently as possible. Kyle told us: This project is a simple little tool (1.6k compressed!) for being able to load javascript files dynamically. It’s like a lot of similar projects where the goal is to Read the rest…

Posted by Dion Almaer at 6:16 am

4 rating from 40 votes

Thursday, June 25th, 2009

First beta of YUI 3.0 released

Category: JavaScript, Library, Yahoo!

Congrats to the YUI team for releasing their first beta of YUI 3: We’ve spent a lot of time in this release cycle refining the core elements of YUI 3 — YUI, Node, and Event — to ensure that we have the right API going forward. Performance is improved, and we’ve refined our module/submodule structure. Read the rest…

Posted by Dion Almaer at 6:52 am
Comment here

4.1 rating from 33 votes

JavaScript sandbox using Web Workers

Category: JavaScript, Library

We have been sandboxing JavaScript in iframes for a long time. The Web Worker API has the nice property that it doesn’t have access to objects like document and the like, and just runs code that you can pass over to it. With this, Elijah Grey has created an experimental jsandbox API that gives you Read the rest…

Posted by Dion Almaer at 6:17 am

3.1 rating from 24 votes