this post was submitted on 03 Feb 2024
842 points (97.4% liked)

Programmer Humor

25373 readers
1753 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] crony@lemmy.cronyakatsuki.xyz 79 points 2 years ago* (last edited 2 years ago) (10 children)

:w

:w

:w

:w

:w

i

esc

:w

:w

:w

:w

Average day in (neo)vim

[–] fylkenny@feddit.de 20 points 2 years ago (5 children)
[–] victorz@lemmy.world 16 points 2 years ago

So choose wisely. All other editor instances must remain open forever.

[–] calzone_gigante@lemmy.eco.br 9 points 2 years ago (1 children)

I use quake style terminals, and often start writing a file and completely forget about it and turn off the computer, and only remember what i left behind when i find the random recovery files around, so :w a lot is quite useful for me.

[–] kender242@lemmy.world 5 points 2 years ago (1 children)

Quake? The FPS? I'm confused, though I knew a little about Linux

[–] calzone_gigante@lemmy.eco.br 9 points 2 years ago (1 children)

Yes, on classic fps you could spaw a console that will drop down from the top os the screen, some terminal emulators allow you to do that.

I like it because then i have the terminal always open that i just draw from the top of the screen with a keypress

On KDE i do that with Yakuake, and on gnome with tilix

load more comments (1 replies)
load more comments (3 replies)
[–] Commiunism@lemmy.wtf 4 points 2 years ago

:w before ZZ just to make sure

load more comments (8 replies)
[–] CookieOfFortune@lemmy.world 40 points 2 years ago (3 children)

Some of us have PTSD from losing work back in the day. Now it’s just habit.

load more comments (3 replies)
[–] ornery_chemist@mander.xyz 31 points 2 years ago* (last edited 2 years ago) (2 children)
load more comments (2 replies)
[–] QuazarOmega@lemy.lol 25 points 2 years ago (4 children)

We can optimize this further:

unsatisfied = true
while(unsatisfied) {
    key.dispatch(
        Keyboard::Ctrl,
        Keyboard::s
    )
}

..No, there is no instance where unsatisfied changes state

load more comments (4 replies)
[–] dependencyinjection@discuss.tchncs.de 25 points 2 years ago (1 children)

When you do this using Word online it be like “chill dude we autosave here, we got you” and I’m like “brother I do not trust you”.

[–] Anticorp@lemmy.world 7 points 2 years ago

You are wise beyond your years.

[–] DirkMcCallahan@lemmy.world 16 points 2 years ago (1 children)

It's because the first time doesn't always work. I swear, sometimes it doesn't!

[–] Vlyn@lemmy.zip 10 points 2 years ago (1 children)

Ctrl + C literally doesn't work at times, it drives me crazy. It might be due to some shitty applications and websites overriding it or adding complexity (Like copying not only the text but additional information).

I'm often 100% sure I copied the text, change the window and an old clipboard entry gets pasted.

[–] blanketswithsmallpox@lemmy.world 8 points 2 years ago (1 children)

God I hate this so much. It's especially frustrating on mobile where it takes like thirty seconds to try to get the right part of the text copied and use the fucking magnified blue dots... Ugh.

load more comments (1 replies)
[–] MrScottyTay@sh.itjust.works 13 points 2 years ago (4 children)

CTRL + Shift + S is the real GOAT

load more comments (4 replies)
[–] dipshit@lemmy.world 11 points 2 years ago (2 children)
[–] sik0fewl@kbin.social 30 points 2 years ago (2 children)
[–] dipshit@lemmy.world 7 points 2 years ago

Most accurate

load more comments (1 replies)
[–] wewbull@feddit.uk 9 points 2 years ago

C-x C-s wtf!

[–] 0x0@lemmy.dbzer0.com 10 points 2 years ago

Ctrl+s means "stop the presses" to VT100 terminal emulators and you have to press ctrl+q to resume. Key combinations from a different era.

[–] summerof69@lemm.ee 10 points 2 years ago (1 children)

I've never had to think about that with Intellij IDEA. It just works!

load more comments (1 replies)
[–] victorz@lemmy.world 10 points 2 years ago

I really should turn on auto save when vscode loses focus.

[–] Holzkohlen@feddit.de 10 points 2 years ago (2 children)

I just can't stand Kate showing me a little orange bar meaning I have not saved the changes yet. The bar must be green! I am a slave to the green bar. The white dot in vscode (I use an open source build) is a bit more tolerable, but whenever I notice it I HAVE to save the file.

load more comments (2 replies)
[–] pythonoob@programming.dev 9 points 2 years ago

Dude I save almost every time I type anything. It's muscle memory at this point.

[–] palarith@aussie.zone 9 points 2 years ago* (last edited 2 years ago) (2 children)
[–] victorz@lemmy.world 7 points 2 years ago

lol, me when I transfer shit to my USB thumb drive.

load more comments (1 replies)
[–] ILikeBoobies@lemmy.ca 8 points 2 years ago

Cost/benefit

Manually saving will save a lot more time than it not saving

[–] Johanno@feddit.de 8 points 2 years ago (1 children)

This is me in eclipse.

Because I used to do the single save and it failed

[–] normalexit@lemmy.world 6 points 2 years ago (1 children)

Oh, eclipse. I'm still happy I don't have to save in intellij .

load more comments (1 replies)
[–] JoYo@lemmy.ml 8 points 2 years ago* (last edited 2 years ago) (1 children)

MFRs are saving each keystroke they have access to.

load more comments (1 replies)
[–] Underwaterbob@lemm.ee 7 points 2 years ago

I trust auto save in... Souls games.

[–] AnUnusualRelic@lemmy.world 7 points 2 years ago

sync ; sync ; sync ; shutdown -h now

[–] UNWILLING_PARTICIPANT@sh.itjust.works 6 points 2 years ago* (last edited 2 years ago)

Meanwhile I, a gentleman

nmap <CR> :w<CR>

Binding the Enter key to save the current buffer. 🧐

[–] Korne127@lemmy.world 6 points 2 years ago

Using JetBrains product, I never explicitly save while programming 😅

[–] hemko@lemmy.dbzer0.com 6 points 2 years ago

Closing tabs and one of them asks if you want to save changes

[–] Eonandahalf@lemmy.world 5 points 2 years ago (1 children)

But then, if you’re forced to develop on microsoft 🤬, it’s late, you’re tired, you’re hand slides just a little to the right (win + d), aaaaand everything is gone, and you’re sitting there looking at you’re background wondering what the hell just happened 🙃.

[–] whostosay@lemmy.world 6 points 2 years ago (1 children)

Dude, win + d fucks, and it fucks hard. Just press it again if you can't handle

load more comments (1 replies)
[–] AeonFelis@lemmy.world 5 points 2 years ago
:for _ in range(32) | w | endfor
load more comments
view more: next ›