Predicting the output before running it is how a script I can't write from scratch ended up automating real work
Описание и применение
Автоматизация обновления паролей в CSV‑файлах с помощью Python‑скрипта, созданного по принципу «предсказывай, проверяй, исправляй».
Задача
Automating a manual CSV password update process without writing code from scratch.
Результат
The script automates password updates, includes backup, error handling, and verification, replacing a manual process.
Рабочий процесс
- Specify the exact desired behavior before coding.
- Generate the code using an AI assistant.
- Predict the output and behavior of the generated code.
- Run the script and compare actual results to predictions, learning from discrepancies.
Доказательства
It searches CSV files of accounts, finds someone by name or login, and safely updates their password. It backs itself up before touching anything, handles a batch job's leftover error rows without crashing, and replaced a manual find-and-edit process I used to do by hand.
- Дата записи: 2026-09-15T07:46:55.201Z