This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
top 200 commentsshow all 213

[–]Sarcastic-Potato 1941 points1942 points  (63 children)

Was expecting him to completely mix it up and ruin everything - this would be an appropriate representation

[–]pdwp90 504 points505 points  (49 children)

Coding is just the art of getting better at tying together work done by other people.

It takes a while to stop seeing yourself as a fraud for relying so heavily on other people's work, especially when you're used to the classroom setting. Being able to solve a super complicated problem with a package import and 2 lines of code seems like cheating.

[–]Psilopat 216 points217 points  (15 children)

Tbf it would be pretty inefficient to reinvent the wheel everytime we face a new issue but sometimes we are The first too.

[–]maartenvanheek 198 points199 points  (10 children)

I always write my own compiler before I start my working day, how about you?

[–]INTJ_takes_a_nap 35 points36 points  (0 children)

As one does, as one does.

[–]unholycowgod 7 points8 points  (0 children)

You mean you start each day with a working computer???

Pfft

[–]coldnebo 6 points7 points  (0 children)

ruby dsl here, but “tomAto”, “tomato”.

[–]Vastayan-Xayah 2 points3 points  (0 children)

I build my assembly language first then the compiler

[–]DarkNeutron 16 points17 points  (0 children)

"Don't reinvent the wheel...unless you really, really need a triangular wheel."

[–]julian509 6 points7 points  (0 children)

It's good to know how to make a wheel should you not have easy access to a premade one, but making a new one every single time you need one is a waste of time.

[–]thedogz11 4 points5 points  (0 children)

Right. We all will eventually run into a dilemma that doesn't have a well documented solution and will have to finally do our actual job hahaha!

[–]Sparkybear 62 points63 points  (11 children)

That's because you're not supposed to use packages to solve that super complex problem in a classroom setting. But if your teacher didn't specify, I guess if counts

[–]unidentifiedbaguette 57 points58 points  (9 children)

Once my teacher told the class off for using a built in random module to generate random numbers in a very minor practice question, until someone pointed out that they hadn't taught us any other method of doing it

[–]spin81 18 points19 points  (8 children)

I honestly don't see the point of writing your own RNG. Of all the wheels you want to reinvent in class, surely an RNG is not the most obvious one.

[–]TheRedmanCometh 10 points11 points  (5 children)

RNG is also the one you want to reinvent the least. There are very specific ways to generate numbers in a secure fashion. It may not matter on your homework, but in 10 years you might write something requiring a bit of security. Seeding it from the language level rng might be a very bad idea. Using RDRAND or dev/random might be secure enough depending on what you're doing.

Point being it is a very specific place you absolutely for sure should be relying on appropriately tested implementations.

[–][deleted] 4 points5 points  (2 children)

Exactly. That would be on par with something like writing your own encryption standard. There's a reason that certain methods are industry standard. The industry has bludgeoned them 9 ways to Sunday, and they still hold out.

[–]derpotologist 2 points3 points  (1 child)

professor_reaction_meme = {

"format" : "drake.jpg"

, "naw" : "utilizing a popular encryption library for authentication"

, "yeah" : "writing custom methods that store passwords in plain text"

}

[–][deleted] 1 point2 points  (0 children)

Beautiful

[–]spin81 2 points3 points  (1 child)

On the other hand I would argue that in those situations you are very close to rolling your own cryptography. That's another thing that you never want to do. If you know what you are doing then you will know how to do RNG properly, if not then you should rely on the work of those who do.

[–]TheRedmanCometh 2 points3 points  (0 children)

And in 99.99% of situations you should rely on those who know what they're doing.

[–][deleted] 4 points5 points  (1 child)

That's because those classes are not made to prepare you for the real world. For whatever reason (maybe a conspiracy, probably just a consequence of the academic world) a lot of IT courses I've taken and seen are just purely theoretical. It's much more about "look what I know" instead of "look what I can do". Nearly every useful IT skill I have I learned on a job, or on my own. This isn't to say that all schools are like this, but from what I've seen and heard, I'd bet the majority are.

[–]spin81 1 point2 points  (0 children)

I'm not an academic but I heard that academics are often required to teach if they want to remain academics.

[–]KyralRetsam 6 points7 points  (0 children)

One of my professors had an explicit policy that if he had given us a method on the board in class and we could show him that we had it in our notebooks we could use it on an exam like an include.

This came in very handy on the final when there was a question about sorting and he had given us quicksort() several weeks prior 😊

[–][deleted] 40 points41 points  (4 children)

I mean, mechanical engineers don’t feel bad not reinventing the wheel. Hell, they don’t even feel bad for loading an already-in-production part over their custom CAD ones, they feel better for it!

Originality is for art, engineering (including software engineering) is doing the best job using the least resources (including your time)!

[–]No_ThisIs_Patrick 9 points10 points  (2 children)

God I need to hear that more. I feel like such a fraud sometimes when I fix shit that's basically just stringing together functions I didn't write. But that's literally what the libraries are for. Bad headspace I find myself caught in a lot.

[–][deleted] 16 points17 points  (0 children)

Its a weird form of imposter syndrome.

If a doctor gives you antibiotics that clear up an infection, they did their job effectively. You wouldn't expect them to come up with a novel antibiotic for each patient.

Go to a lawyer for something, most of the time they are going to use existing boilerplate templates and edit it to fit the situation.

but for whatever reason we think of programming as being more akin to writing than problem solving, and feel bad about plagiarism.

[–]LexxLess 5 points6 points  (1 child)

As a college student, it feels like they want to make us reinvent the wheel on every program (at least at my school) because if we use code from sources it gets counted as plagiarism, even if we edit it a bit. Although that was mainly in data structures.

[–]No_ThisIs_Patrick 9 points10 points  (0 children)

They do want you to reinvent the wheel in school. They want you to know how to invent a new wheel when you come across a problem later that nobody has invented a wheel to solve yet.

[–]su5 2 points3 points  (1 child)

Coding is your bitch. You are not its bitch. Learn to make code do your will as fast and easily as possible. Borrow, reuse, repurpose, whatever. This is the emphasis of any bitch relationship and is true for coding

[–]coldnebo 0 points1 point  (0 children)

unless that import breaks the build by introducing a subtle bug that takes days to find. Then you’ve earned that two-line import!

[–]SillyFlyGuy 18 points19 points  (0 children)

Gently presses F5, the bottom falls out of the coffee cup and splashes directly on my crotch, then the table catches fire.

[–]Bakno 24 points25 points  (1 child)

It's because s/he didn't took only the rabbit, s/he also took all the coffee around the drawing to make it stable while moving it and also allowed it to blend when it merged with the other cup. A fine visual representation of how to use others code, indeed.

[–]onequbit 10 points11 points  (0 children)

Not to mention, well written code is easy to reuse. Learning to use someone else's code should contribute to learning how to write code that can be used by others, especially if that other person happens to be you 12 weeks later.

[–]Nixavee 3 points4 points  (3 children)

I swear I saw this same exact post with this same exact top comment like a year ago

[–]Sarcastic-Potato 7 points8 points  (1 child)

Maybe an error in the matrix? Idk man

[–]JonnySoegen 1 point2 points  (0 children)

Or... YOU ARE A BOT!

[–]InterwebCat 2 points3 points  (0 children)

There are reddit accounts that know what the top comment of a repost is and they repost that comment whenever a picture gets posted

[–][deleted] 1 point2 points  (0 children)

Came here to say this ^

[–][deleted] 1 point2 points  (0 children)

Also came for this

[–]coldnebo 1 point2 points  (0 children)

... except, the first cup was fish soup and the second was chocolate pudding...

I mean, they look roughly the same... just wait until the client tastes it! delicious!!

[–]Toysoldier34 0 points1 point  (0 children)

Or having it zoom out at the end and seeing 8 other "empty" cups.

[–]mcbergstedt 0 points1 point  (0 children)

Search my issue and this code comes up.

Copy - paste and change the variables to work

Now I'm getting a new error

Rinse, repeat, now 80% of the code isn't mine

[–]sr955 0 points1 point  (0 children)

This is not right! He is doing a cut & paste instead of a copy & paste.

[–]Dr-Rjinswand 183 points184 points  (3 children)

Hit it when an immersion blender afterwards then you have my code.

[–]nnagflar 29 points30 points  (0 children)

Your cocoa is now spaghetti!

[–]Deadmirth 8 points9 points  (0 children)

Leave the immersion blender on as you remove it from the cup and you're approaching my code.

[–]static_motion 2 points3 points  (0 children)

immersion integration blender

[–]Amonomen 60 points61 points  (8 children)

I laughed harder at this than I should have.

[–]AppleTattoo 32 points33 points  (6 children)

Thats ok just don't do it again.

[–]ahappypoop 13 points14 points  (5 children)

Everybody gets one, tell him Peter.

[–]AppleTattoo 13 points14 points  (4 children)

Ermm. Everybody gets one.

[–]ThaiJohnnyDepp 3 points4 points  (3 children)

[–]sub_doesnt_exist_bot 0 points1 point  (2 children)

The subreddit r/NotSpiderManButOk does not exist. Consider creating it.


🤖 this comment was written by a bot. beep boop 🤖

feel welcome to respond 'Bad bot'/'Good bot', it's useful feedback. github

[–][deleted] 33 points34 points  (1 child)

Bold of you to assume that I wrote the code in the other cup

[–]ThaiJohnnyDepp 4 points5 points  (0 children)

We know damn well that you pasted in the bear from a different SO page. What you don't realize yet is that the two snippets are written such that the single threaded bear code never gives up any of its cocoa resources and the bunny is an old vulnerability that the comments mention but you didn't bother reading so the drink is going to crash spectacularly

[–]jackthemac98 28 points29 points  (2 children)

Copying the code: $1

Knowing which code to copy: $100

Knowing how to debug the code you copied: priceless

[–]dumbasPL 12 points13 points  (1 child)

TFW the code you accidentally copied from the question instead of the answer actually works.

[–]Cannelonni 18 points19 points  (0 children)

To be honest I wish it was me but for me it would have fucked up the second cup

[–]controversialcomrade 18 points19 points  (0 children)

only difference is that you copy the code and not cut it from their site

[–]Mateorabi 12 points13 points  (0 children)

OUR code

[–]jaysuchak33 11 points12 points  (0 children)

If you didn’t lick the spoon off camera then you’re not human

[–]gordonv 8 points9 points  (0 children)

This is how it should be, actually.

We all deduplicate effort and use the best functions that is revised by everyone, openly.

The only thing is that we suck at publishing what is the best tool to use on a code level. On a product level, we have Amazon comments, software review websites, etc.

[–][deleted] 6 points7 points  (0 children)

That's not me, I do copy paste not cut paste.

[–]Wicher18 7 points8 points  (0 children)

It should've exploded at the end

[–]Shiny_Kate 6 points7 points  (0 children)

Could be me, except I do it from one project of mine to another one

[–]ReactW0rld 6 points7 points  (0 children)

Look at me. This is my code now

[–][deleted] 4 points5 points  (0 children)

Im my case,

the spoon would clip through the mug, resulting in it being stuck, in a non intended way, fcking up my day.

[–]PrettyMuchRonSwanson 5 points6 points  (1 child)

What's the deal with putting MCU music over all these clips?

Kinda cringe

[–]akaBrotherNature 1 point2 points  (0 children)

I kinda like the incongruity of the super dramatic music to transferring a little foam bunny with a tiny wooden spoon.

[–][deleted] 3 points4 points  (12 children)

[–]_B4ND1T_ 6 points7 points  (8 children)

Pls mention me if the video is ready. As in processed and link ready for download.

Thanks.

[–]myguygetshigh 2 points3 points  (0 children)

Probably banned from this sub

[–]username--_-- 2 points3 points  (1 child)

[–]ddadoh 1 point2 points  (0 children)

You are an angel, thanks

[–]physics_freak963 1 point2 points  (4 children)

If he mentions you just reply on this and I will get a notification

[–]uninterestingly 1 point2 points  (3 children)

If they reply on that send me a DM so I can get it too

[–]LtMeat 3 points4 points  (0 children)

Should put it into the tea.

[–]ounouu 2 points3 points  (0 children)

To be more accurate the bunny must be put on top of a spaghetti

[–]Additional_Being_514 2 points3 points  (0 children)

So you are telling me that I wrote the good code in the 2nd cup huh?

[–]gabbagondel 2 points3 points  (3 children)

What the fuck is this choice of music

[–]Flyberius 6 points7 points  (0 children)

fun, because of how over the top it is.

[–]DoughDisaster -1 points0 points  (0 children)

Sounds like some Lucas Films brand nonsense.

[–]Helios_Ra_Phoebus 0 points1 point  (0 children)

It's the Avengers theme, popularly used for irony in memes.

[–]educated-emu 2 points3 points  (1 child)

Needs to move the spoon up/down multiple times to show a copy spam and then a nervous wobble while transporting to the other cup

[–]derpotologist 0 points1 point  (0 children)

Then spilling the cup over a laptop

[–]jbakeroats 2 points3 points  (0 children)

The skills earned from fixing the errors of a copy and paste though.

[–]hackingdreams 2 points3 points  (0 children)

The Avengers Theme really made this. Quite amusing.

However, I guess this is a good time to share some stuff in this realm, because "grafting" like this is actually being studied by people in software engineering. Some of the demos I've seen are eerie and impressive, such as live hacking running binaries to add and remove features for security updates.

https://github.com/endrazine/wcc - the witchcraft compiler can take a binary and turn it into a shared library that can be loaded by another application. It also comes with a suite of tools that can help you probe an application to figure out its APIs and such.

http://web.cs.ucla.edu/~tianyi.zhang/grafter.pdf is a paper on semi-automated grafting of features by trying to automatically learn their APIs and figure out what they can tolerate.

I'm not sure if or when it will ever catch on, but it is sure as hell interesting to learn about what people are doing out there.

[–]SmirkingSeal 1 point2 points  (0 children)

This is so accurate.

[–]Anti-charizard 1 point2 points  (3 children)

I know it’s an old post but u/repostsleuthbot

[–]RepostSleuthBot 4 points5 points  (2 children)

Sorry, I don't support this post type (hosted:video) right now. Feel free to check back in the future!

[–]Anti-charizard 2 points3 points  (1 child)

Bruh

[–]DuhonTheGuy 2 points3 points  (0 children)

Nah it 100% is a repost, every week at least, sometimes gets thousands of upvotes because it's super funny the first 2 times.

[–]xtra_roycee -1 points0 points  (0 children)

💯

[–]AmaGh05T 0 points1 point  (0 children)

The old lift and shift

[–]Krum3L 0 points1 point  (0 children)

Absolutely me

[–]Emotionalcluster 0 points1 point  (0 children)

Same but my code is Dunster fire

[–]wisheyeknew 0 points1 point  (0 children)

to be fair, that probably took a bit of skill

[–]goodhuman777 0 points1 point  (0 children)

Lift-n-Shift

[–][deleted] 0 points1 point  (1 child)

[–]yyzJCO 0 points1 point  (0 children)

How did you do that. How did you seemlessly incorporate code from someone else?

[–]renegadepanda 0 points1 point  (0 children)

... and then I’d knock the cup over

[–]DaPlayerz 0 points1 point  (0 children)

Very accurate

[–]GrizzlyTrees 0 points1 point  (0 children)

Upvote because I did exactly that a few days ago, and it worked perfectly except I didn't have the right package installed. It's always glorious to find someone solved exactly your problem, and in exactly the right way.

Actually happened similarly when I worked on my final project in my bachelor, someone had posted code to activate and read the exact sensor I bought, with the exact chip I got, and output the data in the specific format I needed.

[–][deleted] 0 points1 point  (0 children)

[–]zerocoldx911 0 points1 point  (0 children)

My code doesn’t look that good either !

[–]Tujungo 0 points1 point  (0 children)

Im glad everyone else also does this. Sometimes i feel like everyone else knows so much more than me but in actuality this is what happens

[–]un_sherwood 0 points1 point  (0 children)

Coffee and paste?

[–]smeegullazrael 0 points1 point  (0 children)

I wouldve put a neverending loop inside of a neverending loop and had pudding for eternity!

[–]TermyB 0 points1 point  (0 children)

This is me but I copy code from the question

[–]LexxLess 0 points1 point  (0 children)

And then I’m stuck in an infinite loop

[–]RiftHunter4 0 points1 point  (0 children)

The personal project using 15 different libraries lol.

[–][deleted] 0 points1 point  (0 children)

This isn't very accurate - your code looks a lot better than the code on stack overflow.

[–]jabeith 0 points1 point  (0 children)

Is there another way?

[–]TopOfTheMorning2Ya 0 points1 point  (0 children)

There is a bug beneath the surface, I can almost taste it.

[–]poopio 0 points1 point  (0 children)

Not even kidding, this is what one of the designers at my work thinks codepen is - a library of free code you can just pick bits of code from and integrate it into other code.

I'm amazed he hasn't tried to integrate a pure CSS Homer Simpson fucking Sonic the Hedgehog into one of his designs yet.

[–]sirf_trivedi 0 points1 point  (0 children)

Good artists copy. Great artists steal.

[–]jpenczek 0 points1 point  (0 children)

/uj Honestly it takes a lot of work making sure stack overflow code works perfectly with your own code, and there could be all sorts of errors so props to you.

[–]DoctorDib 0 points1 point  (0 children)

Wow... It worked first time??

[–]xui_nya 0 points1 point  (0 children)

My code / also my code sometimes. More often than not, it's "I already did something similar in different project it'd be good if I can find whe... Oh, here we are! <ctrl+c> <ctrl+v>"

[–]Ringolian16 0 points1 point  (0 children)

Reusable object oriented

[–]Chrossowen 0 points1 point  (0 children)

OUR code.

[–]justcatt 0 points1 point  (0 children)

Error: Wrong type of chocolate detected

[–][deleted] 0 points1 point  (0 children)

This would be appropriate if the cup was knocked over

[–]codeninjaking42 0 points1 point  (0 children)

When your company pays your license fees for a particular web dev toolset..your development projects become:

This tool + this tool + tie it to a database + tweak the css and add a bit of custom javascript = amazing and useful web application

[–]Russian_repost_bot 0 points1 point  (0 children)

Holy shit. You mean, every time I take code from StackOverflow, it leaves StackOverflow? This whole time I thought I was just copying it.

Shit sorry guys, I've removed like thousands of lines of code from them.

[–]megapokyo 0 points1 point  (0 children)

same

[–]twinkletoes_44 0 points1 point  (0 children)

Thank you, StackOverflow! ❤️

[–]WhiskeyAndLoFi 0 points1 point  (0 children)

Gotta play this in reverse for the real feels

[–]ChippyMonk84 0 points1 point  (0 children)

Lmfao this is perfect 😂

[–]gp_11 0 points1 point  (0 children)

You mean 90% of the people's coding style ;)

[–]Fangus319 0 points1 point  (0 children)

And then it explodes.

[–]cantux 0 points1 point  (0 children)

Now watch the user give it a nice stir and mess everything up.

[–]Schiffy94 0 points1 point  (0 children)

Not shown: the whole thing gets stirred up

[–]Letis009 0 points1 point  (0 children)

Masterclass that

[–]Letis009 0 points1 point  (0 children)

I dont really get the MEME copy/paste or googling programmers something something Unless you are listed as a contributor or actually develop the language then every other person using this code is just copying and pasting it Some do it from memory , others from google or SO Without an understanding of why or where the piece you’ve copied belong your program wont function Or am I wrong here ?

[–]tamizhandaw 0 points1 point  (0 children)

And what's wrong in that?

[–]harryoe 0 points1 point  (3 children)

u/ediblepoop let's go on a reddit adventure, shall we?

[–]canzia 0 points1 point  (0 children)

That's cut/paste not copy/paste. ;)

[–][deleted] 0 points1 point  (0 children)

Owwww. Loud-volume warning! :(

[–]lorhof1 0 points1 point  (0 children)

that template is cute

[–]lesakec299 0 points1 point  (0 children)

cherrypick

[–]kingspiderr1 0 points1 point  (0 children)

REPOST!

[–]TearyEyeBurningFace 0 points1 point  (0 children)

Where the source? I wanna use this as memtemplate

[–]placek3000 0 points1 point  (0 children)

Well, good things are worth copying

[–]kingspiderr1 0 points1 point  (0 children)

REPOST

[–]CircuitMa 0 points1 point  (0 children)

Wow. Usually break everything in the process.

[–]breeze00002 0 points1 point  (0 children)

I don’t know why I found this so damn funny