Remix.run Logo
1zael 7 days ago

> "when test fail, they are left guessing as to whether to fix the code or the tests"

I've one thing that helps is using the "Red-Green-Refactor" language. We're in RED phase - test should fail. We're in GREEN phase - make this test pass with minimal code. We're in REFACTOR phase - improve the code without breaking tests.

This helps the LLM understand the TDD mental model rather than just seeing "broken code" that needs fixing.

cortesoft 6 days ago | parent [-]

Sure, but isn't the issue when you are trying to move from the RED phase to the GREEN phase... are you still getting red because the test was bad or because the code isn't working yet?