this post was submitted on 29 Sep 2023
839 points (96.7% liked)

Programmer Humor

19154 readers
2012 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 1 year ago
MODERATORS
 
top 38 comments
sorted by: hot top controversial new old
[–] [email protected] 74 points 11 months ago

No way, you met json irl?

[–] [email protected] 42 points 11 months ago

I typically don't know what I'm doing, so my favorite binding is :q!

[–] [email protected] 40 points 11 months ago (2 children)

I guess the obvious one is "holding spacebar for control key"

[–] [email protected] 30 points 11 months ago (1 children)

Look, my setup works for me. Can you please just add an option to reenable spacebar heating?

[–] [email protected] 18 points 11 months ago (1 children)

Reference: xkcd #1172 - Workflowxkcd: Workflow

Hover text: There are probably children out there holding down spacebar to stay warm in the winter! YOUR UPDATE MURDERS CHILDREN.

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

This is me. I will find a way to make it work, it will be janky, and any update is liable to throw the entire thing into disarray.

[–] [email protected] 4 points 11 months ago

That's horrifying

[–] [email protected] 13 points 11 months ago (1 children)

Not sure if this is obscure or not: I have F12 bound to cycle through the low- to high-contrast versions of my color scheme so I can keep working when the sun hits my shitty laptop screen.

[–] [email protected] 3 points 11 months ago

this is definitely obscure

[–] [email protected] 13 points 11 months ago (4 children)
[–] [email protected] 21 points 11 months ago

The original sucks ngl

[–] [email protected] 10 points 11 months ago

Wow, I think we're still ahead.

[–] [email protected] 5 points 11 months ago

how is a vim joke better then the original lmao

[–] [email protected] 1 points 11 months ago

The Jenkins is epic

[–] [email protected] 13 points 11 months ago (1 children)

I've mapped jk to escape because it's rare and it's separate fingers in home row, so it's faster than e.g. jj.

[–] [email protected] 4 points 11 months ago (1 children)

I mapped kj instead. Can't remember why, but I like it that way.

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago) (1 children)

Unfortunately both of those are used in common English or computer words. The only letter pairs not used are: bq, bx, cf, cj, dx, fq, fx, fz, hx, jb, jc, jf, jg, jq, jv, jx, jz, kq, kz, mx, px, qc, qd, qg, qh, qj, qk, ql, qm, qn, qp, qq, qr, qt, qv, qx, qy, qz, sx, tx, vb, vc, vf, vj, vm, vq, vw, vx, wq, wx, xj, zx.

Personally I have mappings based on <CR>, and press it twice to get a real newline.

[–] [email protected] 5 points 11 months ago

I guess I just don't write "blackjack and hookers" often enough. Sigh, I'll never make a good Redditor.

Funny, I've never actually had "kj" interrupt me in vim. Maybe once. It's a funny way of realising I've never written certain words in vim!

[–] [email protected] 9 points 11 months ago

That's some shitty, lossy compression.

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago) (1 children)

I have \yeet bound to ggdG (backslash being my leader key)

Edit: Detail about leader. I'd add the proper binding but markdown's being weird.

[–] [email protected] 1 points 10 months ago (1 children)

so you use 5 keystrokes to get out of typing 4.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

Technically yes. However I figured it'd be a funny one to have in my vimrc.

Also capital G requires a shift press, so not sure how many keystrokes that counts as.

[–] [email protected] 7 points 11 months ago
[–] [email protected] 7 points 11 months ago (1 children)

M-x dunnet

Runs Colossal Cave Adventure in emacs. "YOU ARE STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK BUILDING."

[–] [email protected] 2 points 11 months ago

What?!

And to think I was going to take an early night...

[–] [email protected] 6 points 11 months ago

Well, you see, I spilled coffee on my mechanical keyboard, permanently breaking the 2/@ key, so I mapped it to pause/break..

[–] [email protected] 5 points 11 months ago (2 children)

I map caps lock to esc with setxkbmap. Much more fun ergonomically.

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago)

I use caps for switching languages instead of alt+shift or super+space.

Very efficient thing when you need to use your native language and some code in one text message or code block.

[–] [email protected] 1 points 11 months ago (1 children)

Where do you have that running? I set it in my i3 config and it never takes properly on my laptop. On my desktop I ended up just doing it in hardware because it was easier

[–] [email protected] 2 points 11 months ago

It works great in i3config but in gnome I have problems with it.

[–] [email protected] 4 points 11 months ago

Yeah that's why I switched from VSCode to nano!

[–] [email protected] 3 points 11 months ago

Me with my dwm key binds.

[–] [email protected] 3 points 11 months ago

alt+z for saving, I guess?

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

Ctrl+a, Ctrl+c, alt-tab, Ctrl+z, enter.

"This is mine now."

[–] [email protected] 2 points 11 months ago

All hail nano

[–] [email protected] 2 points 11 months ago

Ctrl+D = Alt+F4 in CMD.exe so that I can exit from that black box in the way the good lord intended.

[–] [email protected] 1 points 11 months ago

I like the one of Isaac

[–] [email protected] 1 points 11 months ago

i use vim tips and still cant remember names, what gives?