AI Coding Tip 033 - Write the Failing Test First and Ban Deletions

https://hackernoon.imgix.net/images/RIiBoPtpMiRsMKX3dnzl5gb1Urj1-f4839qd.png

When all tests pass doesn't mean what you think it means.

TL;DR: Write the failing test first and ban deletions, or the AI deletes your test, reverts your fix, and calls it done.

Common Mistake ❌

You ask the AI to fix a failing test, and it deletes the test instead of touching the defect that made it fail.

Problem solved, apparently.

You tell the AI every test passes, then change a business rule yourself, and you ask it to implement whatever the new rule requires.

It reverts your edit back to the old rule, watches the suite go green again, and cheerfully reports done.

It didn't fix anything.

It just made the evidence go away.

Congratulations, you now have a very well-behaved cheat!.

Efficient and completely fraudulent, which is more than you can say for most of your actual employees.

Isaac Asimov saw this coming: in Liar!, the...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://9to5google.com/wp-content/uploads/sites/4/2026/03/gemini-logo.jpg?quality=82&strip=all&resize=1200,628

Google says free Gemini users will be limited to the 3.5 Flash-Lite model from October 9, while Plus subscribers will be limited to 3.5 Flash-Lite and 3.6 Flash

Sponsor Posts Subquadratic: the LLM built for 12M-token reasoning — SubQ can reason across entire codebases and document sets in one pass with no RAG workarounds. Read how SubQ 1.1 Small holds near-perfect retrieval out to 12M tokens. Introducing Campus: The digital home for educational institutions — Every educational institution needs

https://images.moneycontrol.com/static-mcnews/2024/06/20240627153836_flipkart1.jpg

Sources: Walmart's Flipkart faces sagging employee morale as Indian startup rivals power ahead with IPOs; at least eight VPs and SVPs have quit in recent weeks

Sponsor Posts Subquadratic: the LLM built for 12M-token reasoning — SubQ can reason across entire codebases and document sets in one pass with no RAG workarounds. Read how SubQ 1.1 Small holds near-perfect retrieval out to 12M tokens. Introducing Campus: The digital home for educational institutions — Every educational institution needs

https://pic1.calcalist.co.il/picserver3/crop_images/2024/02/13/BJvzbnuja/BJvzbnuja_0_55_2000_1126_0_large.jpg

Valley National Bancorp agrees to acquire New Jersey-based Bluevine, which provides digital banking and payments services for 175K SMBs in the US, for $340M

Sponsor Posts Subquadratic: the LLM built for 12M-token reasoning — SubQ can reason across entire codebases and document sets in one pass with no RAG workarounds. Read how SubQ 1.1 Small holds near-perfect retrieval out to 12M tokens. Introducing Campus: The digital home for educational institutions — Every educational institution needs