A program can controls its users. The developer controls the program.
Write code to work is obvious. But you also have to write code to survive. There is a phrase that warns about the dangerous illusion of excessive work without planning:
“Those all-night programming stints make you feel like the greatest programmer in the world, but then you have to spend several weeks correcting the defects you installed during your blaze of glory“. (Steve McConnell in Code Complete)
I also spent weeks fixing defects generated in moments of glory and correcting defects for which companies had been hired for months without saying what the cause of the problems was.