IIRC, after around 60 hours of coding, developers start introducing bugs faster than they fix them. This obviously varies from person to person, but yeah, you can do negative work pretty easily in software by not thinking. It took me a long time to learn to just quit for the day and get a good night's sleep when i'm struggling with something for an excessively long time.