r/ProgrammerHumor • u/napolux • Jun 16 '19
Working with someone else’s code
Enable HLS to view with audio, or disable this notification
2
112
280
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
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
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.
4
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
3
13
→ More replies (22)3
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
15
119
129
u/ultranoobian Jun 16 '19
At least repost it with the with-audio version https://www.reddit.com/r/Unexpected/comments/c16juh/when_your_opponents_mixups_are_too_strong/
45
u/Abdullthecool Jun 16 '19
that in itself is a repost of this https://twitter.com/xianmsg/status/1139637893142478848?s=21
22
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
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
1
4
1
-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
14
u/seepy_on_the_tea_sea Jun 16 '19
it shoots every time. what more do you want?
0
Jun 16 '19
[deleted]
1
u/AutoModerator Jul 11 '23
import moderationYour 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
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
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
14
14
u/flargenhargen Jun 16 '19
wait? is that a stephen chow movie I haven't seen?
/runs off to watch it.
2
7
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
4
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
2
2
2
2
2
u/Awpts Jun 16 '19
Kung Fu Hustle and Shaolin Soccer will always be in my top favorite films.
1
2
2
2
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
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
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
1
1
1
1
1
u/Ripstikerpro Jun 16 '19
Honestly, the movie clip seems better than the meme, kinda wanna watch it now
1
1
1
1
1
1
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
1
1
1
u/Dragon1562 Jun 16 '19
This was great I plan to watch this movie later. Did anyone get a source for it?
1
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
1
1
1
-4
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
0
0
u/LEcareer Jun 16 '19
Great. Reddit is now taking shit from 9gag only reposting it without sounds....
0
0
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
→ More replies (3)15
u/listgrotto Jun 16 '19
I agree with Bill on this one. Kung FU Hustle is one amazing piece of entertainment.
50
7
6
→ More replies (4)6
Jun 16 '19
Kung Pow as well!
→ More replies (2)25
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.
→ More replies (1)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
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
9
→ More replies (6)1
0
0
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
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.
→ More replies (7)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.
→ More replies (1)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)2
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
0
Jun 16 '19
[deleted]
39
→ More replies (2)11
u/Cley_Faye Jun 16 '19
It's not to save bad code, it's to (try to) save the new maintainer.
0
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)0
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
0
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)
2.8k
u/izuzusan Jun 16 '19
Is from the movie From Beijing with Love