-
We ship features, not code.
-
We want as little code as possible
-
readibility counts 优先级是(从高到低): 交付功能,不交付代码,
目标驱动,不忘初心.
越少代码越好
没有代码,是最好的代码
代码精简化时,不能影响可读性
代码需要人去维护,那么可读性就必须考虑.
namespace is not for taxonomy!
用functools.wrap来解决问题.
类的作用只限于数据和方法的绑定.
dataclass就是最好的例子
a function name easier to read when it tells me what the function does instead of telling me what kind of function it is