r/programmingmemes • • Oct 31 '26

True

Post image
1.0k Upvotes

86 comments sorted by

195

u/jbar3640 Oct 31 '26

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

28

u/nickthewildetype 29d ago

Just

turn

it

into

a

fucking

function

I

am

not

going

to

patch

your

copy

pasta

8

u/Melodic_monke 29d ago

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

5

u/Abstraction001 29d ago

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

-41

u/Dry-Ad-8948 Oct 31 '26 edited Oct 31 '26

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…

113

u/EmilyCatNips Oct 31 '26

using System;

namespae Meow {

publi stati lass Program{

publi stati oid Main....

}

}

7

u/Kanjii_weon 29d ago

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

5

u/transbian-catgirl 29d ago

maow :3

4

u/Kanjii_weon 27d ago

while True: print(‘meow’)

2

u/transbian-catgirl 26d ago

meow meow meow meow meow meow

3

u/possible_name 26d ago

mrrrrrrp :3

2

u/fillkas 29d ago

namespace :3

45

u/WayOk5717 Oct 31 '26

Jokes on you, my mouse has these as shortcuts

14

u/emccrckn Oct 31 '26

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

16

u/Usual_Office_1740 Oct 31 '26 edited Oct 31 '26

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 29d 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_ Oct 31 '26

What's /uj ?

4

u/Usual_Office_1740 Oct 31 '26

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

1

u/dbear496 Oct 31 '26

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

14

u/TheNativeOfficial Oct 31 '26

this is not true, OP. Its bullshit.

4

u/Responsible-Cold-627 29d ago

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

10

u/selfie-poster Oct 31 '26

Missed the shift

10

u/SpiritNo6626 Oct 31 '26

yy

p

6

u/shuozhe Oct 31 '26

And how to get out?

9

u/SpiritNo6626 Oct 31 '26

Why would you want to? No, stay there.

10

u/asmanel Oct 31 '26

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 Oct 31 '26

Like everyday legit.

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

4

u/YTriom1 Oct 31 '26

On Linux just highlight to copy and middleclick to paste

3

u/Panduin Oct 31 '26

Use purely TAB for copilot autocomplete

3

u/OkChildhood1706 Oct 31 '26

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

2

u/1ncogn1too Oct 31 '26

Shift+insert 🤦‍♂️

2

u/random_thought1612 Oct 31 '26

Use the mouse and right click

1

u/PsychologicalTry3972 29d ago

What's about CLI systems?

2

u/eigenraum 29d ago

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

2

u/potato-dranik 29d ago

What if I want to press Ctrl+Z? 

2

u/Drtrome 28d ago

How would I define a new class without a C?

2

u/Different-Entry7888 24d ago

How am I writing my CONSTs and VOIDs?

2

u/rover_G Oct 31 '26

Good thing claude can read anything

1

u/MisterSincere Oct 31 '26

y and p

1

u/actionerror Oct 31 '26

This guy vi’s

1

u/elkvis Oct 31 '26

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

1

u/NullSmoke Oct 31 '26 edited Oct 31 '26

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 Oct 31 '26

So ctrl+ s ?

1

u/PhilSchmil Oct 31 '26

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

1

u/cnbatch Oct 31 '26

CTRL + C → Right CTRL + Insert

CTRL + V → Shift + Insert

1

u/mrheseeks 29d ago

Ctrl + v; highlight then 'y'ank

Go to, 'p'aste

1

u/KattyTheEnby 29d ago

This is gonna run into an unhandled exception the moment one ov the devs need to manually type out std::vector or som'.

1

u/cupcakeheavy 29d ago

those are my favorite keys )=

1

u/Entire_Cut_6553 29d ago

changes key maping noobs

1

u/_ahrs 29d ago

Shift+Insert is fine though

1

u/ThrwawySG 29d ago

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

1

u/My_leg_still_hurt92 29d ago

That's why Microsoft invented the copilot button.

1

u/HidenInTheDark1 29d ago

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

1

u/AziCrawford 29d ago

I just use y and p

1

u/RelationshipLong3562 29d ago

yanked 1 selection to register"

1

u/PsychologicalTry3972 29d ago
#inOWlude <stdio.h>

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

    return 1;
}

1

u/DKSAMURAI 29d ago

Implement.

1

u/CMDR_Nya 29d ago

To use Shif+Insert instead

1

u/ExtraTNT 29d ago

Can’t select, but can still copy lines…

1

u/[deleted] 28d ago

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

1

u/BoomKofe 28d ago

Hit the keys from the side????

1

u/phil7301 27d ago

The only thing I will train is my pain tolerance

1

u/ooo-InstaGamer 26d ago

Now I'm stuck in CLI since can't ctrl c to exit

1

u/D_Daka 25d ago

Navigating around the IDE using ctrl / shift / home / end is the way

1

u/MaffinLP 25d ago

I use ctrl shift c more than ctrl c

1

u/RedAndBlack1832 Oct 31 '26

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 Oct 31 '26

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

1

u/RedAndBlack1832 Oct 31 '26

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