adequately good

decent programming advice

written by ben cherry



all articles from the year 2009

Consul.js, Simple Logging Abstraction

I've been reading Coders At Work by Peter Seibel, and one question he asks in every interview is "How do you debug - print statements, debugger like gdb, or something else?". For me, print statements are my first tool for any situation. That's why Firebug is so crucial to my work on the web, because writing and debugging advanced JavaScript would be a nightmare without it. While ...

About Ben

Ben Cherry does front-end engineering at Twitter.

When he started this blog, he thought he'd be writing a lot about Python, but was surprised to discover that he really likes JavaScript, so he mostly writes about that instead.

Follow him at @bcherry.

Managing CSS Through Javascript

This post has been migrated from my old, defunct blog at bcherry.net. The links may not work, and the formatting may be wonky

It's often very difficult to keep track of what CSS goes where. Especially when you load up on Javascript controls and files in a large application, which render markup that depends on some CSS being there. One solution is to "inline" the CSS ...

SimpleThreading: JavaScript Pseudo-threads

This post has been migrated from my old, defunct blog at bcherry.net. The links may not work, and the formatting may be wonky

I've been playing around with asynchronous Javascript for repeated large-set actions, in the hopes of generating some useful techniques for real applications. I've narrowed down a successful technique that I call "simplethreading". Check out a demo here or the resulting source code ...

Javascript Pseudo-threading

This post has been migrated from my old, defunct blog at bcherry.net. The links may not work, and the formatting may be wonky.

I've been playing around with asynchronous Javascript for repeated large-set actions, in the hopes of generating some useful techniques for real applications. I've narrowed down a successful technique that I call "simplethreading". Check out a demo here or the resulting source code ...

go next