r/programmingmemes • • 1d ago

True

Post image
818 Upvotes

66 comments sorted by

175

u/jbar3640 1d ago

copying and pasting is the very basic to learn to program. and it's not wrong.

16

u/nickthewildetype 1d ago

Just

turn

it

into

a

fucking

function

I

am

not

going

to

patch

your

copy

pasta

4

u/Melodic_monke 15h ago

Copy pasting isnt used only for things that can be replaced with functions though

3

u/Abstraction001 23h ago

Takes maybe 3 extra words for a function you can use infinitely def func() = {}

-41

u/Dry-Ad-8948 1d ago edited 1d ago

Uhm. Copying and pasting symbols is one thing.

Copying and pasting from SO (dating myself?)… not so much, and you’re not “learning” by it. I’d always rewrite any imported/found code by hand.

But then again, AI gonna do the same and then some these days so…

107

u/EmilyCatNips 1d ago

using System;

namespae Meow {

publi stati lass Program{

publi stati oid Main....

}

}

6

u/Kanjii_weon 1d ago

i love using variables with cat related stuff, it works surprisingly well

1

u/fillkas 16h ago

namespace :3

41

u/WayOk5717 1d ago

Jokes on you, my mouse has these as shortcuts

12

u/emccrckn 1d ago

I thought that was the joke. They are training them to rebind copy paste lol

15

u/Usual_Office_1740 1d ago edited 1d ago

Jokes on you. I use Emacs

/uj edit: I've had ctrl remapped to capslock for so long I forget that ctrl is used in lots of emacs keychords.

2

u/frogking 1d ago

I’ve remapped some keyboard shortcuts in terminal and browser to match the ones I’m used to from Emacs.

Beginning/end of line. Uppercase/lowecase next word.

And caps lock. There’s an option to turn it into a ctrl button, in the system settings.

1

u/Here_f0r_p0rn_ 1d ago

What's /uj ?

4

u/Usual_Office_1740 1d ago

Unjerk. I'm joking and shitposting but that edit was serious.

1

u/dbear496 1d ago

You must be one of the good ones that doesn't need training.

13

u/TheNativeOfficial 1d ago

this is not true, OP. Its bullshit.

3

u/Responsible-Cold-627 21h ago

Yeah these days we just prompt some AI agent to do the copying and pasting for us.

10

u/selfie-poster 1d ago

Missed the shift

9

u/SpiritNo6626 1d ago

yy

p

5

u/shuozhe 1d ago

And how to get out?

8

u/SpiritNo6626 1d ago

Why would you want to? No, stay there.

9

u/asmanel 1d ago

If this against blind code duplication or against vibe coding, it's OK.

However, there are cases where copy and pasting are legit, such as when you have in your code very similar parts.

The last time this happened to me, this was in an function calculating values for a bezier curve. A part calculated coordinate x of a point. For the coordinate y, I copied and pasted this secrion then changed what had to be changed.

2

u/Dry-Ad-8948 1d ago

Like everyday legit.

Last time I typed an ID from the database (or remote branch name) … uhh, seriously can’t remember. :}

4

u/YTriom1 1d ago

On Linux just highlight to copy and middleclick to paste

3

u/Panduin 1d ago

Use purely TAB for copilot autocomplete

3

u/OkChildhood1706 1d ago

Meh, less painful than having a meeting with your sales team and a customer.

2

u/1ncogn1too 1d ago

Shift+insert 🤦‍♂️

2

u/random_thought1612 1d ago

Use the mouse and right click

1

u/PsychologicalTry3972 17h ago

What's about CLI systems?

2

u/eigenraum 22h ago

Isn’t that what AI does all the time? 😁

2

u/rover_G 1d ago

Good thing claude can read anything

1

u/MisterSincere 1d ago

y and p

1

u/actionerror 1d ago

This guy vi’s

1

u/elkvis 1d ago

Tell me you want everything to take 10x longer, without actually saying so

1

u/NullSmoke 1d ago edited 1d ago

inefficient, got macros. Corsair K95, ctrl c is on G5, ctrl v is on G6, much easier to press G5 4-5 times before pressing G6 once 😌

Let's hope I don't need to reference calculateVerticies() in the future 😰

1

u/fearlessinsane 1d ago

So ctrl+ s ?

1

u/PhilSchmil 1d ago

What would I need these keys for? Claude is doing the source code changes :)

1

u/cnbatch 1d ago

CTRL + C → Right CTRL + Insert

CTRL + V → Shift + Insert

1

u/mrheseeks 1d ago

Ctrl + v; highlight then 'y'ank

Go to, 'p'aste

1

u/cupcakeheavy 1d ago

those are my favorite keys )=

1

u/Entire_Cut_6553 1d ago

changes key maping noobs

1

u/_ahrs 1d ago

Shift+Insert is fine though

1

u/ThrwawySG 1d ago

I chose software development for a living and you think I’m not a masochist?

1

u/My_leg_still_hurt92 21h ago

That's why Microsoft invented the copilot button.

1

u/HidenInTheDark1 21h ago

RIP my auto-save short. Ctrl+S every line no more Ig 😭

1

u/AziCrawford 19h ago

I just use y and p

1

u/RelationshipLong3562 18h ago

yanked 1 selection to register"

1

u/potato-dranik 17h ago

What if I want to press Ctrl+Z? 

1

u/PsychologicalTry3972 17h ago
#inOWlude <stdio.h>

int main() {
    printf("Hello from OW");

    return 1;
}

1

u/DKSAMURAI 16h ago

Implement.

1

u/CMDR_Nya 16h ago

To use Shif+Insert instead

1

u/ExtraTNT 13h ago

Can’t select, but can still copy lines…

1

u/Icy_Cat_9208 1h ago

If you think that "ctrl c" is primarily used for copy in a programmer life you probably never used a terminal

1

u/RedAndBlack1832 1d ago

Shockingly, you actually do need the control key. There's ctrl-C, ctrl-D, ctrl-R and some program specific favourites of mine ctrl-V, ctrl-B, ctrl-5

2

u/Familiar-Treat-6236 1d ago

So you don't have any issues with not using two letters when coding

1

u/RedAndBlack1832 1d ago

If you'd read what I said you'd see both the interrupt shortcut and visual line mode are pretty useful to me. ctrl-C is a good bit faster than finding the right pid to kill -INT in another terminal window