Yup, which is why those of us that do care about our health just can't wait to maintain the code of those that feel this way after they either die young or end up feeble and unable to maintain themselves much less their projects!
Your brain and whatever else on your body you're currently using to get code from brain to computer are surrounded by a lot things that are important to keep them running and talking to each other. Forget that, and they'll stop. Quickly, and painfully.
I would disagree with that point then. Staying up most of the night and therefore sleep depriving yourself will make you less cognitively able the next morning compared to if you slept 8 hours, but the amount you are able to write in the time you chose to stay up outweighs the slight increase in productivity you would have the next morning from sleeping all night.
And more specifically, even to those of us where it is a high priority, it doesn't have to be 24/7. Like going partying at the weekend is for many "healthy" people, so things like hackathons and Red Bull binges can be for hackers too.