2020年/04月/17日

首页回退

90%的成功

原文

targeting these 3 things will get you 90% of the way to success

90%概率成功的三件事

Following YAGNI and KISS
Implementing Domain-Driven Design (DDD)
Doing unit testing
YAGNI stands for "You aren’t gonna need it" and advocates against investing time in functionality that’s not needed right now
KISS is about keeping the remaining functionality simple
Focusing on the core domain
Maintaining encapsulation

两个理由

Opportunity cost
The less code in the project, the better
There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies.

 — C. A. R. Hoare.
Object-oriented programming makes code understandable by encapsulating moving parts. 
Functional programming makes code understandable by minimizing moving parts.