I will drill a dozen messy holes in the wall trying to put up a curtain rail.
But isn't it the case that doing something for the first time will never be perfect. The first time I put up a curtain rail, there were holes everywhere. The second time, there were still a few; the third time, I had a couple of attempts but the last few times, it's been fine. Similarly, putting up shelves - there are a few random holes but as you do more and more, it's fine.
I'm a bit surprised at some of things in this thread. If you're only doing the odd job, then of course things aren't going to go well, but the more you do them, the better you'll be.
This doesn't just apply to DIY, it's the same with anything - driving, playing football, cooking ... you name it and it will take practice.