Forwarded from Reorx’s Forge
强烈赞同。我的全局 Cursor rules 里有这么一条是我自己写的:
https://t.me/ningxueye/343
- Develop functions with a test-driven development mindset, ensuring each low-level function or method intended for reuse performs a single, atomic task, but avoid adding unnecessary abstration layers.
https://t.me/ningxueye/343
Telegram
ARCADIA
于我而言,TDD (测试驱动开发)最大的意义在于倒转思考的方式。
当我写出一个合格的测试用例时,我通常能够获得至少三项保证:
1. 待测功能的职责单一,否则测试代码会很冗长。
2. 外部依赖能够被注入,否则我将无法运行这个测试。
3. 接口设计的合理,因为我需要在写测试用例时思考我想怎么使用自己的代码。
接下来,只要我的实现通过这个测试,我就能够获得这些好处,这是很强的正反馈。
#碎碎念
当我写出一个合格的测试用例时,我通常能够获得至少三项保证:
1. 待测功能的职责单一,否则测试代码会很冗长。
2. 外部依赖能够被注入,否则我将无法运行这个测试。
3. 接口设计的合理,因为我需要在写测试用例时思考我想怎么使用自己的代码。
接下来,只要我的实现通过这个测试,我就能够获得这些好处,这是很强的正反馈。
#碎碎念
👍1
Dia 浏览器这个 changelog 的形式还挺有心意的。一般的软件都是直接弹出一个窗口的,Dia 是直接弹出一个十几分钟的 YouTube 视频,像一个纪录片。而且 YouTube 视频可以用 Dia 快速进行总结,几秒钟就完成了,交互丝滑。另外 Dia 开始集成了 memory 功能。
但是我的邀请码怎么还是不能用啊!!!
https://www.youtube.com/watch?v=bD9rV2bYsio
https://www.youtube.com/watch?v=bD9rV2bYsio
YouTube
[This Week in Dia] April 14, 2025, v0.25
A new experiment!
We know the Dia Students Slack can get noisy... so we made this video to highlight a few of our extra favorite things you may have missed. Demos of new & recent features from Adena, a BTS look at how we're thinking about Dia's future,…
We know the Dia Students Slack can get noisy... so we made this video to highlight a few of our extra favorite things you may have missed. Demos of new & recent features from Adena, a BTS look at how we're thinking about Dia's future,…