Been there and done it.

I used to develop sites locally before I went live.
Now I develop live but check the discourage search engines box until the site is complete or almost complete.
Because that's the way I develop I have a reminder on my "to do" list to uncheck the box.