r/programmingmemes • • 23d ago

True

Post image
1.0k Upvotes

86 comments sorted by

195

u/jbar3640 23d ago

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

28

u/nickthewildetype 22d ago

Just

turn

it

into

a

fucking

function

I

am

not

going

to

patch

your

copy

pasta

8

u/Melodic_monke 22d ago

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

5

u/Abstraction001 22d ago

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

-41

u/Dry-Ad-8948 22d ago edited 22d 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…

113

u/EmilyCatNips 23d ago

using System;

namespae Meow {

publi stati lass Program{

publi stati oid Main....

}

}

7

u/Kanjii_weon 22d ago

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

5

u/transbian-catgirl 22d ago

maow :3

4

u/Kanjii_weon 20d ago

while True: print(‘meow’)

2

u/transbian-catgirl 19d ago

meow meow meow meow meow meow

3

u/possible_name 19d ago

mrrrrrrp :3

2

u/fillkas 22d ago

namespace :3

45

u/WayOk5717 23d ago

Jokes on you, my mouse has these as shortcuts

14

u/emccrckn 23d ago

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

16

u/Usual_Office_1740 23d ago edited 23d 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 22d 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_ 23d ago

What's /uj ?

4

u/Usual_Office_1740 23d ago

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

1

u/dbear496 23d ago

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

14

u/TheNativeOfficial 22d ago

this is not true, OP. Its bullshit.

4

u/Responsible-Cold-627 22d ago

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

10

u/selfie-poster 23d ago

Missed the shift

10

u/SpiritNo6626 23d ago

yy

p

6

u/shuozhe 23d ago

And how to get out?

9

u/SpiritNo6626 23d ago

Why would you want to? No, stay there.

10

u/asmanel 23d 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 22d 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 23d ago

On Linux just highlight to copy and middleclick to paste

3

u/Panduin 23d ago

Use purely TAB for copilot autocomplete

3

u/OkChildhood1706 23d ago

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

2

u/1ncogn1too 23d ago

Shift+insert 🤦‍♂️

2

u/random_thought1612 23d ago

Use the mouse and right click

1

u/PsychologicalTry3972 22d ago

What's about CLI systems?

2

u/eigenraum 22d ago

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

2

u/potato-dranik 22d ago

What if I want to press Ctrl+Z? 

2

u/Drtrome 21d ago

How would I define a new class without a C?

2

u/Different-Entry7888 17d ago

How am I writing my CONSTs and VOIDs?

2

u/rover_G 23d ago

Good thing claude can read anything

1

u/MisterSincere 23d ago

y and p

1

u/actionerror 22d ago

This guy vi’s

1

u/elkvis 23d ago

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

1

u/NullSmoke 23d ago edited 22d 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 23d ago

So ctrl+ s ?

1

u/PhilSchmil 23d ago

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

1

u/cnbatch 22d ago

CTRL + C → Right CTRL + Insert

CTRL + V → Shift + Insert

1

u/mrheseeks 22d ago

Ctrl + v; highlight then 'y'ank

Go to, 'p'aste

1

u/KattyTheEnby 22d 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 22d ago

those are my favorite keys )=

1

u/Entire_Cut_6553 22d ago

changes key maping noobs

1

u/_ahrs 22d ago

Shift+Insert is fine though

1

u/ThrwawySG 22d ago

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

1

u/My_leg_still_hurt92 22d ago

That's why Microsoft invented the copilot button.

1

u/HidenInTheDark1 22d ago

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

1

u/AziCrawford 22d ago

I just use y and p

1

u/RelationshipLong3562 22d ago

yanked 1 selection to register"

1

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

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

    return 1;
}

1

u/DKSAMURAI 22d ago

Implement.

1

u/CMDR_Nya 22d ago

To use Shif+Insert instead

1

u/ExtraTNT 22d ago

Can’t select, but can still copy lines…

1

u/[deleted] 21d 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 21d ago

Hit the keys from the side????

1

u/phil7301 20d ago

The only thing I will train is my pain tolerance

1

u/ooo-InstaGamer 19d ago

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

1

u/D_Daka 18d ago

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

1

u/MaffinLP 18d ago

I use ctrl shift c more than ctrl c

1

u/RedAndBlack1832 23d 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 23d ago

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

1

u/RedAndBlack1832 23d 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