I really wouldn't say hours of your life due to a misspelling. It's normally a pretty easy fix if you're alright at English.
Programming can be very tough at the beginning then as you start to learn it gets easier. Also, learning a new syntax can be difficult.
jacking off helps
other than that i just lay in bed with some music and read a book/webtoon/manga or try to sleep
for some reason i type like 3x faster when down. typing this at lightspeed