this post was submitted on 16 Jan 2024
125 points (77.1% liked)

Programmer Humor

33501 readers
234 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

If you have "Help" instead of "Ins", replace it with Overgod-tier. Keep pressing it, it will come.

OC, feel free to share.

EDIT; Home is now G-od tier. I didn't know it would go to the beginning of a line, I always used macros "lol".

top 50 comments
sorted by: hot top controversial new old
[–] PM_ME_VINTAGE_30S@lemmy.sdf.org 101 points 1 year ago (6 children)

Home is God-tier, just as useful as End when editing stuff.

[–] Fubarberry@sopuli.xyz 59 points 1 year ago (3 children)

Yeah, weird to see someone who appreciates the end key but not the home key.

load more comments (3 replies)
[–] hackris@lemmy.ml 8 points 1 year ago (4 children)

Agreed, but I am more of a "Shift + I" kind of guy

[–] PM_ME_VINTAGE_30S@lemmy.sdf.org 9 points 1 year ago (2 children)

Wait doesn't Shift + I just type "I"?

[–] tias@discuss.tchncs.de 12 points 1 year ago (1 children)

Only if you are in insert mode. If you are in normal mode, Shift-I moves to the beginning of the line and then enters insert mode.

[–] IWantToFuckSpez@kbin.social 7 points 1 year ago (3 children)

That’s some arcane gobbledygook. I think you mean M-m

load more comments (3 replies)
[–] sorrybookbroke@sh.itjust.works 7 points 1 year ago (1 children)

To kill the joke, they're talking about the popular and mode-based editor VIM where in normal mode each key on the keyboard does an action

load more comments (1 replies)
load more comments (3 replies)
load more comments (4 replies)
[–] dandroid@dandroid.app 95 points 1 year ago (8 children)

You don't use Home? Home and End are my two most used keys on this list. IDEs move your cursor to the beginning of the line but after the indents. It's God -tier.

[–] DrM@feddit.de 17 points 1 year ago

PgUp and PgDn are also extremely useful when scrolling through logs

[–] pastermil@sh.itjust.works 17 points 1 year ago (1 children)

I second this! You're not really a programmer until you know how to use home button.

I don't usually gatekeep, except to OP.

[–] Jumuta@sh.itjust.works 10 points 1 year ago

but modal editors :/

[–] funkless_eck@sh.itjust.works 11 points 1 year ago

Home / End to navigate

Shift home/end to select text

add CTRL to navigate the whole doc / page

add shift again to select whole page

I use them constantly, but I'm flipping between excel (/sheets), web, CLI, GUI most days

load more comments (5 replies)
[–] edinbruh@feddit.it 52 points 1 year ago (4 children)

Home is pretty useful actually, just like end. Ins can go fuck itself

[–] akariii@lemmy.blahaj.zone 6 points 1 year ago

ins for vim. quickly changing between replace and insert mode

load more comments (3 replies)
[–] AVincentInSpace@pawb.social 51 points 1 year ago (10 children)

You never use the home button? Do you also not use the terminal?

[–] local_taxi_fix@lemmy.world 42 points 1 year ago (1 children)

Yeah, how is "end" in god tier and "home" in replace tier? They're 2 sides of the same coin

[–] deezbutts@lemm.ee 7 points 1 year ago

Never go back

load more comments (9 replies)
[–] Dudwithacake@kbin.social 38 points 1 year ago (1 children)

For those learning how good Home is, wait until you try CTRL + Home. Start of the file.

Also see: CTRL + End

[–] jol@discuss.tchncs.de 13 points 1 year ago (12 children)

Exactly. I feel that people shaming all these extra buttons must have been raised in the era of smartphones. They are all so useful. Well, except Insert. I still don't get the point.

load more comments (12 replies)
[–] crispy_kilt@feddit.de 25 points 1 year ago (1 children)

They are all useful, except for maybe Pause. Ctrl+Insert and Shift+Insert ist like Ctrl-C Ctrl-V, but it works in terminals too. Home goes to the beginning of the line. Shift+Home marks the line from current position until the beginning.

[–] mogoh@lemmy.ml 10 points 1 year ago (2 children)

They are all useful, except for maybe Pause.

And Scroll Lock?

[–] dan@upvote.au 17 points 1 year ago* (last edited 1 year ago) (2 children)

Scroll lock is useful for Excel. It makes the arrow keys scroll the spreadsheet without changing the currently selected cell. This was actually the original use case for the scroll lock key.

[–] Sylvartas@lemmy.world 6 points 1 year ago (2 children)

Wasn't it also used to stop terminals (I'm talking, old-ass, mainframe terminals here) auto scrolling even before that ?

load more comments (2 replies)
load more comments (1 replies)
[–] ggppjj@lemmy.world 6 points 1 year ago

It's useful for UltraVNC to pass through key combos like alt-tab without triggering them on the local PC.

[–] MystikIncarnate@lemmy.ca 24 points 1 year ago (15 children)

I use all of these keys except scroll lock. Mainly because there aren't any software vendors that support the function anymore, and nobody has had the innovation to use it for anything new.

I use insert regularly, delete all the time. Home and end, pretty much daily.... Print screen sometimes (though I usually use a screen snippet tool instead), and pause is used in some keyboard shortcuts in Windows that are very helpful.

Idk why we're picking on insert and pause when F12 is right there. Seriously, does anyone use any F keys beyond F5? If you do, is your scope then limited to F1/F2/F5? Maybe add alt+F4?

All the F keys do stuff. But in my experience, 90+ % of the time nobody knows what those things are. One of my personal favorites is F2 which is generally used as a shortcut to "rename". It's very helpful. Honorable mention to F5 for all the reasons you would expect.

Meanwhile, there's people like OP throwing shade at our good friend "home".... What are you saying OP? Are you to good for your home?

[–] mrunicornman@lemmy.world 7 points 1 year ago (3 children)

F9-F12 are useful when you're debugging code in Visual Studio.

I sometimes use F6 to jump to my browser's address bar.

Can't imagine any uses for F7 or F8 though. And all the times I've opened a help screen with F1 have been on accident.

My main gripe with function keys on laptops is they're tiny and easy to mix up, especially since they have large brightness, volume, etc. icons on them while the function key number is a tiny label that's barely visible.

[–] Krait@discuss.tchncs.de 6 points 1 year ago (8 children)

FYI, you can also use CTRL+L instead of F6 in Most Browsers, easier to reach than F6

load more comments (8 replies)
load more comments (2 replies)
load more comments (14 replies)
[–] beneeney@lemm.ee 20 points 1 year ago (2 children)

Space Engineers players are fuming

load more comments (2 replies)

I use pgup/pgdn every day. Especially with terminal multiplexers, as I am unaware of how to view the scrollback buffer of long outputs faster than a quick couple of pgup's.

[–] BigDanishGuy@sh.itjust.works 18 points 1 year ago (8 children)

You can take my ins from my cold dead hands!

[–] KrapKake@lemmy.world 6 points 1 year ago (1 children)

I remember at one point when I was younger and newer to computers I was typing a document for school and being driven nuts by the damn insert key. Like I had zero clue as to why everything I was typing was just being overwritten every time I needed to go back and change something. I still think the insert key is absolutey evil!

load more comments (1 replies)
load more comments (7 replies)
[–] tsonfeir@lemm.ee 12 points 1 year ago (4 children)

On a serious note, the PC keyboard seriously needs a revamp. Scroll Lock? What does that even do nowadays?

load more comments (4 replies)
[–] gregorum@lemm.ee 12 points 1 year ago

what, no SysRq?

boo!

[–] ninjan@lemmy.mildgrim.com 11 points 1 year ago (6 children)

Smells like windows if End is God Tier but Home isn't. On the command line being without either would kill my speed something fierce

load more comments (6 replies)
[–] Maggoty@lemmy.world 11 points 1 year ago (2 children)

Insert is extremely useful in any editing situation. Right after Find and Replace.

load more comments (2 replies)
[–] lole@iusearchlinux.fyi 10 points 1 year ago

If you don't need it just use it as keybind for something else.

I love to bind push to talk on my beloved ScrLk as it is not interfering with any other shortcut!

[–] DudeDudenson@lemmings.world 10 points 1 year ago (3 children)

My work laptop has pg up and pg down as a secondary on the up and down arrows. It's such a threat to be able to move up and down a page with just pressing fn and the arrow keys

[–] PoopMonster@lemmy.world 8 points 1 year ago (1 children)

This comment just gave me ptsd due to a shitty keyboard I had growing up, they decided to put the sleep button (is that even still a thing? 👴) right next to the delete key I hit that thing on accident so many times :(

load more comments (1 replies)
load more comments (2 replies)
[–] halfway_neko@lemmy.dbzer0.com 9 points 1 year ago

I never used to use Home and End until I put them on a layer right next to my home row. Now I can't live without them. Position really makes a difference!

[–] lurch@sh.itjust.works 8 points 1 year ago (1 children)

on debian based system PrntScr actually prints stuff you're looking at in a terminal, if a printer is configured. learned that the hard way, accidentally printing hundreds of pages of html source

[–] ReaderTunesOctopus@lemmy.world 6 points 1 year ago (2 children)

Well, Print screen is literally written on it, so you got what you wanted

load more comments (2 replies)
[–] xmunk@sh.itjust.works 7 points 1 year ago

Ins is so much more deserving of an indicator light than scroll lock - I almost never want Ins engaged in it's normal meaning... I'd rather just delete word and retype the whole thing.

[–] saigot@lemmy.ca 7 points 1 year ago

I'll take home over pgup/down any day.

Also Menu key is pretty obscure, I consider it a yellow, since it's useful when you don't have a mouse, but there are other shortcuts that can do it (shift+f10)

Pause is useless but only because escape steals all it's usecases in apps.The only tool I know that uses it prominently is Windbg

[–] SpaceCadet@sopuli.xyz 6 points 1 year ago (10 children)

I use all of these except ScrollLock.

What about the CapsLock key? Windows menu key?

[–] OneCardboardBox@lemmy.sdf.org 12 points 1 year ago (3 children)

Caps lock is great for rebinding to Ctrl

load more comments (3 replies)
load more comments (9 replies)
load more comments
view more: next ›