r/interestingasfuck Jul 21 '21

Chicken with genetic defect /r/ALL

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

View all comments

8k

u/anttisaarenpaa1 Jul 21 '21

Abandon chicken, return to dinosaur

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!

827

u/sniper_cze Jul 21 '21

Too complicated :)

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

369

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?

170

u/shayanzafar Jul 21 '21

No need for unit tests either. If it doesnt work ill just tell the client to use my laptop. Where i have confirmed it is working.

110

u/Reddit-username_here Jul 21 '21

SHIP IT!

44

u/shulatocabron Jul 21 '21

They needed yesterday!

25

u/Reddit-username_here Jul 21 '21

Look man, that's Op's problem. I just write the shit!

20

u/Flauni Jul 21 '21

Sales promised client flying sabretooth tigers

Edit: Just heard from marketing that they’ve already sent out the press release.

3

u/Andrewmundy Jul 21 '21

Our stock price is still falling, mgmt just cut benefits.

→ More replies

2

u/rabbitthethinker Jul 21 '21

Im actually all of your IT people. Just stop! We both know your code is going to explode dino-chicken-sapiens everywhere. So just don't do it today, ok? I'll get beer for us both if you just let today be chill and dont introduce the dino-chicken-sapiens to the test environment.

1

u/Reddit-username_here Jul 21 '21

Ummm, I'm sorry, but if we can do it, we're gonna do it. Just to see if it's possible.

→ More replies

28

u/Dragoarms Jul 21 '21

My life... where half-baked code works perfectly in a sandbox and breaks as soon as I show it off...

2

u/DizzySignificance491 Jul 21 '21

Can you make a Docker instance of a laptop?

18

u/droflah Jul 21 '21

Yeeaaaahhh... I think I'm going to have to insist you create a pull request for this and let the rest of the dev team take a long hard look at it.

2

u/ancientRedDog Jul 21 '21

git push origin master —force

I’m a jedi!

14

u/MrWh1te365 Jul 21 '21

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

5

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

2

u/naliedel Jul 21 '21

Add some frog DNA. What could go wrong?

2

u/ValidatingUsername Jul 21 '21

If it points to a dinosaur, has access to dinosaur functions, and returns private dinosaur secrets...

2

u/flipmcf Jul 21 '21

Deepcopy was taking too long.

1

u/Reddit-username_here Jul 21 '21

Dude, it's got billions of years to copy, give it a little time, Jesus.

2

u/erlend65 Jul 21 '21

You're about to revolutionize the chicken sandwich as we know it.

1

u/Reddit-username_here Jul 21 '21

"chicken burger"

2

u/bruhred Jul 21 '21 edited Jul 21 '21

pub fn de_evolution(chicken: &Animal, humans: &Monke) -> Animal { if humans.eat_chicken { let new_chic = chicken.clone(); new_chic.type = String::from("dino"); new_chic } else { chicken } }

2

u/Adama0001 Jul 21 '21

Obviously they both expose the IDinosauria interface

2

u/CrazyJony Jul 21 '21

It shouldn’t cause bugs. It should cause dinosaurs. Or chickens.

2

u/nemisys1st Jul 21 '21

Straight to prod!

1

u/cleanRubik Jul 21 '21

Not in C and that’s the only language that matters…

This should be fun. …

1

u/AVeryHeavyBurtation Jul 21 '21

What language works like that?

1

u/keithcody Jul 21 '21

Shouldn’t

chicken = new dinosaur

Cuz of evolution.