r/interestingasfuck Jul 21 '21

Chicken with genetic defect /r/ALL

https://i.redd.it/98g39eh4pjc71.jpg
53k Upvotes

View all comments

Show parent comments

1k

u/Reddit-username_here Jul 21 '21 edited Jul 21 '21
def de-evolution(chicken):  
    if Humans.eatingChicken():  
        chicken = dinosaur  
        return chicken  
    else:  
        return chicken

Edit: probably shouldn't have camel cased that method name, ey?

Edit 2: thanks for the award stranger! I'm on the beta of the 3rd party app I use and it hasn't been getting the award messages from Reddit recently, so I can't thank you privately!

835

u/sniper_cze Jul 21 '21

Too complicated :)

def de-evolution(chicken):
    if Humans.eatingChicken():
        chicken = dinosaur
    return chicken

365

u/Reddit-username_here Jul 21 '21

Also, chicken is just a reference to dinosaur now, instead of being a dinosaur. Hopefully that doesn't cause any bugs down the road.

Well, it's working on my computer, I'm gonna go ahead and commit this, alright?

14

u/MrWh1te365 Jul 21 '21

Works on your machine, great. Just deploy straight to prod.

4

u/cantadmittoposting Jul 21 '21

"This might delete our whole prod database".

"Nah, noone would be stupid enough to point a poorly secured delete function at the root folder!"

Entire prod database wiped. ... Surprised Pikachu face.

This one act play brought to you by things that actually happened at work.

3

u/fuckyouswitzerland Jul 21 '21

DBAs, please refresh prd using uat