关于软件工程:翻译软件设计的哲学2-复杂度的本质

12次阅读

共计 1572 个字符,预计需要花费 4 分钟才能阅读完成。

Chapter 2 The Nature of Complexity

第 2 章 复杂度的实质

This book is about how to design software systems to minimize their complexity. The first step is to understand the enemy. Exactly what is“complexity”? How can you tell if a system is unnecessarily complex? What causes systems to become complex? This chapter will address those questions at a high level; subsequent chapters will show you how to recognize complexity at a lower level, in terms of specific structural features.

本书就是对于,如何设计软件系统,能够使得复杂度最小化。第一步就是要意识敌人。那到底什么是“复杂度”呢?怎么判断零碎过于简单?是什么让零碎变得复杂?本章节会在高层次上解答这些问题;后续章节会为你展现,如何从低层次上遵循一系列特定的构造上的个性去意识复杂度。

The ability to recognize complexity is a crucial design skill. It allows you to identify problems before you invest a lot of effort in them, and it allows you to make good choices among alternatives. It is easier to tell whether a design is simple than it is to create a simple design, but once you can recognize that a system is too complicated, you can use that ability to guide your design philosophy towards simplicity. If a design appears complicated, try a different approach and see if that is simpler. Over time, you will notice that certain techniques tend to result in simpler designs, while others correlate with complexity. This will allow you to produce simpler designs more quickly.

认出复杂度的能力,是一种至关重要的设计技巧。它能够让你在投入大量精力之前,就能定位出问题,而且还能让你在多个计划中找到好的抉择。看出一个设计是否外表上比本质上更简略,比起建造一个简略的设计,是更容易的。然而一旦你能看出零碎过于简单,你就能够用这项能力去结构“导向简洁的哲学”。如果设计看起来简单,用另外的办法看看能不能让它简化。长此以往,你就会留神到,是有特定的技术让设计走向简化,而这些技术以外的货色,就关系到了复杂性。这样你就能够更疾速地发明更简洁的设计。

This chapter also lays out some basic assumptions that provide a foundation for the rest of the book. Later chapters take the material of this chapter as given and use it to justify a variety of refinements and conclusions.

本章节还列出了一些根底的假如,来为书中剩下的内容铺路。余下章节会用到本章给出的内容,并用于论证一系列的改良和论断。

正文完
 0