HN 精选

Object-Oriented Programming is Embarrassing: 4 Short Examples

Brian Will
6 人推荐 · 跨 5 个月 · 2016–2025
软件架构与系统设计软件工程实践、开源与职业发展
Object-Oriented Programming is Embarrassing: 4 Short Examples

中文导读

Brian Will 延续其对面向对象编程(OOP)的反思,通过包括 Uncle Bob 风格 Java 代码在内的四个具体案例,生动演示了 OOP 如何将原本简单的程序变得臃肿,指出其封装隐藏并割裂了状态,引入了大量无谓的间接层。

为什么 HN 推它

论点尖锐且全由真实代码驱动,直击 OOP 与教条式 Clean Code 的痛点,在 HN 讨论软件设计与反思 OOP 时常被作为标杆视频反复提及。

「强烈推荐 YouTube 上的《面向对象编程很糟糕》和《面向对象编程令人难堪》。」HN 网友原话:I highly recommend "Object Oriented Programming is Bad" and "Object Oriented Programming is Embarrassing" on Youtube.
英文原摘要(HackerTube / Claude 整理)

Brian Will follows up his earlier anti-OOP video by walking through four short code examples, including Java code in the style of Uncle Bob, to show how object-oriented design complicates simple programs. It argues that OOP hides and scatters state and adds needless indirection.

HN commenters point to it as a sharp, example-driven critique of OOP and Clean Code style, often alongside Brian Will's other anti-OO videos.

HN 上的提及

rec DrScump · 2016-03 · HN 原文
Perhaps the Brian Will anti-OO videos provide more useful examples
reference thunderbong · 2016-03 · HN 原文
it rings too close to my experience
reference lj3 · 2016-12 · HN 原文
There are three talks, actually.
rec smnplk · 2019-10 · HN 原文
Check out this video
rec lazulicurio · 2019-10 · HN 原文
The blog post and related youtube videos are pretty interesting as well[2][3][4].

相关视频