Bugs happen.
It is part of software development and coding.
If you’re software and your code does not have any bugs associated to it, then you’re not pushing yourself.
You’re playing it safe.
You’re not pushing the envelope.
Make the bugs, log them, revel them – make your code better.
Than show it to someone and start the process all over again.