learning-it by example

Back to the video

Vibe Coding vs Engineering: Audit a Quick App in Python

An audit that runs a quick sign-up app finds 4 problems; the fixed version passes all 4 checks.

Video #177 ยท AI coding and productivity

Steps in the video

  1. 0:00 The audit found 4 problems in the quick app. The fixed one had none.
  2. 0:40 The idea
  3. 1:12 Setup
  4. 1:40 The quick app
  5. 2:10 Run it to find problems
  6. 2:44 Tests and config
  7. 3:18 The fixed app
  8. 3:49 The tests
  9. 4:33 What this does not show
  10. 5:01 Mistakes to avoid
  11. 5:30 My take and next steps
  12. 5:52 Recap

Files

  • app.py (20 lines)
  • app_fixed.py (28 lines)
  • audit.py (64 lines)
  • test_app_fixed.py (30 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

The quick app was written by hand for this video to have problems; it is not output from any AI tool, and zero problems means only that these four checks passed.

Sources

Learning IT by Example.