软件编程原则

2018-06-21  本文已影响19人  后尘L

principles
The Principles of Good Programming

KISS

Keep It Simple, Stupid!
Most systems work best if they are kept simple rather than made complex.

Why

Resources

YAGNI

YAGNI stands for "you aren't gonna need it": don't implement something until it is necessary.
不要为了未来可能的需求而过分设计,在大部分情况下,未来可能的需求不会发生。所以,Do the Simplest Thing That Could Possibly Work

Why

How

Resources

Keep things DRY

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

Each significant piece of functionality in a program should be implemented in just one place in the source code. Where similar functions are carried out by distinct pieces of code, it is generally beneficial to combine them into one by abstracting out the varying parts.

Why

How

Resources

Related

上一篇 下一篇

猜你喜欢

热点阅读