正在加载视频...

视频加载失败

Morning bathrobe rant: Write your damned tests.

100,350 次观看 • 1 年前 •via X (Twitter)

11 条评论

kache 的头像
kache1 年前

it's true

Chenpi🍊 的头像
Chenpi🍊1 年前

I see what you are saying Problem is the person that approves the PR wrote the code…so now I hafta explain why they are dog 😭

growthesque 的头像
growthesque1 年前

only integration tests though, as per @htmx_org doctrine.

Coffee Fool 的头像
Coffee Fool1 年前

Got fresh coffee? We do.

R◎NNY 的头像
R◎NNY1 年前

Unfortunately, code turning me into horror barely has tests because people writing tests barely write horror code. 😁

TadasG 💻 的头像
TadasG 💻1 年前

yes! Especially with AI. Write tests Ask AI to refactor Use tests to make sure everything still works Don't crash prod Everyone happy Uncle Bob also happy

Nilo Stolte, PhD 🍁⚙️ 的头像
Nilo Stolte, PhD 🍁⚙️1 年前

I love the "hair style" 😂😂😂

Occam’s Chainsaw 的头像
Occam’s Chainsaw1 年前

How do you verify that all of the adverse outcomes are covered by the tests? I’ve found people love writing tests for the obvious stuff but fail to cover the tricky stuff i.e. where the tests are most needed

Uncle Bob Martin 的头像
Uncle Bob Martin1 年前

You refuse to write a line of production code until you have a test that fails because that line hasn't been written.

⛵️ jazzy 的头像
⛵️ jazzy1 年前

no :(

Uncle Bob Martin 的头像
Uncle Bob Martin1 年前

Yes!

相关视频