简单并不简单

博客探讨了“简单并不容易”的观点,提到大家常说的YAGNI和TSTCPW。指出不必首次就做到100%正确,可沿着TDD经典的Red/Green/Refactoring小步快跑。强调要拥抱变化,变化能让“可能有效的最简单的事”真正发挥作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

实际上,应该是“简单并不容易”,也就是 Simple is not Easy.在我们的日常口语中,简单和容易之间的区别真是微妙。实际我们都知道,simple is quite often Difficult.

好吧,我现在已经能准确的理解simple不是easy这个语义上的分别了,所以就开始对 What is the simplest thing? 有点兴趣了,因为大家越来越多的说YAGNI和 TSTCPW。不过,Udi Dahan告诉大家 It's does not matter,因为

The reason it doesn't matter is that we don't have to be 100% right the first time is because we're going to be changing it over, and over, and over again.


只要我们沿着TDD经典的Red/Green/Refactoring小步快跑,

 The nice thing about the one true path is that you don't have to be right on it.


所以,变化是需要拥抱的

Change is expected. Change is good. Change is what makes "the simplest thing that could possibly work", in all it's clear-as-mud-ness, really work, without forcing developers to agree ahead of time what it actually means.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值