February 2010
17 posts
Modularizing jQuery's $(document).ready()
While domready-type events are a welcome addition to modern JS programming, many people abuse them by dumping all of their code in there. This keeps the script overhead of your pages high when often pages only need certain functionality. There are plenty of approaches to modularizing you initialization code, but a simple approach built off of <body> ids is my go-to method.
The first step...
I read through Tom Colicchio’s Thinking Like a Chef this week, and the one thing that really stuck out to me is his aversion to high heat cooking. For a lot of people (myself included) the zenith of protein preparation is a ripping-hot cast iron skillet and a ride in the oven to finish. This high heat cooking imparts a great crust on the meat but at what cost? Colicchio is a firm believer...
Approximating resizeComplete in jQuery
Most browsers fire resize events continuously as the viewport is scaled. This is handy when your interface needs to change responsively during a resize, but a PITA if you only need to perform a single action when it’s “done.” Even worse is when that action is resource-intensive (such as an animation), as it can render your resize choppy or unbearable. I was faced with this very...
Potato Risotto
Last night I made and fell in love with potato “risotto,” a side dish found in this month’s Bon Appétit magazine. It requires a bit of knife work to get a uniform brunoise out of the potatoes, but the contrast of textures and flavor are both well worth the effort.
1 tbsp butter
1 cup finely diced onion
1 lb yukon gold potatoes brunoised
1/8 tsp cayenne pepper
pinch...
I too have thoughts on the iPad
I’ve given myself some time to mull over our latest gift from benevolent leader and arrived at this: bad name, exciting thesis, and nascent execution.
I’m happiest for Cassie, as come June she’ll have a shiny new iPad that fulfills her every need as a simple and inexpensive internet machine. I don’t feel like the iPad in its current form is compelling enough to steal me...
Tuning →
bobulate:
Kathleen Mallery on finding the best piano:
“What’s the best piano out there?” I asked. The piano tuner’s eyes sparkled. ”I always get asked this question. Everyone always wants to know — what’s the best piano. And I always say, the piano that’s in your living room.” ”It’s all about getting it tuned right, bringing out its own sound and then when you play, you play the piano that’s...