Category Archives: JavaScript

20000 Leagues Under the API: YouTube JavaScript

Today, children, we’ll be exploring the wonderful world of the official JavaScript API published by YouTube a few weeks ago. I read a few interesting posts on the subject when it first came out, and it’s been on my list of things to explore for the next (and hopefully last) version of Alarmd. This isn’t [...]
Also posted in CSS, Reviews | Tagged | Leave a comment

Code Like the Big Boys: Flickr

Code like the Big Boys is a series of posts about code solutions used by major websites. What can we learn from these professional websites to use in our own code? JavaScript Looking at the source code of the Flickr home page is actually pretty strange. For one, there is only one JavaScript source code [...]
Also posted in CSS, Reviews | Tagged , | 3 Comments

Tips for Programming JavaScript Functions

This article is about my personal coding style, given little tips and tricks that I use to make my code cleaner and more readable. Required and Optional Arguments There are generally two styles used when programming a new function in JavaScript. The first, most obvious, and least extensible method is putting each argument as its [...]
Posted in JavaScript | Tagged | 4 Comments

Architecture Choices: Callbacks and Events in JavaScript

Warning: Blog Post written for Beginner and Intermediate JavaScript Developers Like any well intentioned programmer, you’re writing reusable code in JavaScript. Maybe it’s a simple widget, maybe it’s a higher level plug-in for your favorite JavaScript library. But now you want to provide a mechanism for your friendly neighborhood developer to extend your code by [...]
Posted in JavaScript | Tagged , , | Leave a comment

Yet Another Pretty Date JavaScript

I can’t let this Pretty Date thing go. I decided to use a modification of John Resig’s Pretty Date JavaScript implementation written by Dean Landolt and shared in the comments on John’s page. The script was an obvious choice for the next iteration of Alarmd, which is nearing completion as I type. The more I [...]
Also posted in Projects | Tagged , | 25 Comments

Specific Inheritance with TIBCO’s General Interface

Sorry about the title, I couldn’t resist. TIBCO created the General Interface (GI) toolkit for one-page in-browser applications back before I was in my JavaScript diapers. I hadn’t even graduated from high school yet when they were building Rich Internet Applications using some of the most feature crippled browsers in Internet history, back when cross [...]
Posted in JavaScript | Tagged , | 2 Comments

Quine using XHTML and JavaScript

Programming Hilarity! He has a generator, and a pre-generated example. Wait, what’s a quine, you say? In computing, a quine is a program, a form of metaprogram, that produces its complete source code as its only output. – Courtesy of Wikipedia: Quine (computing)
Posted in JavaScript | Tagged | Leave a comment

Faster YUI DataTable with 5 Lines of Code

Holy Reflows Batman! The typical usage of a DataTable in the Yahoo User Interface JavaScript library involves passing a string into the constructor signifying the ID attribute of the container you want to attach the DataTable to. However, the YUI DataTable loves the DOM and creating nodes individually using DOM methods. Normally that’d be fine, [...]
Posted in JavaScript | Tagged , , , | 1 Comment