It’s fine—you get used to having to throw away the last hour’s work, but since you were scrolling twitter at the time it’s not that much of a loss...
If you roll the dice enough times you get your answer. Or at least close enough for you to not have to have written what it came up with. And every now and then it gets things perfectly right on the first try!
Oi! I take issue with you calling my code slop! That was good old fashioned the least rubbish option available, which then grew out of hand! Also known as not knowing how to do frontend properly...