Topic
AI-assisted development
Coding assistants speed up your team when tests and reviews set the frame.
AI coding assistance: fixing a bug
Simulation. A small pricing function rounds incorrectly — the suggestion and test run are simulated.
price_with_vat.py — buggy
def price_with_vat(net_cents: int, vat_rate: float) -> int:
gross = net_cents * (1 + vat_rate)
return int(gross) # truncates instead of roundingFailing tests
- test_price_with_vat_19_percentfailing
- test_price_with_vat_7_percentfailing
- test_price_with_vat_rounds_half_upfailing
Proposed change
Ready for a suggestion.
What you gain
- Faster delivery without losing quality
- Rules so suggestions fit your project
- Training so everyone works with it safely