Image unavailablePortrait pending
Chapter 4 of 7
The Fog’s bug
“Someone’s been messing with your code. The night-mode button is dead. Before you yell ‘it doesn’t work’ at the AI: open the console. That red text isn’t an insult, it’s a clue.” PATO
Encrypted transmissionThe video is coming soon. The chapter reads and plays just the same.
Golden rule: never paste a password, a key or personal data into an AI or into your code. Everything here is made up: the places, the code and the keys. Nothing you tick leaves your browser.
// PATO
“The script was looking for a button that didn’t exist yet: it ran before the page had loaded. MOLDE was counting on you not checking the console. You checked. Nice one.”
What you take away
- The browser console tells you what’s failing and on which line.
- “It doesn’t work” isn’t a bug report: say what you expected, what happens and the exact error.
- Give the AI the bit of code that matters, not everything and not nothing.
- Explain the problem out loud (or to the duck): sometimes you find it first.
- Check the fix; don’t trust “Done!”.