The best thing about writing code is the immediate feedback.
It works or it doesn’t.
Your code pumps out oodles of value or it returns bugs.
Bugs are great, they never go out of style and you get the same level of response to what you are doing – immediate feedback as to whether you’re on the right path or the wrong one.
Never fear the bug, fear the program that has no bugs.