String Performance: an Analysis May 9th, 2008 at 12:02 am by Tom Trenka

Recently I was writing a “tips and tricks” blog post that was going to focus on the idea that it is better to use an object as a “string buffer”; the idea was that by passing this object around to various functions and pushing string fragments into it, you can get better performance from a JavaScript engine. My friend and colleague Alex Russell challenged me to show him hard data supporting this hypothesis—and the results were quite eye-opening!

String performance by browser

(more…)

SitePen, Dojo and CometDaily icons for your iPhone January 16th, 2008 at 11:26 am by Tom Trenka

The SitePen iPhone iconWith the release of the iPhone 1.1.3 firmware update, Apple has given us the ability to create custom “webclip” icons (think “favicon” for your iPhone and iPod Touch) by adding a special file called “apple-touch-icon.png” to the root of your website (same place as the favicon). As an example, to the left is the new icon for SitePen.

If you have an iPhone, give it a whirl: hit the SitePen home page and add it to your home!

(Webclip icon linkage from Daring Fireball, Dan Dickinson, and Hicks Design.)

Softening polylines with DojoX Graphics July 16th, 2007 at 2:46 pm by Tom Trenka

One of the more exciting projects coming out of the Dojo Toolkit is DojoX Graphics–a cross-browser API for creating vector graphics. Over the next few months, I’ll be writing a series of tutorials showing you how you can use DojoX Graphics to accomplish a number of tasks–starting with showing you how to soften a polyline like this:

Straight polyline…to this…Eventual spline representation…using cubic bezier curve segments.

(more…)

On writing training programs April 9th, 2007 at 9:21 am by Tom Trenka

In the past two or so months that I’ve been an employee of SitePen, my main task has been to design and write the materials for the majority of our new training course offering’s including slides, activity handouts, working code equivalents, slide design (which in the end Torrey did, a brilliant job too), and other branding aspects. On top of that, I’ve had to design these materials in such a way as to allow any of the SitePen instructors to create a specific course in a minimum amount of time with the ability to cherry-pick among various topics all to give our clientele the best learning experience possible.

The result has been to take a modularized approach to training materials. Like with the Dojo Toolkit (the main focus of our training offerings), I created a set of resources by topic that any of our instructors can then use to assemble a full presentation. You simply open the Keynote presentation on that particular topic, and drag all of the slides to the show that you’re working on. Very simple and neat!
(more…)