This is something that I have learned the hard way. 🙂 Don’t code when you are tired, night time really isn’t the best time to code. It may be the case that you’ll have to do everything at least twice.
Also when posting or publishing something, it’s better first sleep over night.
Image courtesy of Peter Haken at FreeDigitalPhotos.net