Category Archives: JavaScript
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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)
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, [...]

Subscribe
Follow
20000 Leagues Under the API: YouTube JavaScript