John Lam 1997 — 2026

The Law of Leaky Abstractions

During a break in my Programming ASP.NET class at Microsoft SVC, Joel Spolsky’s most excellent Law of Leaky Abstractions essay turned up in my RSS feed aggregator. I quickly read it during the break, and then I had my students read it.

It was a hit.

I was amazed when one of my students identified a “leaky abstraction” in ADO.NET when we discussed it in the afternoon. Joel’s label began to stick with both me and my students, and I see it as a powerful educational tool.

I used to speak of “leaky abstractions” when I explained to students why they had to understand their technology at one level of abstraction lower than where they worked every day. ADO programmers needed to understand how their database worked, ASP programmers had to understand how IIS worked, Visual Studio developers needed to understand how the wizard-generated code worked. Unfortunately, I didn’t have a catch-phrase like “leaky abstraction” to label things with. Joel’s catch-phrase works exceedingly well. Thank-you, Joel!

Leaky abstractions has now joined my two other favorite models for rationalizing why a software technique is useful:

  • Reducing friction
  • Seven plus or minus two