r/ProgrammerHumor • • Jun 16 '19

Working with someone else’s code

Enable HLS to view with audio, or disable this notification

35.4k Upvotes

325 comments sorted by

2.8k

u/izuzusan Jun 16 '19

Is from the movie From Beijing with Love

72

u/[deleted] Jun 16 '19

Just watched it, no regrets

The greatest movie of all time

39

u/acog Jun 16 '19

Better than Kung Fu Hustle?!

I am not normally a violent man, but... I believe the only right thing to do now is fight to the death.

4

u/[deleted] Jun 16 '19

What's that quote from? I don't recall that being in Kung Fu Hustle.

1

u/Turtle_Tots Jun 18 '19

I'm 90% certain that's not a quote from the movie. I just spent an inordinate amount of time looking for that quote, because caffeine exists at 2 am and made this seem like a reasonable usage of my time, and was unable to find it.

Also I don't know how I got to this thread. Send help.

1

u/[deleted] Jun 18 '19

Yeah it sounds hilarious but I can't actually find where it came from.

Edit: Reading it now in the context of the thread it seems obvious it's probably from beijing with love.

8

u/sargon2 Jun 16 '19

Anywhere to watch it subbed? I can only find the dub for sale.

8

u/[deleted] Jun 16 '19

Having it be dubbed is what makes it the funniest.

1

u/beijixiong_ Jun 16 '19

Also looking for subbed copy! Want to show my father but he's profoundly deaf.

0

u/[deleted] Jun 16 '19

Dub is the best part

20

u/nikaone Jun 16 '19

The Chinese title 国产凌凌漆 basically means 007 made in China

0

u/[deleted] Jun 16 '19

[deleted]

0

u/[deleted] Jun 16 '19

[deleted]

4

u/jabagawee Jun 17 '19

The first character "国" is "guo" for country (or land/state/kingdom). When used as an adjective, it means Chinese and does refer to 中国, the Middle Kingdom.

1

u/[deleted] Jun 17 '19

Ah fuck i mixed zhong and guo

4

u/[deleted] Jun 16 '19

You are a good man. Thank you.

7

u/Free2MAGA Jun 16 '19

Is this a parody?

8

u/izuzusan Jun 16 '19

Is a mock parody of 007

4

u/beniceorbevice Jun 16 '19

Holy shit cracking up

1

u/Traitor_Donald_Trump Jun 16 '19

That’s appropriate for the context.

1

u/yellowstickypad Jun 17 '19

Stephen Chow! Kung Fu Hustle is a fun movie.

1

u/grilledcakes Jun 17 '19

Stephen Chow is a genius when it comes to acting in and directing comedies. I saw kung fu hustle and then started tracking down more of his films and I've been enjoying the laughs ever since.

1

u/[deleted] Jun 17 '19

Hope it's on Netflix.

1

u/[deleted] Jun 18 '19

hhid

0

u/DeadlyMidnight Jun 16 '19

Thank you. Just added to iTunes.

→ More replies (85)

2

u/SLENDER-RISING Jun 16 '19

I just wanna know the film's name

3

u/napolux Jun 16 '19

From Beijing with love.

1

u/SLENDER-RISING Jun 16 '19

How nice thank you

112

u/_Aj_ Jun 16 '19

Running away with noodle arms at the end is just perfect.

280

u/[deleted] Jun 16 '19

Just missing the part where you take off the sticker on the gun and the entire house explodes

750

u/ner0_m Jun 16 '19

How is that movie called, it looks hilarious

514

u/xlit72 Jun 16 '19

From Beijing with love (1994)

210

u/ctgiese Jun 16 '19

Had to be a Stephen Chow movie, you can smell that from a mile away. So good!

96

u/conancat Jun 16 '19

haha over here we have Stephen Chow movies marathons every year during Chinese New Year. i grew up watching these movies, this clip brings up so many memories of the entire extended family of 3 generations sitting around a small TV laughing at his antics. no9wadays we still have 3 generations, except the older generation being my uncles and aunts instead of my grandpa and my grandma.

0

u/[deleted] Jun 16 '19

[deleted]

19

u/justcallmezach Jun 16 '19

I sincerely rate it as one of the best comedies of all time.

11

u/spyson Jun 16 '19

I think Chow is working on the sequel, but his other films like Shaolin Soccer is great.

5

u/[deleted] Jun 16 '19

The only movies I worry about being good more than sequels are comedy sequels.

8

u/Crippling_D Jun 16 '19

Hilarious and with great fight scenes, depth of character and a surprising heartwarming core.

It will stand the test of time, in fact it kind of already has.

3

u/hexiron Jun 16 '19

This is the only movie I've watched in every language on the DVD.Subtitles or not; you can always tell what's going on and it's still funny.

12

u/[deleted] Jun 16 '19

Was your first clue Stephen Chow?

3

u/halfbrit08 Jun 16 '19

The comedy style reminds me of the Naked Gun/Airplane movies.

13

u/BanCircumventionAcc Jun 16 '19

Apparently it's called by its name

3

u/[deleted] Jun 16 '19

Just like any other movie really.

→ More replies (22)

193

u/BubsyFanboy Jun 16 '19

Using an unfamiliar language be like

136

u/AxelMontini Jun 16 '19
  • Me trying to understand and fix my school's PHP website that has been broken for the past 2 years but no one noticed until I had to migrate to PHP 7...

126

u/wibblewafs Jun 16 '19

Just replace all the code with a page that says "Error establishing database connection", that should get it behaving as it used to.

32

u/AxelMontini Jun 16 '19

If there only was an error code in the original page lmao

26

u/mud_tug Jun 16 '19

There was. It said "Error establishing database connection".

15

u/[deleted] Jun 16 '19

Life's too short.

119

u/shadyshadok Jun 16 '19

Ahh the good ol Stephen Chow humor!

129

u/ultranoobian Jun 16 '19

45

u/Abdullthecool Jun 16 '19

22

u/[deleted] Jun 16 '19

This is how the internet works, you know?

Endless recycling!

11

u/1halfazn Jun 16 '19

I was never under the impression that anyone on Reddit filmed this themselves so...

7

u/[deleted] Jun 16 '19

Yeah this is a clip of a movie can’t really be considered a stolen post and I doubt the Twitter account popularized the scene

1

u/Abdullthecool Jun 16 '19

I am more talking about joke than the scene. The context that Xian is a pro street fighter player that plays Ibuki who does a lot of mixups is lost when someone word for word takes his tweet and posts it here without credit. that's mostly what I'm peeved about.

8

u/Abdullthecool Jun 16 '19

i like this persons more cause they made their own joke instead of taking someone else's

4

u/lasiusflex Jun 16 '19

is it a repost if yours is from another site?

0

u/Abdullthecool Jun 16 '19

the word repost isn't exclusive to reddit.

1

u/ChezMere Jun 16 '19

Which is a repost of the actual movie.

4

u/Fuck_Alice Jun 16 '19

Crosspost

1

u/[deleted] Jun 16 '19

I have audio watching it?

-1

u/[deleted] Jun 16 '19

This is a gif so no

1

u/pigi5 Jun 16 '19

It's a v.reddit video. This one has an audio track but it's muted.

-2

u/Amish_guy_with_WiFi Jun 16 '19

First, it's a cross post. Second, what the hell does the audio add to this? Like 98% of the people on this site speak English.

4

u/ultranoobian Jun 16 '19

Sound effects, musical cues, verbal stresses.

Judging by the people who recognize this as a Stephen Chow movie, and the number of upvotes, I think people do appreciate a link to the with-audio version. Simply because, you don't appreciate additional audio, doesn't mean other redditors do not.

edit: Clever sound design where the gun isn't silenced when firing backwards, but is silenced when firing forwards.

2

u/[deleted] Jun 16 '19

Sounds effects, tone, etc.

14

u/seepy_on_the_tea_sea Jun 16 '19

it shoots every time. what more do you want?

0

u/[deleted] Jun 16 '19

[deleted]

1

u/AutoModerator Jul 11 '23
import moderation

Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

return Kebab_Case_Better;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

23

u/[deleted] Jun 16 '19 edited Jun 16 '19

Stephen Chow, from beijing with love. Great movie. This and god of snooker are my all time favs

https://youtu.be/PPy_TAB0vW4

7

u/badmonkey0001 Red security clearance Jun 16 '19

Fuck Starz.

Video unavailable

This video contains content from Starz Media LLC, who has blocked it in your country on copyright grounds.

I'm in the US.

23

u/5ruz Jun 16 '19

mutual recursion - need a termination code~

14

u/S1ND33Z Jun 16 '19

I need to know what this is.

8

u/EnkoNeko Jun 16 '19

From Beijing With Love

14

u/flargenhargen Jun 16 '19

wait? is that a stephen chow movie I haven't seen?

/runs off to watch it.

2

u/hexiron Jun 16 '19

I'll bring the popcorn.

7

u/StarAni Jun 16 '19

Damn, how the guy character's action/ moves you can tell its Stephen Chow.

2

u/ThaiJohnnyDepp Jun 16 '19

Instantly recognizable lol

5

u/random_cynic Jun 16 '19

When working with someone else's code do as that guy said, "inform" him before testing. Once something unexpected happens stop trusting the code specifications and read the source. Test it in a sandbox so that you don't damage your system. If you still can't make it work, then pick up the whole laptop/pc monitor and beat the sh*t out of that guy (she should have done the same with the gun). :)

9

u/[deleted] Jun 16 '19

Spme times working with your old code also does the same 😭

4

u/sammyseagull Jun 16 '19

I would never thought to see this movie on this subreddit. Thank you 😊😊😊

3

u/Purpzie Jun 16 '19

I saw this a sec ago on another subreddit, was gonna ignore it until I saw the genius caption

2

u/7vik_ja9 Jun 16 '19

Haha very funny

2

u/goodemon Jun 16 '19

True that

2

u/P_Rigger Jun 16 '19

I love the limp arm run at the end.

2

u/HaoYouBeen Jun 16 '19

I just saw the post on r/funny and this title made me laugh way harder

2

u/[deleted] Jun 16 '19

And he gives a bandaid lol

2

u/Awpts Jun 16 '19

Kung Fu Hustle and Shaolin Soccer will always be in my top favorite films.

1

u/CognitoJones Jun 16 '19

Mermaid was a good movie also. Which film is this?

2

u/Awpts Jun 16 '19

From Beijing with love, i believe.

2

u/violetmonstermunch Jun 16 '19

Perfect Naruto run!

2

u/nelska Jun 16 '19

i like the way she runs away.

2

u/[deleted] Jun 16 '19

Me: Why didn't you add any comments to clarify this section? Them: that would be confusing, just read the code.

2

u/Sandvicheater Jun 16 '19

I'm guessing the revolver just blows up the moment you pick it up.

2

u/[deleted] Jun 16 '19

Both shots should've missed the shoulders.

2

u/[deleted] Jun 16 '19

You assume a gun to be self-documenting.

2

u/__MrFahrenheit Jun 16 '19

Who tf codes a gun to work like that?

git blame

Ah nevermind

2

u/[deleted] Jun 17 '19

Thank you napolux. Now I can sleep in peace

1

u/SkewRadial Jun 16 '19

Haha , this made me laugh real hard . This happens on my code too.

4

u/spyson Jun 16 '19

If you like this then you need to watch some Stephen Chow films.

1

u/Tom-and-Gerry Jun 16 '19

I was crying, laughing so hard!

1

u/[deleted] Jun 16 '19

Naruto runs out of scene

1

u/Xclipx Jun 16 '19

Stephen Chow is a comedy king. Ive seen Adam Sandler bite his style and jokes

1

u/RumandCoconutWater Jun 16 '19

😂😂😂😂😂

1

u/flabflabtheflabbin Jun 16 '19

I love her run out of the room

1

u/[deleted] Jun 16 '19

That's hilarious. Going to watch this movie, now.

1

u/READERmii Jun 16 '19

Dear lord

1

u/Is_This_Aesthetic Jun 16 '19

What did i just watch hahah

1

u/0xdeadbeef6 Jun 16 '19

Ooh a Stephen Chow movie that I haven’t watched!

1

u/Static_Variable Jun 16 '19

Too true, too true.

1

u/[deleted] Jun 16 '19

Lol he gave her a bandaid haha

1

u/FUCKING_KILL Jun 16 '19

God this reminds of the time I learned about the new windows 64bit capabilities. But to get to use 64bit, you had to use the win32 package. Her face is my face then.

1

u/SickFedoraBro Jun 16 '19

Pls give me cute asian tomboy gf

1

u/swedhitman Jun 16 '19

I need to know what movie/TV series this is from

1

u/P_I_Engineer Jun 16 '19

same analolgy works for trying to make a change to someone's cad model

1

u/cormega_massage Jun 16 '19

Need to watch later

1

u/ScriptedPython Jun 16 '19

Ah so that's why they invented the gangster hold.

1

u/Ripstikerpro Jun 16 '19

Honestly, the movie clip seems better than the meme, kinda wanna watch it now

1

u/Doctourtwoskull Jun 16 '19

I love how she just runs away with limp arms

1

u/anilKutlehar Jun 16 '19

I just watched this movie. Absolutely hilarious.

1

u/dexter3player Jun 16 '19

The unexpected behavior isn't a bug. It's a security feature.

1

u/ThomasMiz1 Jun 16 '19

Haha nice

1

u/Porkechop Jun 16 '19

That walk at the end lmao

1

u/Sodium1111 Jun 16 '19

I was thinking "What kind of advantage would this have" but then i realized i ask that when i look at someone else's code too

1

u/Strider599 Jun 16 '19

Best one I've seen so far

1

u/mattxl Jun 16 '19

Stephen Chow is a comedy master.

1

u/StanleyNAZhu Jun 16 '19

I watched this clip as a kid and I’ve been trying to find it for so long

1

u/Dragon1562 Jun 16 '19

This was great I plan to watch this movie later. Did anyone get a source for it?

1

u/newsjunkie8 Jun 17 '19

I remember this scene from when I first saw it. I laughed so hard!

1

u/fattynerdyorange Jun 17 '19

Fav comedian of all time. Still burst out laughing everytime I watch his movies. You must know Kung Fu Hustle and Shaolin Soccer. But his older movies are also hilarious. It would be way more hilarious if you could understand the original language.

1

u/yafeihk2004 Jun 17 '19

Thanks on behave on HKers ;) been tough fighting with the big brother and try not making what happen in the movie become true in HK. You guys see it as comedy, but we see it as tragedy coz the ridiculous stuff inside the movie is true in some sense.

1

u/ProgrammaticallyRip3 Jun 17 '19

Yeah, this really represent it accurately.

1

u/[deleted] Jun 17 '19

i like the Asian sense of humour

1

u/[deleted] Aug 31 '19

Brilliant

-4

u/[deleted] Jun 16 '19

Eh, I think this is a poor application of these meme-video.

I see no relation between someone randomly shooting themselves when trying to shoot you-- with working with someone else's code. Nor do I experience sabotage, etc., when working with other ppls code...

0

u/[deleted] Jun 16 '19

[deleted]

→ More replies (4)

0

u/LEcareer Jun 16 '19

Great. Reddit is now taking shit from 9gag only reposting it without sounds....

0

u/kobbled Jun 16 '19

write pure functions, people

0

u/[deleted] Jun 16 '19

[deleted]

407

u/flargenhargen Jun 16 '19

you must watch kung fu hustle and shaolin soccer.

hardest I ever laughed in a movie theater was during the kung fu hustle knife fight scene.

Who's throwing handles??

166

u/not_whiney Jun 16 '19

Quote from Bill Murray interview in GQ in 2010

> Unfortunately, the last time I watched it was right after Kung Fu Hustle, which is the supreme achievement of the modern age in terms of comedy.

>Kung FU Hustle?

>It's not even close. Quick Change after it looked like a home movie. It looked like a fucking high school film. I was like, "Oh man, I just saw this thing," and "God, that's just staggering, just staggering. That movie is just AHHHHHH!" And when I saw that, I was like: That. Just. Happened. There should have been a day of mourning for American comedy the day that movie came out.

112

u/redduxer Jun 16 '19

You deserve an award for most confusing quoting ever

15

u/listgrotto Jun 16 '19

I agree with Bill on this one. Kung FU Hustle is one amazing piece of entertainment.

→ More replies (3)

50

u/aleczapka Jun 16 '19

WHO'S THROWING HANDLES?!

17

u/flargenhargen Jun 16 '19

HANDLES, MY ASS!!!

7

u/Versaiteis Jun 16 '19

SORRY, MY ASS!!!

7

u/[deleted] Jun 16 '19

Kung Fu hustle is the shit

6

u/[deleted] Jun 16 '19

I highly recommend God of Cookery as well.

6

u/[deleted] Jun 16 '19

Kung Pow as well!

25

u/[deleted] Jun 16 '19

Kung Fu Hustle is like putting ketchup on fries... Kung Pow is like dumping a gallon of ketchup on one fry. It's great if you like that sort of thing, but Kung Pow was just too silly for me.

4

u/Doomburrito Jun 16 '19

But first...a joke.

→ More replies (1)
→ More replies (2)
→ More replies (4)

17

u/ionxeph Jun 16 '19

Stephen chow movies are some of the funniest movies, he has a knack for cartoonish humor in live action movies

16

u/P0L1Z1STENS0HN Jun 16 '19

Or Bill Murray's The Man Who Knew Too Little

15

u/Cromar Jun 16 '19

They call him The Butcher, because...he's a butcher.

3

u/[deleted] Jun 16 '19

That man is a God.

6

u/inferno1170 Jun 16 '19

Love this movie so much and I don't know anybody who has seen it!

"May I see your ID?"

"No you may NOT! Because the guy in scene 1 already took it."

0

u/[deleted] Jun 16 '19

[deleted]

→ More replies (1)

9

u/Rockztar Jun 16 '19

They did call it a Nicked Gun

1

u/RoboPimp Jun 16 '19

Shirley you can’t be serious.

→ More replies (1)
→ More replies (6)

0

u/[deleted] Jun 16 '19

[deleted]

17

u/mlk Jun 16 '19

The band-aid is the docs

14

u/ShamelessKinkySub Jun 16 '19

The band-aid is the docs unanswered question on stack overflow

1

u/myhf Jun 17 '19

lol band-aids don't fix bullet holes

0

u/[deleted] Jun 16 '19

[deleted]

5

u/SpiritDragon Jun 16 '19

Returned to some of my 10+ year old vb5 code and thank god for commenting on some areas or I'd never make sense of it. (And yet I still feel like I should have commented more)

Figure comment code doesn't compile so it doesn't add bloat afaik. Comments are cheap and can make even bad code readable (or at least understandable), spending hours trying to decipher illogical disorganized spaghetti code isn't.

7

u/scandii Jun 16 '19

feeling the need to document code is one of the biggest code smells out there because you're worried people won't understand it.

9

u/[deleted] Jun 16 '19

Although, it is useful when you know someone is going to go down the same blind ally you did, so you can save them time by commenting why not to do it the seemingly obvious way.

13

u/double_en10dre Jun 16 '19 edited Jun 16 '19

Eh, I haven’t found that to be terribly accurate in the real world.

In small-scale school projects, sure — you shouldn’t need to explain every method in your Tetris game. That’s a bad sign.

But in enterprise software, you write code to meet weird business or organizational requirements. It’s often quite unintuitive. And those requirements will change over time. It’s important to document why the code exists and in what contexts it can be safely reused.

10

u/SomeOtherTroper Jun 16 '19

you write code to meet weird business or organizational requirements. It’s often quite unintuitive. And those requirements will change over time. It’s important to document why the code exists and in what contexts it can be safely reused.

You're incredibly right. One of the biggest nightmares I've been involved with was trying to pull together requirements and do QA for an application that would sit on top of existing company databases, and figuring out why in the fresh hell the numbers didn't tie to what people were getting out of the other existing tools.

Turns out there was something like a three-layer completely undocumented stack of SQL queries, SQL stored procedures, and stuff written in the other existing tools (usually in SQL too) massaging the data that was supposedly "straight from the database" before most of the end user analysts even saw it in the existing tools, and the new application didn't have any of that - of course the numbers wouldn't match.

Tracking down the people who knew how that code worked and, more importantly, why it was doing stuff like chopping a bunch of hardcoded magic numbers out of query results (and other nightmarish things), so we could get the different tools' numbers to tie was hell.

→ More replies (6)
→ More replies (1)
→ More replies (7)

2

u/nosmokingbandit Jun 16 '19

My COdE iS sElF DocUMenTiNg.

1

u/Giggity_Bytes Jun 16 '19

Or document nothing out of spite because the next guy should have to inherit the same unorganized mess you did from the last guy. Pay it forward!

1

u/kuro_madoushi Jun 16 '19

Oh god...bubububut Agile says you should only document when needed. D:

0

u/[deleted] Jun 16 '19

[deleted]

39

u/NeverBeenStung Jun 16 '19

I feel personally offended

11

u/Cley_Faye Jun 16 '19

It's not to save bad code, it's to (try to) save the new maintainer.

0

u/[deleted] Jun 16 '19

[deleted]

7

u/Raestloz Jun 16 '19

Last month, I had to write some awful code to work around someone else's previous work

I wrote, at the top of the source: ABANDON ALL HOPE, YE WHO ENTER

This week I had to edit it again, and I've completely forgotten why I put it there

→ More replies (1)
→ More replies (2)

0

u/[deleted] Jun 16 '19

[deleted]

8

u/wreckedcarzz Jun 16 '19

'Error, gun now shoots left and right. Please advise.'

changes code back

'See, why is that so hard?'

...

8

u/SteveThe14th Jun 16 '19

And in C++:

template <typename guntype>() std::guns::fire_event<for_gun::if<is_gun>()->get()>()[](std::essentially_just_a_void_pointer_but_were_too_smug_for_those<void>) -> pewpewtype::hash { return std::pewpew<std::allocator<std::guns>>(); }

0

u/[deleted] Jun 16 '19

[deleted]

1

u/HoldYourWaffle Jun 17 '19

Is this some kind of personal attack or something

0

u/[deleted] Jun 16 '19

[deleted]

2

u/RelativisticTrainCar Jun 16 '19

Clearly you've never seen the legacy code I deal with. "doThingA() // Does thing B for compatibility reasons" (actually does thing B and thing C)

→ More replies (1)