The Law of Leaky Abstractions

rw-book-cover

Metadata

  • Author: [[Joel Spolsky]]
  • Full Title: The Law of Leaky Abstractions
  • Category: #articles
  • Summary: Abstractions in programming, like TCP over IP, simplify complex systems but sometimes fail, causing hidden problems. This failure is called the Law of Leaky Abstractions, meaning no abstraction is perfect. As a result, programmers must still understand the underlying details to fix issues when abstractions break.
  • URL: https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/

Highlights

  • “泄漏的抽象法则”告诉我们:每当有人推出一款号称能让我们效率倍增的炫酷代码生成工具时,总会有不少人提醒:“先学会手动做,再用这工具省时间。”那些假装将某些东西抽象掉的代码生成工具,跟所有抽象一样,都会存在漏洞;而要真正妥善应对这些漏洞,唯一的办法就是弄清楚这些抽象是如何工作的,以及它们到底在抽象什么。所以,抽象确实能帮我们节省编写代码的时间,却无法让我们省去学习的时间。 (View Highlight)