Archive for the ‘Uncategorized’ Category

SICP Week Two: The Experience

Monday, September 17th, 2007

As week 2 comes to a close, I feel compelled to write something about the difference between orthodox computer science pedagogy, as embodied by SICP, and the approaches taken by books of the variety of “Teach Yourself X in Ten Minutes.” I’m writing about technical topics in another post. This post is devoted mostly to the experience of tackling this material and a few musings on the psychology and the ethics of wicked-hardness. It is intended as commiseration and encouragement for the fellow autodidact.

(more…)

SICP: Week One

Tuesday, September 11th, 2007

We’re just getting started on the MIT OpenCourseWare course Structure and Interpretation of Computer Programs. I got a lot of responses from interested people, which is exciting. So far we haven’t encountered much worth chatting about, but I’m thinking the material’s difficulty is going to increase quickly. In the meantime, I’ve jotted down a few notes about 1) why recursion is important, 2) the role of abstraction as a learning tool, and 3) the geekiest videos imaginable.

(more…)

unittest.js: Writing unit tests for Javascript

Wednesday, August 29th, 2007

A while back I posted a long investigation of Scriptaculous’s unit testing framework, which is in the unittest.js file distributed with Scriptaculous. I’ve gotten around to writing some actual tests, so if you’d like to read about how it works, check out my little article about implementing unittest.

Comments re-enabled

Sunday, August 26th, 2007

So, I haven’t been accepting comments on my posts for a while now. From a practical standpoint, it’s because I hate spam, and spam was all I was getting. In a more philosophical vein, I liked Dave Winer’s stance on comments, and Joel Spolsky’s gloss of Dave Winer’s stand — if you want to comment, post a comment on your own blog.

But I’ve discovered Akismet, and I’ve also started getting some signs that a few people are reading my posts. So, comments are re-enabled, for now. I reserve the right to disable them again. I’ll see how it goes.

Ummm… anyone care to comment? :-p

Seven for Scheme

Wednesday, August 22nd, 2007

Thanks to a plug from my study group from Lispy, I’ve gotten several emails from interested Schemers, and there are now seven of us. I’ve decided to “close admissions” now, since I don’t think a really big group would be advisable.

I’ll be posting this fall about the course, so please follow along if you like. Hopefully we can engage a larger group this way. It’s going to be exciting.

Some surprising stuff JavaScript can do

Tuesday, August 21st, 2007

As promised, here are some links to work real programmers are doing on JavaScript. First, from raganwald, the self-described passionate software developer with the mighty Viking name, a long examination of using block structures in JS. And from Eric Kidd, a guy who describes himself as “into compilers, robotics, and programming language design”, here’s a post about Ruby-style metaprogramming in JavaScript. Read on for my admiring comments.

(more…)

Towards more bottom-up programming with JavaScript

Tuesday, August 21st, 2007

In my latest dispatch on JavaScript, I describe some curious ways to decompose your program into functions that return functions. This technique seems to promise programs that are structured into more cohesive and smaller pieces, and the process of coding accordingly sure feels like working from the specific to the general. Plus I produce, among other things, a possibly gratuitous example of currying in JavaScript.

(more…)

SICP on MIT’s OCW anyone?

Tuesday, August 14th, 2007

Update: I’ve signed up six people for the study group, and I’m capping the size of the group there.

Hooray for acronyms. How else could I fit all that information into my post’s title. To unpack the question — is anyone interested in joining me in taking the MIT course 6.001 Structure and Interpretation of Computer Programs, via the MIT OpenCourseWare site?

(more…)

Blackle: small steps, when multiplied, make a differencce

Monday, August 13th, 2007

My next-door neighbor just told me about Blackle, a site that presents a Google custom search on a black background with gray text. The site’s owner, Heap Media, produced this in response to a blog post that claimed megawatts of energy could be saved worldwide if the millions of screens displaying Google’s main page every day didn’t have to fire up all those white pixels. What a constructive idea.

(more…)

4 Things I Hate about the Internet

Friday, August 10th, 2007

You know what I hate? Captchas, Challenge questions, spam-nine, and squinchband. Open rant tag here…

(more…)