Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "copy code"
-
When you go to paste a piece of code with CTRL+V and accidentally press CTRL+C instead so you have to go back and re-copy it.26
-
Being 100% serious, I saw a guy in my Computer Programming I class using MS Word to write code that he would copy, then paste into notepad. When I asked him why he did that, he said, "Microsoft Word is easier to read than notepad."
He ended up dropping the class and changed majors.11 -
I know someone from Uni who used a green text on red background IDE to make sure the colourblind person sat next to him couldn't copy his code...11
-
When you copy some code and select the code you want to get replaced and accidentally press Ctrl+c again so you have to copy the thing you wanted to copy again 😡12
-
Me: I use Git!
Classmates: what's that? A Softdrink?
Me: Nevermind. Just Copy the source code on gooogle drive.
Classmates: Thanks!
Me: -_-23 -
One of my worst meetings, as the sheer rage was unbelievable.
Backstory:
Architect: "Stop duplicating code", "stop copy pasting code", "We need to reuse code more", "We need to look at a new pattern for unit tests" etc.
Meeting:
Architect: What did you want to talk about?
Me: I built a really simple lightweight library to solve a lot of our problems. Its built to make unit testing our code much easier, devs only need to change a small bit of how they work.
Architect: I like the pattern a lot, looks great ... but why a library? can we not just copy the code from project to project?
... do you have a twin or something?2 -
Client: Why do I need to pay for a website. You're just copy pasting images and text from a word doc.
Me: There is a lot more to it, like code...
Client interupted me before I could finish: Why am I paying you for code I can't see!
Same client told me to "just phone google" to put their site on the 1st search page.14 -
*On a programming support forum*
Guy: My compiler keeps throwing null pointer exception at line 128.
Me: Ok. Can you post your code real quick so I could figure out what is null at line 128?
Guy: No I'm not going to show my code to someone on the internet. What if you want to steal my code?
My mind: "Dude wtf why would I steal someone's code on a support forum?"
Me: *Use the next 15 minutes explaining that showing the code is necessary so that others can actually help him, and that no one on a support forum is going to steal his code.*
Guy: "You know what I'm more convinced that you want to copy my code. I might as well just try to fix this on my own."
What?14 -
My boss isn't really a developer. He isn't part of the development team and doesn't know any technical details about the product. He doesn't want to code, "too much effort", he just wants to boss. But he wrote some php in the early 2000's and is really, really proud of his codecademy html/css badge...
And that makes him dangerous.
Today I hear him talk from behind his laptop: "Right, we have this page for creating management groups, but we can't edit them yet. I can fix that!"
This task is literally on the current sprint, but he doesn't know that because he doesn't attend scrum meetings and ignores everything people say to him.
Me: This smells like probable cause, let's look with suspicion over his shoulder.
Boss:
"OK, right-click create.blade.php -> copy.
then right-click directory -> paste.
now just rename file to edit.blade.php!"
I start walking to the office kitchen.
Boss mumbling in the background:
"Now all I need to do is just copy the whole method in the controller, change the post url in the form, and modify the <h4> at the top, so it says edit instead of create."
Boss, looking at me now:
"This is so easy... creating and editing is almost the same thing, you can just copy paste all the code from one template to the other! I don't understand what you developers are always complaining about!"
Me: *Hands him a roll of paper towels*
Boss: "What is that for?"
Me: *points at code*6 -
Write a small js function using setInterval to fire a request every second ... then copy paste the code 450 times (literally, not an exaggeration) into a massive file to create a load test script.
This load test script also had no means to gather metrics or test response times or anything useful. It was literally a “did the server crash” test.9 -
If you are copy pasting code from somewhere else, spend some time and effort to understand what that piece of code is actually doing, and how much of your requirement does it satisfy.1
-
Copy code from StackOverflow and paste it. Then complaint on why is it giving a Variable Not Found.1
-
(after 1 month working on native android app).
Me: The android app is now ready.
Boss: okay great... Can we have the ios one ready for launch tomorrow.
Me: No it will take some time.
Boss: why you already have the Code can't you just make an ios app out of it... Like copy and paste
Me:😡😡🆘9 -
Look... I know I'm just a newbie. I started a year ago as a junior. Sure. No one wants to do code review, so I got chosen to do it. People don't like it when their code gets criticised. And you know what? I get it, I should probably be a bit nicer with my comments. I should not suggest I'll make a fork and split internal library into two streams if things continue this way. I should not ask questions that can be understood as me being passive-aggressive.
But holy fucking shit, you're a senior developer. Don't treat Java as a fucking scripting language. Don't have a method that has 600 lines of code, because you're repeating the code! You've already copy pasted this shit, and modified it slightly. Like, couldn't you have created some architecture around the code? How can a senior dev copy-paste code?
Oh and why the fuck did you create a new utility class for functionality I already provide? Look, I admit, yours is a lot better, ok? It has extra functionality. But why the fuck didn't you enhance my utility class? Why did you create a new one? Did you just not want to touch my code, or did you not see it right below your newly created class?
Am I the only one who fucking cares about maintainable code in this company? When I got hired, I was in tears by how frustrating a lot of the things were. No documentation anywhere, not even fucking comments. No processes in place. Want to do something? Source code is your documentation. Fuck you! I busted my ass of to force everyone to document every little bullshit, to re-factor their MRs that I reviewed, and I won't let even a senior fucking dev pollute the code base!
Fuuuuuck... Me...2 -
Person: I liked your personal website’s design, is it ok if I use it?
Me: A personal website should reflect your own style of design. Try creating one instead of using mine.
Person: Oh well, I liked yours more so I used it. Thanks anyway!
They literally have an exact copy of the code with different content. 😒10 -
Client: I need html code for this search bar *attaches png*
Me: Ok. I will send you the code. HTML is just for front end views.
Client: ok. I will place an order, you can send it over *places order*
Me: *copy 6 lines of code from bootsnipp*
*make some changes*
*submit to client*
Client: Thanks but when I press the search icon it does not display the relevant records.
Me: *smh*4 -
A friend of mine asked me if I could review his code. I said ok and immediately regretted it when he sent me 250 lines of .docx text. In PDF. So I couldn't even copy-paste it.4
-
Volunteered to fix a brittle component in our app. Turned out to be 26 classes of mostly copy pasted code that is riddled with todos and void of feedback for the user. Here's a pretty representative sample of this code's quality:5
-
"You guys are taking to long. can't you just copy and paste some code and complete the website?"
Literally fuming right now.2 -
"I made your static HTML pages into a dynamic site! Now just include <%Header%> instead of copy pasting that nav into every page!"
...1 week later...
"You made our website all crazy. None of the pages have headers in the source code but it still shows up by some kind of witchcraft. Put it back."2 -
So my coworker got assigned a task. She copied some code from some crappy site, without even bothering of getting rid of "John Doe" in strings or getting rid of unused functions.
She hands it over me for review and I discover that the code doesn't even work! She didn't even bother running it! Anyways, I knew that the task was urgent, so instead of sending her a review, I trash her code and write everything from scratch.
This morning I woke up with an email from her to the team saying that *she* completed the task. Sorry babe, but I cannot let you take credit for my stuff.7 -
People, for God's sake PLEASE at least try to understand the code you are copy-pasting ... now I have to debug a weird function because of someone who didn't.4
-
Sometimes, you'll be tempted to copy-paste some piece of code from somewhere (stack overflow, w3schools, etc). But instead, read the code there and re-type it. Will help you to understand it better.2
-
Client: I saw this feature on a site and I want it on mine.
Me: I’m almost done with the project. You can’t possibly expect me to start adding new features now.
Client: Just go online and copy the code. I won’t take that long. It shouldn’t be difficult if you’re a professional.
WTF is wrong with people. The worlds gone to shit. Who does he think he is?13 -
I started learning php at age 15, copying code from tutorials, changing stuff until it worked. Now 10 years later I still copy code from tutorials and change stuff until it works...3
-
Dev of my team coding on Idea
Seeing him using space-bar to format copy pasted lines of code
Me: why don't you use ctrl+l shortcut?
Him: I don't use shortcuts while coding
Me: at least use the tab
him: nope.
He formatted 3000 lines of code with space-bar. He's not even using notepad. 😐
WHAT THE ACTUAL FUCK.9 -
Me: Why dosn't cp return an error code when the file in the first argument doesn't exist?
Coworker: Well, you copied a file that doesn't exist to a destination that also doesn't exist, sounds like a successful copy to me.1 -
Code Review
My boss: “where’d you get this code”
Me: “You i copy and pasted from one of your projects like you told me to”
My boss: “oh”1 -
Found a post by G.R. on Linkedln:
"A lazy programmer is also often a good programmer:
- Writes little code to achieve the goal
- Automates all boring jobs
- He does not develop things he does not know yet
- Sleeps at night, then make sure that if the shutdown occurs, the system will restart
- He knows he forgets things, then writes readable and not cryptic code
- Try to reuse what he did
- He does not like copy-paste (too boring to keep)
It takes training to be lazy"
Love this quote11 -
StackOverfllow -> Copy Code -> Doesn't work -> Study its working -> Read related info on other websites -> Code starts to make sense -> Do the required changes in code as per the understanding -> Got it working.
I only learn if the initial 2 steps fail. Else I skip the latter. -
My graduation project partner was strange person
Favorite IDE is VIM
Forget how to use git
But somehow she could code most of the app
I asked what does she do when mistake happens, she answered "delete and write again"
I suggest github but she is "to embarrassed to show her code on internet"
She send .zip file of her code to me
Go to univ library to copy some code because she don't believe random code on internet
Of course verson of code on book in library is too old, but she prefer fix herself
But she is overall good person, so I can graduate next month13 -
My coworker when he is copy pasting code without thinking..
Something like that:
var x;
if (veryExpensiveFunction()) {
x = veryExpensiveFunction();
// do something messy with x..
}
Sometimes I really feel the urge to punch him in the neck - and he never knows why I’m freaking out.. :’(4 -
Coworker was told to shift code from private repo into company repo. She literally copy pasted all the files into the other repo. 😁👍6
-
The next wanker who copy-pastes instead of properly reusing existing code will be tarred and feathered.2
-
Commit Message Part2:
6528fff Code was clean until manager requested to fuck it up
241b35f Who knows WTF?!
4381a32 Argh! About to give up :(
c3bf1a9 more debug... who overwrote!
2d68d6d Fixed a bug cause Maciej said to
b112c1a This branch is so dirty, even your mom can't clean it.
bb456d4 Shit code!
4878b46 Copy-paste to fix previous copy-paste
e2c7e87 A fix I believe, not like I tested or anything
f56109f derpherp
e4b8f4c formatted all
3691208 I'm just a grunt. Don't blame me for this awful PoS.
0888b69 just checking if git is working properly...
62741aa I'm too old for this shit!
0735196 COMMIT ALL THE FILES!
09caccf I CAN HAZ PYTHON, I CAN HAZ INDENTS
1e1cda8 giggle.
ab70bde Fixed errors
934436d Now added delete for real
5f84e30 My bad
99baff8 CHRIS, WE WENT OVER THIS. C++ IO SUCKS.
953473d final commit.
f0c3b57 Just committing so I can go home
4e5ce4e yolo push
deb4e3b I CAN HAZ PYTHON, I CAN HAZ INDENTS
710c06a Commit committed....
3c45e67 it is hump day _^_
4487788 Committing in accordance with the prophecy.
bf86e7e This solves it.
4804f68 FONDLED THE CODE
051d42e REALLY FUCKING FIXED5 -
If archaeologists from 1000 years in the future find a fossilized copy of your code? What would they think about it?
Regex would definitely classify as alien manufacture.15 -
I'M TIRED OF HEARING THAT DEVELOPMENT IS NOT A CREATIVE FIELD! Creativity is emerging new ideas from non-existent ones. It is not confined to pretty designs or well-written copy. Sure, devs are logical problem solvers – but not a single dev will solve those problems the same way. Code is like the paint on our dark-themed canvases and you can see yourself out if you think devs are just robotic coding machines8
-
At a previous job, we had a CTO and in a meeting of all the department heads, we all realized we have a CTO that knows about as much about tech as the pigeons do.
I’d always seen the confused emoji, I however never knew an actual human being could look like it, I’ve seen confused people, but on this day I saw a living 🤔…
How did I manage to achieve this result, I told him you can’t copy AngularJS code into a Flutter project, I then proceeded to tell him you also cannot copy it into a react project. I think I broke his brain.
Oh and yes, I worked at a development house, all the department heads were developers except for the QA head.2 -
Personal Project:
Code lives in gitrepo, commits to master are automatically unit tested and if all tests work it will be published to production
At Work:
"If you're done put this .bat in the project folder, it will copy everything in it per ftp to production"1 -
me: the source code is currently store on GitHub and we use GitHub Actions after each updates to compile your code into binary before deploying to your servers
client: storing source code on GitHub (external server) is insecure and breaks compliance
me: so i guess you will need to have a copy of the source code on all your servers and build them directly there (too cheap to have a separate build server) instead of using GitHub Actions
client: yeah
me: keep in mind that all your certificates and tokens are going to be store as plain text in all your servers so if a hacker gain access to anyone of your servers, they will have access to everything.
client: yeah, this is in compliance to our security policy3 -
I think Matlab was only invented to fuck with people. Yeah, let's start indices with 1. Oh, and set copy and paste on Ctrl+W and and Alt+Y.
You didn't save your code? Too bad, the network went down and I lost the license.3 -
I've been working towards a degree in CS recently after being out of school nearly 10 years. I've been trying really hard to keep an open mind and not complain about the professors, but I have to let this out.
My one class we have to write all of our code in their specified editor which I hate, but I understand the need for standardization, but then once it is error free we have to copy and paste the code into ms word and turn it in!! Really?! In 2018 I can't just submit my source files and you open them to run and grade? I seriously have to copy my code into ms word for you to grade it? I don't even understand how you would grade that because it kills the formatting and readability, not to mention the quotes get changed to their curly counterpart which isn't valid syntax.7 -
Currently, I am going through a legacy application built in microsoft access back in 90s.
* No Comments
* No Relationships between tables
* Random code that does nothing
* Weird form layouts
* Weird naming conventions
I need to copy this functionality into modern version using SQL Server Management studio and asp.net core, I also need to kill myself because none of this fucking shit fucking fuck makes sense.
I do my best to write clean and concise code along with comments but after this ordeal I am going to up my game because nobody should need to suffer through spaghetti code and stupid logic that is uncommented.
😶6 -
noob misconception #527: during my first hackathon i didn't know what version control was (i thought github was this magical elite hacker tool), so id copy my code into a google doc every few minutes along with a timestamp 😫6
-
Software engineering course.
Professor wants to show us some Java code.
*Opens eclipse*
*Font super small*
Student: can you please increase the font size?
Professor: sure.
*Can't find the correct setting to do that*
Professor: does anyone know how to increase font size?
Some student at the back: copy the code to notepad++.
:/
Cool professor though..9 -
“Just make sure you change the code a bit so it doesn’t look like you copied it from Stack Overflow.”2
-
I've been looking at the shittiest code today. Hundreds of lines saying
this.thing.otherThing.EvenAnotherThing[this.someFuckingIndexThatShouldntBeAField].theOnlyBitThatsDifferentPerLine.AlsoNoneOfTheNamesWereThisMeaningful
Over and over. They're all wider than the editor window. Clearly copy pasted. Just make a fucking variable Jesus Christ how do you expect anyone to read that2 -
While I was in university, I used to be a good programmer (which I still am :D ), my friends used to copy my code for the assignments. One day, the teacher (one of my my mentors) called me in his office and said, "this is your code".
I'm like, in my mind, "How did he know this?"
The teacher said, "If you let others copy your code one more time, I will fail you".
I nodded my head in affirmation.
Later I understood that I've been a "Clean code" principle follower even before I knew this term. So, it was pretty easy to differentiate my codes from my friends. The teacher is really a genius ^_^5 -
When teachers expected you to write code for them for free that they didn't even understand and then copy it and claim it as their own....
-
Professor wants to copy code on his laptop (with beamer)
-selects code
-moves mouse-pointer to top left
-clicks on 'file'
-clicks on 'copy'
-moves cursor to desired destination
-moves mouse-pointer to top left
-clicks on 'file'
-clicks on 'paste'
Man why do have to show us how shitty your trackpad is and bother us with 5min of copying, when you could use Ctrl+C and Ctrl+V?5 -
Worst project I had was when I was asked to just copy-paste code and change the names of variables. Yeah, that's it, nothing more than that.5
-
Devs : Lets pick library X, it is well know piece of open source technology, actively maintained by community for over 10 years.
Architect : NAH, it is an overkill to use it in our project , lets build our own solution.
*2 Months later*
The code base is hundreds of thousands lines of code, we basically started to look at library X on GitHub to copy features or get inspiration from that code. In that time we delivered 0 business value, it is horrible to use it and we constantly adding something or bugfixing because no one thought about something in first place.1 -
if ur gonna explain a brand new goddamn concept and make a goddamn course or a goddamn series out of it
then dont fcking goddamn copy and paste the godfuckingdamn code and just explain it
WRITE THE CODE AND EXPLAIN IT1 -
Copy paste from the internet, usually stack overflow without knowing what the fuck the lines do.
I saw this girl who was tasked with building a spring mvc application and she literally googled(yeah googled) "spring mvc web app" and copied from the first tutorial site and pasted it.
When errors showed up she copied everything from the second link and pasted it ... Wait for it... Without deleting the old copy but commenting it out so each file had 100 lines of code and 100 lines of comment9 -
Marketing: so we want it to behave like this website, so it'll have to have feature A, B, C and D.
Me: okay that might take a day or two.
Marketing: what? can't you just copy-paste the code from that website?8 -
Client:
We want you to use the code you used 3 years ago to deliver a similar feature for a different company and then it means we can do this properly because you can just copy and paste it for our needs.. we can pay you a few dollars but we really know what we need so the cost should be very small.
Me:
What the fuck.3 -
Any project that started out with "All you have to do is make a copy of the old code. That should take 2-3 hours..." and ends with a huge list of change requests that takes days to fulfill.2
-
Whenever my friend messages me to debug his code or to correct the errors, I google the line with the error, open the first result and copy and send the solution to him.
Now he thinks I'm a badass programmer😂7 -
So my manager comes to me and says the developer A said he wrote a code that you can re use why is it taking so long to complete, just copy and paste. As if it's just copy and paste😡1
-
??????????????????? What??????
???? What???????
I couldnt solve a bug for hours.
Hours of googling.
Hours of mental trainwreck.
Hours of stress.
1:28 am.
I cant solve it.
HOLD ON I HAVE AN IDEA.
ChatGPT AI. HELP ME.
i copy and pasted the part of code thats bugging me. Keep in mind that this is a VERY large and robust system and this is just tiny percentage of code.
I told the AI to help me fix this shit bug.
ChatGPT literally explained me what the bug is as if im retarded and wrote code how to fix it.
LOOK AT THE SCREENSHOT U CANT EVEN MAKE THIS SHIT UP
HOW????18 -
The bad thing about programming is that you can copy paste working code from a previous program on the same machine, same IDE and it still won't give a fuck.. I'm currently here.2
-
I followed a tutorial on how to use TensorFlow to create digit recognition. It worked. Theres just a few issues ...
I found the code on a website, and wrote what i saw (almost copy paste)
I barely understood any of the code
I did not understand the results
I have no idea where the images was found
Im almost more confused now, than when i started, thats not good xD7 -
Coworker called me up and shouted at me for refactoring code. "It might break!".
But his copy paste addiction is sure to make everything more stable, right?
Course, he still hasn't figured out that I'm the tech lead, so I will completely ignore his useless whining, as I have his boss on board.6 -
okay, i'm still a newbie to (unmanaged) C++, but looking at a colleague's code, what the hell is all this cryptic shit 😵 all this unreadable templating stuff + typedefs, 8 different copy operators in one class, i'm getting headaches just looking at it3
-
Had to hand in as assigment for my algorithms & data structure course and really put alot of work into it, commented code, easy to understand and all.
"Why are you showing me copied code from the internet?" was the professors answer...
I did not copy any code and some algorithms often look the same...6 -
"I understand you want to write your own code. But that's not professional. If you have reusable tested code just copy and paste it in your project"
I thought he was joking. But I am realising it's the most valuable advice in jy workplace11 -
I got in trouble for refactoring code to be modular. They said “thats too complicated the maintenance team”.
Said coworker produced a kludge of copy pasted code so the dumb ass maintenance team could understand it.
tldr; interfaces and abstract classes are too advanced for our employees so make the codebase shitty on purpose.3 -
That pure rage when you're off work for a few days, and return to find that someone has been in one of your magnificently neat code files, and taken a syntactic shit! Loads of unnecessary whitespace, tabs all over the place, and copy/pasted comments that have nothing to do with the code! 😫1
-
Me: Found solution on StackOverFlow, lets copy/paste code and try it out
*Clicks ctrl+v*
Computer: There's your value!
Me: Wait that's not what I copied
*notices that I copied from a different computer and expected it to paste on this one*
*cries in corner* T_T6 -
Writing a super extensive project in php. Twice so far, I have had weird problems of codes not working.
But everytime I copy/paste the SAME code from another file, IT MIRACULOUSLY WORKS!!!!
WHAT THE ACTUAL FUCK!!!12 -
Copy-Pasting code from the StackOverflow into production code is like chewing gum found on the street. 🙄1
-
When your dev's copy and paste code and don't bother changing the (completely irrelevant and misleading) variable names.1
-
Why you should always backup.
Nearly a year ago I developed a whole project (iOS, tvOS, watchOS), but I never backed it up because I had a recent machine and thought the chance that something happens to the disk is so small I didn’t backup. But then my mac didn’t start correctly. So I needed to reset it. Lose the project, some other files but not much else. Then I recoded the project and backed it up on multiple places. But a little later, I was writing another app, again didn’t copy again... This time I deleted the wrong folder and deleted the trash, was gone too. So from then I learned to copy everything I coded. All projects I work on, I keep a copy of on an external disk, GitHub and Bitbucket. Assuming they wont crash all at the same time 😉.
So I recommend everyone to backup all your code. Even if it’s only 500 lines. Losing it is hard...3 -
Just taken over a project from a "high end" London agency to find their code is just poorly copy/pasted examples from the WordPress codex.2
-
One of our juniors was adding a feature and made a small mistake in one of their (copy-pasted) unit tests by forgetting to cast a return value of a mock
So he spent a ton of time changing the main code to do type checks, try/catching and error handling.
Poor soul realized the mistake in code review one day later2 -
"Coding is free dude, why are you charging me for that when I can just use Google to copy-paste code from there and there, boy.. think about it"
-- Typical Client5 -
So.
After spending almost the whole day to get a project to usable state (VM/git setup etc.) I think that I´m finally getting done, and then it hits me.
I STILL NEED TO CHANGE MY IDE´S THEME TO DARK. PREFERABLY AS DARK AS MY SOUL TORMENTED BY THIS VERY PROJECT.
And I also need to copy my code templates from another project.1 -
1- Copy/Paste (code)
1- Googling before trying to fix a bugs by myself first.
1- Never finish my side projects.
2- (Worst) Still doing all the above.3 -
When you realize that the bug is happening because you copied your own code and forgot to replace some variable after you pasted it... Damn you brain! Do not copy/paste ok? Or I swear I will drink a lot on Friday....4
-
GOD DAMNED DICK EATING, CODE SHITTING, COPY PASTE MONKEYS!! STOP RELEASING LIBRARIES IF YOU HAVE 0 COMMON SENSE.
WASTED 3 HOURS JUST BECAUSE YOUR PILE OF FUCKING NODE MODULES CHANGED ENVIROMENT VARIABLES, AT LEAST PREFIX YOUR DIRT CODE BEFORE SHOVELING IT INTO THE MOUTH OF OTHER DEVS AROUND THE GLOBE.
TL;DR
Fuck shitdevs.1 -
HOW TO PROGRAM(in four easy steps) :
1. Google the F*cking Problem.
2. Open a Stackoverflow link.
3. Copy and paste the code.
4. If it didn't work, goto step 2.
If it did work, goto step 1
(you didn't think you were done.. did you?)
FAQ
Q: What if there is no code?
A: Then it is impossible.3 -
Xcode storyboard sucks!. At least it could've had a code version of the storyboards (like android XML layouts) so that at least you could properly copy paste a layout from somewhere. Autolayouts and constraints are so flipping confusing that I almost always end up doing all the layouts in the code itself.2
-
That moment when code reuse makes you reuse reused code and you actually reuse a BUG.
You decide to go for code reusing when your boss asks: "Can you add an edit popup besides that 'add customer' popup button?". You do some little tweaks to the "new customer" code and it allows that to save over an existing entry, cool.
However, after a lot of time spent on reviewing the resulting PR, turns out there was a dormant bug on the code you reused, and it woke up with its new use.
That code was a bad copy-pasta from another, bigger form, which included a whole bunch of optional fields. As it was only used to save new entries, those now missing fields were simply being saved as empty. But as you reused that to save existing entries, you were now cleaning up all those optional fields without noticing.1 -
So I'm tasked with rewriting the old software my employer uses to track basically anything in his company. They want to stick quite close to the old workflow as much as possible, I get that.
"Why exactly do you need access to the system? No you don't need to look at it just recreate the flow. I'll give you the sql structure is that OK? Oh and this won't take long, you can copy from the old code can't you? Wait why do you need access to the code? No. "
🙄7 -
Copy and paste a piece of code from stackoverflow without having the trouble to understand the code3
-
Q: Tell me about the app you made
Candidate: ahh...umm..tooot.toot
They make me feel like they just copy paste code to get the working version.
I feel bad when see people like this, collage costs a fortune and yet they don't teach students how to start and organize requirements5 -
Learning through documentation.
I learned one thing.... That how I can copy paste any thing in my code and comment it as "magic happens here do not touch."
Yeah thats my code learned from documentation (image below ) -
Some motherfucker pulled the entire fucking Lodash library off a CDN so he could use one fucking function.
Buddy, the library is open source, you can just copy the relevant code off Github
This is why websites are slow as fuck, devs import shit they don't need3 -
When I was in first year, I let my classmate copy my source code for our VB program in order for him to save the semester. We both agreed that he should change the variables, etc first before submitting the project.
GOOD NEWS: He literally changed the variables.
BAD NEWS: We had the same interface on our project.
It sometimes haunts me, until today.3 -
Firebase is pure fucking assrape!
How can these spoiled cunts of Google "develop" such a stinking pile of rotten placenta?
No, one fucking Promise is not enough... you have to return Promises for every single smegma function!
I want to just blow up this ugly afterbirth!!
It seems that Google devs are just spoiled MacCunt Pro brats who copy-paste code around until something "kind of works".13 -
Here's my flow:
1. Sit at my desk and contemplate the Universe
2. Sort out specifics by pacing back and forward
3. Draw like a mad man
4. Copy an old project and change a few lines of code
5. Go home happy that the Universe is safe once again
;)2 -
Always include import statements. Always. No excuses. I don't care if you can't be arsed to copy-n-paste an extra bit of code.
Nothing worse than trying to learn something new, copy-n-paste a sample code then your wonderfully helpful IDE asks you which of the 8 matching packages you wish to import.
When someone asks me, "where did you get that", I don't simply say, "a shop"!!
If you don't include your imports in answers then I hate you.6 -
Please and please, if you cannot take the time out to create new classes do not copy and paste another without editing it properly! I noticed you do a find and replace and then leave 50% of variable names un-edited because all errors are gone. I am begging you in the name of Zeus edit your shit!
Here is one dick head:1 -
Client: This feature is already present in one of my other projects, you just need to copy paste it.
Me: Ohh, I will have a look at it :)
What I felt: Nothing in code works with 'just copy paste!! Bitch.
AND YOU ARE THE 100TH PERSON TELLING ME THAT, SO...... YOU HAVE DIE! -
I’m on a screen share watching an offshore associate copy code from my email to the target script...
... by switching back and forth between windows and typing in the code...
Is COPY-PASTE a little too advanced for this team???3 -
When you are told to copy some functionality of the global code for a module youre building, and in code review, the senior dev team gives you 42 errors to fix on their own global module2
-
Had a really slow Android programmer at my last job.
It took him over two weeks to add a slider to a screen, the boss comes over and asks why he isn't finished. The coder responded: I'm sorry! I'm bad at using the keyboard!
He got fired a while after and later we found out that he had only been copy+pasting code from websites.1 -
At home: Man I really love code and everything I can do with it. I'm a fucking wizard.
At work: You want me to copy and paste some text into the view for you? Okay... *cries into keyboard* -
Describing a friend's project to a friend:
"And then theirs a tinder like element, for filtering potential dates, but that's not implemented yet."
"Why doesn't he just copy tinder?"
"Er... wat?"
"You know, just copy their code and put it in his app."
"You don't... you can't... I mean you can decompile... but that's not useful because... it just doesn't work that way. For a million reasons. I don't know where to begin."3 -
what the fuck is up with devs who always send screenshots of code and/or log files? In Slack, which has great functionality for formatting text snippets in a variety of languages and data types?! screenshots of code are really a pet peeve lately. You can't copy the text or click on any urls or do *anything* with a fucking screenshot. so dumb.6
-
<html><body>shit everywhere<meta>more shit</meta></meta><\meta>countles garbage code lines</body><head>[copy&pasted html code that actually works <img ... />]Tons of shitload</body></body></html>
Me: what are you reading?
PM: some email code that doesn't render well in the browser...
Me: let me see... OMFG!!!! who was the author of this garbage?
PM: Oh! it is not that bad! It was working well 'till today...
Me: But... but... this is really bad! you can't send this to customers!
PM: I think that the problem is the "/" at the img's end...
True story. -
When someone copy and pastes code, repurposes it and leaves in the old comments that just confuse the hell out of the next dev.1
-
Should have kept a copy of my best code off of my work computer. That way it wouldn't have been confiscated along with the computer during the layoffs. [sniff] I had some beautiful Stored Procedures I can't satisfactorily remember how to reproduce. 😅4
-
Going over his first iteration of his assigned project...
Me: "This looks awfully familiar..."
"Senior Developer": "Well, I took some inspiration from your apps"
Me: "No, you copied and pasted all of it, down to my breadcrumbs..."
Senior Developer: "No, I only made it LOOK like yours, I didn't copy any of your code..."
Really?! REALLY?!7 -
Just looked at a fellow devs code (has 4 years experience). His test rig has the same 5 lines of code, copy pasted in the same file ... 400+ times.
What is the appropriate action to take?8 -
This is a gripe about modern UX interfaces. UX interfaces need to have better ways to get information displayed in text as text. It is exceedingly annoying to be presented with an error message in a dialog with a cryptic error code. The user is forced to transcribe the error message to try and figure out what is causing the error. Just make the text copy-able with normal cut and paste interfaces. I think this should be a standard in interfaces that present text to make it easy to copy the message or text from interfaces. This makes information sharing easier and less cumbersome to the user. This is definitely a mindset change for UX. This is mostly a gripe about desktop. Phone systems are just shit to begin with.6
-
Couple years ago I was asked to add couple of simple features to a piece of code on clients server. I thought it was simple process until I got the code and noticed that the variables were named like int1, int2, int3... etc. Also same logic in the database.
Needless to say I spent too much time to figure out what those variables and db fields contained. Also the whole code was copy paste code from the web. -
hey is there a non code browser automation tool? one with a record and play button?
I have to "copy / create" 16 drupal pages with a gazillion modules manually by hand. And each page takes an hour of tedious click work.
Thank you for your help ❤️10 -
Copy and paste similar code where I have to change X values but ALWAYS mange to only change X-1 values so i get weird behaviour start debugging what in the end then takes longer than to write it new in the first place. Hate myself for that.
-
So my friend who's learning to program didn't really feel like he accomplished much in a uni assignment since he googled most stuff, copy-pasted and tweaked the code a bit. When I told him that's actually the way we do things he found it the funniest thing ever.13
-
i transferred shitload of code from one class to another, stackoverflowed something and copy pasted it because i have never seen that this needs to be written like that, hit run compile, open up my logs expecting a mass crash and possibly explosion. it worked on the first try2
-
When you make the whole damn game using c++ but you copy one tiny bit of code to use the mouse in graphics mode but they catch you and make you explain it to them and you can't...
This was back in high school when I was younger and dumber. -
Same as we look at some old pages and see "oh this is unstyled table layout, that is xHTML inline style - it's from the 20th century"
People will look at pages of today in like 20 years and be like "Oh gosh, the material design phase. - oh the apple-blur-copy-cat-phase, oldish HTML5 code, that's from the 2010-20-ies"4 -
Writing my code, go to run it and boom its not working. I pull up stack over flow to get some insight. At this point i was working on my code for countless hours and became a bit annoyed so i decided to copy what someone wrote on stack over flow delete my code where i thought it was flawed. I run it and Blam bugged the hell outa my code. So i undo go back to my original. Turn to a friend and ask what do you thinks going wrong. He resets my browser and there it goes it works. I just kind of gave him a blank stare and thought to myself Im a dumbass!1
-
My first job was 3 years ago.
I was tasked to create feature updates for a referral system.
There were two programmers in that project , both had left the company before I started.
There left no documentation whatsoever. They gave me a copy of user manual as my guide. HAHA!
Half of the code was in code igniter framework(wasn't even familiar with it then), the other half was hard coded.
It was a total nightmare. Wish I had the guts to call it quits then and there. XD10 -
1) Let me work with devs without me having to explain fundamentals of programming
2) Stop devs from copy pasting code from StackOverflow or any other project without actually understanding what it does
3) Get devs to actually read and understand project documentation FIRST before jumping into any programming work1 -
I've been slowly but surely writing the skeleton of a game on my Github.
Now to actually learn the basics of Github so I don't have to copy and paste my code every time there's an update....6 -
Who the fuck accepted this garbage copy pasted code all over the place?! Ah, it was our "tech lead", cool.1
-
I’m on a screen share watching an offshore associate copy code from my email to the target script...
... by switching back and forth between windows and typing in the code...
Is COPY-PASTE a little to advanced for this team???5 -
Big plays...
function collapseView(element){
/**
*it doesnt work at the first time, the function needs to be called again
*/
element.collapse();
element.collapse();
}
Literally copy and paste this code..1 -
tabs vs spaces
i hate it when i cant find where i used spaces instead of tabs. just a simple mistake and it doesnt work
me: *codes makefile in codenvy*
terminal: *** missing separator. Stop.
me: *rewrites code exactly the same way in Notepad++*
me: *copy paste code to codenvy*
terminal: *compiles whole project*
wow. just wow.6 -
My worst legacy code experience:
>10k lines of switch case statement with "some" fall through.
Even fall through for 4 or 5 cases.
This monster was copy pasted and modified over years (Order of the case statements and another fall throughs).
So you can't diff this piece of shit for refactorings.
Luckily I leave that company. -
I spent 2 hours googling and scratching my head trying to implement asyc Tast<ActionResult> on asp.net MVC. I even copy and paste the exact sample code and still didn't work. It turns out that "Visual studio for Mac" doesn't support asynchronous calls.6
-
I just copy-pasted this into 4 of my apps and republished them.
It's part of my own C# library that removes the need to write boilerplate code.
https://github.com/allanx2000/...
(I have a Merged library with some added NET 4.5 conveniences but that's not check-in)
In general, I think making computers do all the grunt work makes me a bad-ass.3 -
-Writes a small python script on windows
-This should work without a hitch
-Throws more errors than there is tangible numbers in the universe
-Spend an hour trying to fix it
-Give up, copy and paste the code into linux line for line
-Works immediately
Whoop2 -
Gmail filtering sucks but i just realized something.... i have an app for this... i just need to copy an existing project and change the code!5
-
I spent most of a day a few weeks ago tracking down and fixing a NaN bug in a framework I use. I hacked it into my local copy of the framework's code.
Today I have the same bug, and after several hours of searching I finally realize I'd updated to a new version of said framework and so had overwritten my fix....
FML3 -
That moment when you copy some code from another project of yours and the new code doesn't work but the two projects are almost identical...
Damn I wanna break this thing so much..... 😬😬😬 -
In case the kiddos ask if you can hack Facebook or whatever, here's a nice little JS code. Copy paste it into the URL, hit enter and select + edit whatever you like!
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
ps: in chrome the 'javascript:' at the beginning gets removed so you'll have to manually add it. not sure about other browsers3 -
I find it so ironic that people love to rag on those who copy code from StackOverflow when most of these same people use tools like composer or npm.
At least you can vet code snippets.3 -
coded a java program in eclipse throws back error .
Know that program is correct.
Created a new project file copy pasted the code, wolaa.. executed.
:/5 -
I just hate it when a classmate just waits for you to do the work first so that they can copy it.
This recent project we had was a pretty good example. Most of them didn't know what to do while I on the other hand actually READ the documents for the technology we were using so it gave me sort of a head start. They eventually asked me to do one part of their work first so that they can copy off of what I did and I mean EVERYTHING. A pure copy paste of my code while only changing the variable names. Genius1 -
Copy-pasting 90% of our entities including logic and merging some - creating thousands of duplicated lines - and then creating views for those abnomalies just to speed up the ORM fetching which could have been done with a single join...
Took me some time to delete all of that fking shitty untested code full of bugs... -
that feel when I am the only one in team who knows at least one framework.. and coworkers refuse to learn and instead copy and paste code parts from old, insecure apps into new apps... 😐1
-
Recieved some code from a client to review for porting it to a new system.
They sent the PHP scripts copy pasted into seperate Word Documents and skipped the most important file (containing the business logic functions).1 -
Feature request: Being able to copy text from rants/comments on mobile. Also some sort of code formatting would be nice!2
-
Best client I have ever experienced. Kappa
So, I got job to recreate one old website, because the old one was incredibly fucked up. She told us, it was made by someone retarded.
The code was fucked up even more than UI. It was definitely written by some kind of idiot. Diacritics, mixed languages, no OOP, no FW, just copy&paste. Yeah copy and paste for every page.
The DB was another level of shit. Inifine is not enough to describe it. Column names with whitespace, diacritics, uppercase, lowercase...pure hell. Yeah and I had to import it.
Whenthe new website was ready for testing I got an email from her that it was her who made the website... HER!! Fucking hell, no more of this please!1 -
copy paste code ...... copy paste debug....
.
.
.
copy paste code ...... copy paste debug....
.
.
.
.
copy paste code ...... copy paste debug....1 -
Here is my day.
1. Mac wanted to perform an update.
2. I said Okay, Do it.
3. It took sometime, I thought WTF let's force reboot.
4. Shit happened. I am unable to boot as install is corrupted.
5. Reinstalled a fresh copy. I didn't have a backup.
6. Realised that my two days of work is gone since I haven't pushed the code to github.
7. Found out that I made a docker image with all of the latest changes.
8. Now trying to decompile and rewrite the code from the jar in docker image.10 -
It's been so long since I used git I accidentally nuked my commit and only copy of client code during a revert.
How the fuck does anyone mess up that badly? 😅8 -
$ python
>>> class Object:
>>> pass
>>> self = Object()
>>> self.attr = val...
>>> * copy paste code from some class
<Ctrl>+d
Testing ☑️ -
Computer programming teacher wanted us to write some pseudocode to solve an algorithm just so we can practice writing some code and solving problems. The teacher needs a copy so I spent about 2 hours today rewriting all of that pseudocode because she wants it handwritten...10
-
Until today, I had assumed deploying stuff to prod would NOT be one of my responsabilities in this company. Apparently that's not the case.
Had to deploy my code and pray it didn't break anything. Why is this a big deal at all?
Well you see, there is no repository. At all. No git, no svn, not even duplicate folders. No tests, no pipeline. Just a bunch of CPanels.
Had to manually copy files and folders from the development site to the production site and partially copy a database. "Just drag and drop" were the instructions I was given.
As if using CakePHP2, PHP5 and having to parse fucking Excel files wasn't bad enough, now I have to deal with one of the worst ways to deploy code.
Fuck it, I'm switching on the looking-for-job flag on linkedin.5 -
Hey, I need to get something from the database here. But I've already created the connection somewhere else. Oh... I know! Let's just copy paste it here, here and here... Maybe just here and here too... And some more over here...
- The thought process that probably went through the head of the moron who wrote the code I started working on2 -
you know it's a good day when you copied that funky looking code you wrote, copy pasted in current project and IT JUST WORKS!2
-
best teacher? i wont really consider it teaching but it had really helped me a lot in my 1st year of programming.
me: *sends an email* hey i dont really understand how to do this part
teacher: i dont really know how to explain it so i coded it myself *sends me code*
me: oh thanks! *copy paste to mine*
after a week:
I GOT A PERFECT SCORE!! but ofc now i dont trust the teacher's code anymore. i deal with my own code.1 -
I was working with some guys on a plug.dj bot, and one of the guy knew shit about the module we were using.
He decided to add a copy-pasted code directly to master, wrecking the bot.
Never giving write access to that guy ever again.6 -
When asking for help:
Sending screenshots or worse, use their phone to take a photo of their screens instead of copy pasting the code.
As if reading their code isn't hard enough already. Ugh -
Is it essential for a developer to steal or copy code from different sources to satisfy their client or it's a common thing????😞2
-
If you are writing all your code from scratch, you are probably an amateur.
If you are copying and pasting most of your code, you are probably a beginner. -
OK what the actual fuck is going on within this company.
TL;DR: Spaghetti Copy/Pasted code that made me mad because it's just a mess
I just looked into a code file to search for a specific procedure regarding the creation of invoices.
I thought "Oh this is gonna be a quick look-through of like 1000 lines MAX" turns out this script is 11317 fucking lines long and most of it's logic is written there multiple (up to 6-7 times). And I'm not talking about a simple 10 lines or something. No! Logic of over 300 lines.. copy & pasted over .. and over .. and over?! I mean what the fuck did this guy drink when he wrote this.
Alsooo 10000 of those 11317 lines is ONE FUNCTION.. I kid you not! It's just a gigantic if / else if construct that, as I said before, contains copy-pasted code all over the place.
Sadly my TL thinks that code cleanup / optimization is "not necessary as long as it works" like wtf dude. If anyone wants to ever fix something in this mess or add a new feature they take a few hours longer just to "adjust" to this fucking shit.
This is a nightmare. The worst part: This is not the only script that has shit like this. We got over 150 "modules" (Yeah, we ATTEMPTED something OOP-ish but failed miserably) that sometimes have over 15000 lines which could be easily cut down to 1/3 and/or splitted into multiple files.
Let's not start about centralization of methods or encoding handling or coding standards or work code review or .. you get the point because there's a character limit for one rant and I guess I'd overshoot that by a lot if I'd start with that. Holy shit I can't wait until my internship is over and I can leave this code-hell!!2 -
Yesterday I spent almost 3 hours trying to sort an array of objects in java. I'm a person who has written a lot of python and dart code and java is just so daunting. Every simple thing is so complicated.
You can sort a list of objects wrt any parameter using a one liner in python.
Finally after copy pasting a lot of code from stack overflow the thing got sorted. And the worst part I don't even know how the thing works.4 -
Spot what's wrong with this command!
It took me 10 minutes scratching head to find it out. This is why we still need to use our brain when copy paste-ing code.
😕11 -
So I spent all day today trying to debug a C++ Program and after hours of digging into the code , I realized i had copy-pasted a for loop and had forgotten to change the loop variable from i to j. 😑4
-
So ,was interning in a MNC ( one of the top IT service company ),
So an another intern changed her code, and later the software stopped working!
She panics and her manager comes,
He comes and says "it's ohk , just take ur time and figure it out, but from next time backup ur work by sending me a copy of code in email ! "
I facepalmed, and was laughing!
Do these ppl know there something called VCS!?2 -
Copy/Paste to/from multiple clipboards in Windows - https://github.com/Matts/AltCopy
I've always had the issue when refactoring code, I am wanting to "copy on cut", or just having two clipboards to use separately.
I am not sure if anyone has ever had this issue before, and so am also not sure if anyone has ever created a solution it. So I took 10 minutes and made a AutoHotkey script to solve it.6 -
I just don't like copy-pasting the code. can I become a good programmer?
please give honest opinions in the comments.11 -
One of the DB guys at work writes DB packages like this:
- open package in PL/SQL developer
- copy code to notepad
- edit PL/SQL code in notepad (yes, fucking windows notepad)
- copy and paste back from notepad to PL/SQL developer
- commit
Everytime I see him edit DB packages I can feel my brain mass shrinking.5 -
Do you think Facebook developed different " stories" for each platform . Or just copy paste the code !?
U know .. WhatsApp , Instagram, messenger, FB .7 -
When your senior says he may as well stops working as I'm always refactoring his code...
Same sentence says I copy what you've done in other places so I don't see why it isn't good enough. By copy he leaves redundant code in there too.
Am I a being a douche is he just being over the top?
- He writes code and expects it to live for a long time.
- I write code and will go home and refactor my own code.2 -
Thanks I hate it, I hate the fact that typescript will still transpile this. Not an exact copy of the code I'm working with, but close enough. Also this code targets es3, but we generate tsconfigs that say es5 (which don't actually get used) which leads me to believe that we generate them soley for the benefit of ides, and because if they said es3 the ide would show even more errors7
-
We once had to make another wordpress multilanguage site on a different domain but it should use the whole footer from previous site full with its images and sitemaps. The client said "just make it look like a copy of a footer". This would require us to copy the whole footer for 4 different languages every time somebody makes a change in the original site.
So the workaround we did in the end was to make a specific page in original wordpress site which only returns the footer.
In the new wordpress site we made a code which scrapes that whole page and puts its contents on the footer of the new wordpress site.
It worked perfectly and we never needed to copy the whole footer again because it was "dynamic". -
Sample code from an old boss... with Vector datatype. "Just copy paste. I have already tested and it works"1
-
What you do: copy and paste existing code from the project
How you explain it to your boss: "conformed to existing code style" -
*thinking to myself*
Would it be faster to try to guess/remember the correct syntax and type out this line of code, or search for it on Google, then copy and paste it?1 -
Ok, so we know you've not had any work to do for a week. Here's what we'll do - pick up this task to copy & paste shit code from one project to another. Don't worry yourself with what it does.
FMDL3 -
When you find some interesting code on the internet so you copy paste it but it gives you like 20 error messages and your whole project file get corrupted so you got to remove the whole project file and start over2
-
Starts search and replace.
Trys to replace a type in the whole Project.
Syntax Check: lol no, apparently everything is broken now, good job
(literally my whole project was marked red)
Reverts changes
(project still marked red)
Syntax Check: lol what? Your code already looked like shit before, won't let you compile this.
It was a bug which breaks the syntax check after big replace requests. Had to start a new project and copy my code step for step, so it didn't break again. However I've forgotten to replace the type before I copy...
Another story regarding this shit:
Renames Variable
IDE: oh, let me help you by replacing all old var names with the new one
Agrees
IDE: oh shoot, didn't know it could break things
Wants to revert
IDE: did you think I would go through this mess again?! Do it yourself!3 -
So I've a little freelance project, is basically a blog. I've decided to use microservices with angular in the front end and python in the backend.
I've been about 2 weeks copy pasting code in my api because all the modules are pretty simple CRUDs that do the same thing, there is not heavy business logic or anything, just database handling.
I was really tired of copy pasting modules and his test, only changing function names and parameters, today I've this "epifany" about the inheritance and thinked about using it in my service, creating a base class and making all the other classes children of him.
Before the change my project has 220 tests (100% coverage) now I have only 40 tests (the same 100% coverage)
So, the lesson is: don't start throwing code like an idiot and start your project with some good planning1 -
Person: Huge long will it take to develop?
Me: About 6 months, with a team
Person: That long? Can't you just copy <proprietary software>'s code instead?1 -
"let's just copy and past the all the code with logic and smack on some if statement and change some texts for localization"
What the fuck, why? -
I found programming really out my focus. Initially when i was exposed to it, My friend showed me a code of C and C++ and i was like it looks so untidy and annoying like colons and semicolons in between of random text sentences. In my first semester i had this Programming course of C and C++ and i had to deal with it. The lab sessions were totally bouncers for me, i cant understand any anything. During writeup submissions i used to copy someone else’s code (Yeah, i wrote down the whole code with a pen on a paper including every syntax). Writing down codes gave an idea about the flow of code, i didnt knew what was really happening in the alogorithm but atleast i can understand which is used for what. I also used to copy Flow diagrams of code so i used check both of them side by side and try to link. This helped me atleast to begin with and deal with that course. As semesters incremented coding was more of a need in every course. And i started liking it.☺️☺️
Initially i didn’t had wifi at home so i was totally unaware about youtube tutorials and courses. The only typing of code was done in the lab sessions.
This was my first experience regarding coding.
What was yours? -
Anyone else have or had a computer science professor you wants you to hand in a printed copy of you code? P.S. Only the printed copy nothing else.1
-
You know you are in trouble when you copy paste error on google and end up seeing code block from where you copied code 🙄
-
So I got rushed to finish the transposition of an already existing big feature (rushed like before the end of the week)
and now I got scolded because I HAD to do copy/paste some code not to lose time (and also because I wasn't explained how the code works, and I have no time to understand it). While I was waiting for answers for, like, a whole month and a half
Me in my mind : (╯°Д°)╯︵/(.□ . \) -
Eureka! I have done it! I have written a program that will replace 80% of programmers with an AI!
The approach is to use grammar identification with language heuristics to recognize solution patterns using multilayered neural networks. The code source uses trusted pattern samples that are scored by human programmers. The code is programmed using text duplication and placement from the trusted sources.
TLDR: Uses pattern matching to copy and paste from Stack Overflow.1 -
How to update a react native project:
1. Run react-native-git-upgrade
2. Notice that your project dependencies are mucked up
3. Try to fix node modules and the build process
4. Find out the moon landing was a hoax, wait what?!
5. Use react-native-init to create a new (working) project
6. Copy code files and dependencies to new project
7. Wait for new version :) -
That moment you need a messaging bus for a part of your application and there is always 1 cheeky dev who will shouts for building it oursevles instead of using of the shelve libraries.... STFU and GTFO
Why do some developers seems to be fine if you copy paste some simple code but are losing it when it comes to using new libraries/services which are designed for exactly your problem?1 -
I write a lot of custom code for a program my company sells and there is no good way to run tests on it. I just spent a bunch of time wondering why the change I made didn't work only to find I accidentally clicked paste shortcut instead of paste when copying the file. I really need to take some time to write a program to copy all my code for me instead of relying on a manual process. I guess a new night and weekend project.
-
I don't know whether this has been asked before but is it normal for devs to copy/paste code? I feel like half of the programming I do is copy pasting code. I mean, I know what I'm doing. I'm just lazy to type it out.7
-
Test: this time, I copy a line with line break, because, when I did this yesterday, it fucked up devRant web.
Not copied:
Five brave knights write code in one night for free, because they like it
Copied:
Five brave knights write code in one night for free, because they like it
Does this fuck up the web-version? If so, @dfox needs ta parsed a capied text and add the needed line-breaks...1 -
Recalling the the time I was discussing a web dev based assignment with a classmate( And I wouldn't even go as far as to call it web dev, it was just making connect 4 using js and node).
Me: so did you get to implementing your game with firebase.
Classmate: no, but hey did you use loops for making the board?
Me: ?? There were like 50 elements ofc what did you do.
( Sigh* to think it's going to this)
Classmate: copy pasted
Yup 50 elements copy and paste. like the person I was talking to wasn't even incompetent I mean he had like a 3.5 gpa, how is there any correlation between this stupid number and how they actually code if you can't even code loops. The dude was a 2nd year student. And this wasn't even the only person I heard this from.
Apparently the TAs had to post about how to use loops in Js before we had our lab exam cause so many people copy pasted instead of loops, to think that would ever have to be the case.
The future is not bright. -
It makes me so sad to see such vast amounts of copy and pasted code at my new job :(
3 identical classes with only a few strings different 😡1 -
I have two bad habits that I try to get rid of:
- Googling instead of directely searching in the product documentation.
- Copy/pasting code instead of typing it. -
Designer, showing example: I want this item with this effect, except with this colour and not that shape but this instead, and that bit over there, oh and not that arrow, another one. The site has the code you can download then copy in, easy!
Oh, really?! -
Do senior developers and programmers with many years of experience still copy/paste code from stackoverflow?
If so how often and what is the percentage of the self written code to the total?7 -
To the friend ranting about having to copy pseudo code on paper, I feel your pain. Analog IT professors are the worst.
I raise you one with : I had a professor that had me sent in source code files, a pdf with all the source code and a paper printout of every single line of code for a html/php project. Fifty pages of code printed for reasons I cannot understand. And no, I checked later, he didn't ask for it to take notes during the exam.5 -
So we're using Jira Wiki for all the documentation related work. It's hell rich with features as they describe. But for me easiest way is to write doc on markdown and then copy paste on Wiki. Highlights code, format tables and aligns paras perfectly.2
-
!rant
Today I learned you can basically just copy and paste python code into a PHP script, add some brackets and change some functions and it will just work.
I guess this saves me having to rewrite this very dodgy pseudo-random number generator I have to make!1 -
I always print out a hard copy of whatever code I'm working on, then go through the code and annotate it with a pen until I feel that I have some insight... it's usually either that or I'll just walk away and come back later2
-
do you guys make a temp copy of every single object and/or variable you ever use? ive gone thru a few projects in this company and our code has so much of this. I cant remember now if there is even a good reason to do it like that. you can end up with a lot of copies! haha!8
-
When you copy&paste a code snippet from a forum into your IDE like VS and suddenly - for some reason - after every single line comes an empty line that you first have to manually delete so that your OCD doesn't bite off your own head.4
-
How often do you come across "similar problems" that you recall solving before so you then remember or search the most likely projects and copy the code?2
-
Had to add some functionality to another guys GUI code.
He gave me a "template" file (copy of another module), pointed at several places and said: "Make your changes here, here, and here. Do not ask why, do not even think about it. Just do it." -
Finding a stored procedure to copy code out of because I didn’t have the brainpower or willpower to write the same code again.
Ironically, finding the sProc probably took more time than actually rewriting it.....1 -
It is better to write almost all of the logic used in the code as comments/documentation.
Trust me.
It is a good thing. It increases Code readability.
Nobody is going to copy your logic and get hired in a high paying job or get promoted for that reason. People will come to know about your wit and will appreciate you instead.2 -
Update to my last rant*:
I got to know what my colleague did as he "rewrote" my code:
He just searched some GitHub-Projects and used the good old copy+paste method.
Awesome bro, "rewriting" code until nobody's understanding it is the best method to improve code.
*https://devrant.io/rants/735762/...2 -
Today a colleague copy pasted the question from stack overflow in his code, wondering for half an hour why it didn't work. It was quite amusing to be honest seeing him rant around knowing what he did
-
Ah, the ancient art of copy-paste development – where originality goes to die and bugs come out to play. It's like a cursed incantation that tempts even the best of us into the dark abyss of shortcuts.
You think you're saving time by copying that snippet from Stack Overflow, but little do you know, you've just invited a horde of gremlins into your codebase. Suddenly, your once-cohesive architecture looks like a patchwork quilt sewn by a drunkard.
And let's not forget the thrill of debugging when you realize that the copied code references variables that don't even exist in your context. "Ah, yes, I remember copying this gem at 2 AM. What could possibly go wrong?"
But wait, there's more! Copy-pasting also introduces a special kind of chaos when updates are needed. You find yourself fixing the same bug in five different places because you couldn't be bothered to encapsulate that logic in a reusable function.
So here's a heartfelt salute to all the copy-paste warriors out there, bravely navigating the treacherous waters of borrowed code. May your future coding endeavors involve more thinking, less CTRL+C, and a lot fewer late-night bug hunts!1 -
It feels like having awful group project experiences in college is a rite of passage.
I once worked with two other students that had no idea what git was, and outright refused to learn/use it when they could just "email the code." I begrudgingly worked with this, and the night before the assignment was due they both emailed me their work.
One of them had the AUDACITY to send me a PHOTO OF THEIR CODE. As if I was going to take the time to re-type everything myself. Not to mention it was all clearly copy and pasted code anyway.. what a nightmare.5 -
"We need our micro-service that we already use in two of our applications in the third. You can basically just copy all code from those"
*Spends 2 months trying to figure out (to) what (extend) the service actually does*1 -
That moment when your intern blatantly ignored your directions, copy pasted code into the wrong section, then gets annoyed that you fixed it for him when he was at lunch (needed to make a deadline, he left for food and I stayed to finish it)2
-
Should I modify the file? or Copy the file?
it is already in use for a similar case but different.
double code vs doing one thing per class
a large refactor is needed for this one.
#codestruggles2 -
Once again I see offshore "developer" copy paste entire code base to separate folder, work on it there and then copy paste it back. Use a git branch goddammit. Is there something I'm not aware, is source control banned outside EU and US?4
-
Bought great book from this Spanish company on Drupal. The book is well structured and the examples are excellent. Just some typos that they mistranslate from Spanish.
But thought it was weird that the code examples were not available online. Sent them an email to request for them.
They answered that the code is not online beacuse their students have to remake the code using the book in their courses. And ask them if I was interested in the course.
Fuck them! They are using opensource code but their examples are not open source because of some elementary-level school mentality that their students might copy the code and somehow not learn well.
They are fucking adults ffs!
Ps: Even though their answer piss me off, they still have the best book I've read on Drupal.2 -
My friend Just completed his notice period in my company, but now he's saying that I forgot to copy some code for reference like their architecture and authentication code, so, he's asking me to share the repo code of my company. The company has deleted all his data while he was leaving. So what should I do? should I share the code without including .env files or what should I do?10
-
Hello there, long time no see.
Back in the day I asked you for a book that goes deep in the C programming language, now I'm asking the same but for Nodejs, especially a book that explains the event loop down to the line of code.
There are some articles on the internet but they are all copy/paste of one another and don't even scratch the surface of what the event loop does2 -
Aaaaaaaarg GCC! Stop caching my failures. I do correct my code, stop pulling the old copy from /tmp you bloated piece of C3
-
A dev today tried to tell me that a full copy of a VM in XenServer copies all of the data but magically pulls old code. Long story short, he was wrong.
-
Sometimes I'm to lazy to properly abstract and reuse code, so I'll just copy & paste and then alter it - and then later curse myself about that. I'm working on this though...
-
I finished a coding bootcamp, but I still feel like a total beginner. I was hand held throughout the whole god damn thing! Sure, it's my fault for not studying the way I was supposed to, BUT GOD DAMN!!! I mean it's so hard not to copy code if it's right in front of you.. Oh well, a learning experience nonetheless.. Going for the Odin Project now with a different approach! Fingers crossed5
-
At university: Error 404
But as I say: you can learn from everything, from good how to do the things, from bad how to not do the things.
One example: don't copy code directly from a PowerPoint presentation, it will change the " to other symbol and make you look like a fool when the compiler throws errors and you don't figure it out why -
I just found this in the code I'm working on:
function checkDateValidity() {
function checkDateValidity() {
...
}
}
Obviously a bad copy/paste. Not even sure how it was working before; it probably wasn't.1 -
I started with Gothic II modding as a kid and copy pasted the hell out of that game.
After that I learnt to code Java in school. And was shattered because of the things I did back then.
At my first job I learnt to code RIGHT. So... learning to code is a long process.1 -
DEVIANTS!! NEED ADVICE...
I have been focusing on learning and implementing data structures and algorithms through participating in competitive programming sites...
Whenever I face an issue and struggle to find an answer (which is more often than not), I ask the forum about the fundamental principles involved in the question...
I avoid looking at the solution, as much as possible.. And, when I do look at them, I still question the author of the code about the reasoning behind a particular section of code which I don't understand...
I don't wish to copy and paste code, but sometimes, I wait for days on end, but I don't use the code until I receive an answer...
Is this the right way or are there any other way which I could implement to strengthen my algorithmic thinking??10 -
Code: error
Me: hmmmmmmmmm....what if I change this?
Code: error
Me: *copy* google *paste* enter stack overflow
Me: there we go1 -
When asked if i will code for stock options or profit shares, i might remind the prospect that in most countries, i would own the entire codebase if working for no pay. Most work for hire agreements put ownership of the system and code into the paying clients name, as i understand it. so if youre not collecting pay, you would own (possibly the only copy of) the code. If that doesnt scare the client away, maybe i should remind them id be legally allowed to sell the code to their competitors. Then do so if i see a bettrr paying client (i.e. any paying client) If anyone knows if im making legal sense id appreciate it.
-
Working with a team is great... doing something similar as another team member? Just copy his code when he's done!1
-
Is a developer a developer if they don't even know the keyboard shortcuts for copy and paste (even if not for code)?6
-
JUST FUCKING NOTHING WORKS!
ERROR HERE ERROR THERE.
Then i tried to copy the exact sample code and it ALSO DIDN'T WORK.
AND THEN FUCKING VSCODE shows errors THAT AREN'T EVEN THERE. THEY MAYBE WERE THERE 10 MINUTES AGO. IS THIS SOME FUCKING INTERNET EXPLORER SHIT. ALSO COMPILING THROUGH IT DOESN'T WORK JUST THROUGH THE COMMAND LINE. AAAAAAAAAAAAAAAAAAAAAAAAAAAAH FUCK IT8 -
Building apps in 30 mins at conferences.
First 5 mins: I'm gonna do the entire thing using just some boilerplate.
After 25 mins: I'm just gonna copy some unimportant code from the one I already made... ...And it's done!
Footnote: The people who put themselves up for it are always great! I've learnt a lot from such guys. Massive respect ✌️ -
Task: can you copy this sharepoint reactjs webpart to some other site.
Me: ok
Piece if shit webpart won't event build and my vs code is blood red from errors.
The project got gangbanged by 4 more people before being passed down and no one knows wtf is going on.
Fuck sharepoint, most shity ass piece of crap on the planet 🌏1 -
When you have no time to learn by code snippet, you'd have to copy and paste it rather than writing it line by line.
-
Spent the day refactoring old copy-pasted astronomical code with minimal commentary, cryptic variable names and missing mathematical symbols. Self documenting code my ass.1
-
Some of you can probably relate, I've been learning to code since about 13 and it all obviously began with copy pasta code claiming proudly that you would have made it, then there were those kind of dicks which either have proven that you copied the code or pointed out how bad the code was, I've hated those kind of developers.
Welp, I just turned 18 with a lot of experience gained and I really just became that kind of person over the years, no regrets :^)1 -
F this code, definitely going to rewrite it.....cba, copy n paste from the last homepage n re-jigging again :-/
-
Stupid Zkoss won't let me assign a UI component more than one parent. Instead of getting to use preexisting components I get to make copy/paste carbon copies. Shot my plans for code resusability to hell and back.
-
So a teacher supposedly promised to introduce me to "web Scripting" as he called it.
Time to learn and all he does is show me Dreamweaver and copy and paste code from anywhere you can imagine, he literally didn't know anything about code .
I thank God I realized that it was better to learn code .1 -
If your workflow counts on users copying and pasting things (like security tokens from text messages) read this:
Please for fuck sake trim the damn whitespace before you validate. I can't see the fucking space client-side, and you fucking know I didn't mean to enter <SPACE>123456 as my auth code.
Double click, copy, paste, click, curse <-- Story of my life because somebody forgot a damn .replace statement.1 -
I really am in a love/hate relationship with programming...
I had some free time so I decided to do the Google foo bar challenge. For testing purpose, I code in sublime text and then copy the code in the browser.
Yesterday, I spent most of the afternoon doing one challenge. I figured out how to approach the problem, which was kinda easy, and coded it in about 10 minutes. For some reason, what worked perfectly in sublime text worked without throwing any errors in the browser, but 4 of the 5 test done by Google failed.
Today, after spending a good hour tweaking some stuff in the hope that it would work, the browser editor started throwing indentation errors...
Deleted the code in the browser, copy-pasted the exact same code from sublime : All test passed!
That's a couple of hours I'm never getting back. -
What is it with colleagues here not even thinking of making a comment in code that directly interacts with hardware.
They will write to the same register 4 times with different values, which is intentional I believe, but not bother to put one comment in there vagely explaining that it is in fact not a copy paste error...2 -
That moment when you quit a job and your colleagues give you a "Clean code" copy. Doing it at joining would be way better.
-
When Groovy have a documentation page about Java interoperability, but you don't give a shit and with a simply copy-paste from Java the code works1
-
Stupid Adobe Experience Manager only works in IE11.
I develop on MacBook pro.
I setup remote desktop on a windows computer at office to remote in so I can work on my MacBook remotely and deploy (manually via copy and paste into a text area called “HTML code”).
Everything is setup for the weekend.
Boom, it restarted itself and went to sleep after a Windows update...1 -
My friend brought up me copy writing my file transferring code and my response was “uh.. I was gonna just throw it on Github”.
So rip that -
when i found out on how to import modules instantly being able to deploy bugfixes and changes to multiple macro-dependent documents without copy-pasting the code to every single file manually.
-
When your code works then you have this inclination to add an extra feature and after adding it ,it works after catching a few bugs but then .... you feel so smug with yourself you add another feature and that stuff ups all YOUR CODE !!!and if you haven't saved a copy of the program before editing y0ur program so the eaaiset option you have I to use CTRL -Z and if you have been altering your code a lot the undo action only goes back a few alterations and hasn't undone your extra feature then you have to manually find the feature and clean it from your code taking longer then creating the program as a whole
=======
The undo action needs to save more alterations of the code 😑1 -
During a training reading a Readme file:
Copy paste the following code in the editor.
NOTE: REPLACE ALL SPACES WITH TABS OR IT WILL BREAK -
We were learning how to code circles to light up in sequence. As it's similar to how code works for Arduino. Cool. Go back to c# in Unity and teach what the code does not just copy.
-
I've been messing around some more in Brainfuck and I found a really useful algorithm to copy Blocks. The code I used it with is pretty inefficient but it helps to show what it does
Link: http://pastebin.com/U32WqEMZ -
Seems like latex does not like recursion. Defined a command as itseld by accident and got lots of strange error. Will there be a time where i can accept that copy-pasting code only generates problem?
-
Code examples with dozen of lines in the project documentation (docx) are screenshots... lazy to format or to prevent simple copy and paste? That's the question.
-
Yes, I'm that sucker who writes by hand the copy paste code fields even if he already knows how to do that. I'm not proud of it but, what can I say? I'm a wet guy...
-
I've seen an old Causeway Extender unpacker floating around, at some point being on EXETOOLS before they went forum-only, by the name "CauseWay DOS Extender Unpacker v0.17" or "unpcwc.zip". Is there a copy of this still around or will I have to make my own based on the released Causeway source code?
-
I'd like to follow along with some react tutorials, but pretty much all I'm finding are ones that either just have blocks of code (with little to no explanation) to copy/paste or just a link to github.
Do any of you know of any good, well explained tutorials I can follow along to that actually explain what they're doing (and actually end with a sample project, so not just theory).2 -
When I copy some lines of my source code into other functions but getting desperated when compiler says something like "...'Double' but 'Array' was expected" because I forgot to change the value for the functions.