What Should Beginners Never Put in Their Code?
A short list of things that cause real problems when they end up in a script, most of which arrive because the quickest way to make something work is to type them in.
AI has changed what a beginner can build in a weekend, and it has also produced a great deal of code that runs, looks right, and is quietly wrong. These guides work both sides: how to get useful code out of an assistant, and how to check it before you trust it. There are guides for people writing their first script and guides for people reviewing a pull request they did not write, and each one says which is which at the top.
A short list of things that cause real problems when they end up in a script, most of which arrive because the quickest way to make something work is to type them in.
Some code costs more to debug than to replace, and recognising that is a legitimate engineering judgement rather than an admission of defeat.
The question arrives after an incident, and the answer has not changed: the person who merged it. What has changed is how easy it is to feel otherwise.
A small application still has obligations, most of them satisfied by a page of text and a decision not to collect things you do not need.
Having built something you do not understand is a reasonable starting point for learning, provided you treat the project as material rather than as an achievement.
Spreadsheet work is the most common reason a non-programmer writes a script, and the difference between a CSV and a spreadsheet causes most of the early confusion.
Switching costs less than people assume and is worth doing less often than the release cycle suggests, and there are specific signals that justify it.
The fix is the least valuable output of a debugging session, and the things worth keeping take about five minutes to record.
Output has stopped being a measure of progress, so the signals worth watching are about what you can do unaided rather than what you produced.
The second version is harder than the first, because now there are users, data and things that already work and must continue to.
Large changes are reviewed badly by everybody, and pasting the whole thing into a model produces an even, superficial pass that misses the part that mattered.
The error stopping is weak evidence, and the step that produces real confidence takes about a minute and is almost never done.