Skip to Content
先整理?
book

先整理?

by Kent Beck
May 2025
Intermediate to advanced
124 pages
1h 7m
Chinese
O'Reilly Media, Inc.
Content preview from 先整理?

第 III 部分. 理论

既然我们已经了解了Tidy的内容以及Tidy的方式时间,我们就可以讨论一下为什么要Tidy。您不需要确切地知道药物是如何起作用的就能体验到它的效果,但知道它是如何起作用的会让您对它有更深的了解,并能让您在新的情况下使用药物。

理论说服不了人。没有人会说:"Tidy 是胡扯。 哦,等等,你在创造可选性。我想这毕竟是个好主意"。

理解理论,优化应用。软件设计中永远存在的问题是

  • 何时开始做出软件设计决策?

  • 何时才能停止软件设计决策,转而着手改变系统行为?

  • 我该如何做出下一个决定?

这些问题无法从理性、逻辑上得到答案,因为当我们提出问题时,找到理性、逻辑答案所需的信息并不存在。

了解理论可以提高你的判断力,以便在需要回答这些问题时进行推测。了解理论能让你在与其他怪才的意见分歧时更具建设性。

有时,当我想做 X 而你想做 Y 时,我们的分歧其实很简单。我们都想实现同一个目标,但方式不同。当我们的分歧更深时,理论会有所帮助。当我们试图实现不同的目标时,分享一个理论框架就变得很有价值。

如果我们在原则上有分歧,我们可以讨论我们的原则,那么我们就有机会尽快就该怎么做达成一致。我们也有机会相互学习。如果我们纠结于 "X"、"不,Y",那么我们就陷入了意志之争,很可能通过我们在关系中的相对权力地位来解决。

本书的这一部分涉及以下问题:

  1. 什么软件设计?

  2. 软件设计如何驱动软件开发和运营成本,软件开发和运营成本又如何驱动软件设计?

  3. 投资软件结构与不投资软件结构之间的权衡是什么?

  4. 我们可以利用哪些经济和人文原则来决定是否以及如何改变软件的结构?

在整个旅程的开始,我们说 "软件设计是人际关系的练习"。本书主要关注的是你与自己的关系:在工作之前,你是否足够重视自己,让工作变得更轻松?但这只是旅程的第一步。在本节中,我们将探讨人际关系中最顽固、最复杂的一个方面:金钱。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

超越Vibe编程

超越Vibe编程

Addy Osmani
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9798341656949