so the other day i'm happily running my automation when it starts breaking, even though the test was working just a few minutes ago. Dig down a little bit and my SUPER GOOD code is breaking between the hour of 5-6pm because reasons. Now part of the handler for this code was in a ternary statement, and so I figured I'd just slap an OR in there and add another ternary. It looked kinda like this ((d.getHours == 0 ? d.getHours + 12 : d.getHours) || (d.getHours < 12 ? d.getHours -12 : d.getHours)). So I sent that to one of my developers who is a quiet, sarcastic kid, and he just sends back "OMG WHAT THE FUCK IS THAT". So I go up and start explaining to him why my code is breaking between 5-6pm, and he's cracking up. He opens up the date handler for the actual platform I'm writing automated tests against and it was written with about 3 more layers of abstraction than necessary in order to do the modifications I need to support. We then discover that there are several functions in the date handler that do not have any references to them at all.
About this time another of our devs walks in and announces, "Hey guys! Guess what I'm doing! I'm hardcoding a bunch of static user roles into our dynamic roles service so that they will statically be able to handle dynamic roles!"
Professional software development in a nutshell.