this post was submitted on 07 May 2025
1139 points (96.7% liked)

Programmer Humor

23177 readers
1143 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
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 4 days ago

I recently learned you can't put a form into another form

[–] [email protected] 46 points 4 days ago (29 children)

Okay but how do u center a div in 2025

[–] [email protected] 10 points 4 days ago* (last edited 4 days ago) (2 children)

If you define what you mean by centering I'll give you a straight answer.

Vertically? Horizontally? Center the text or the entire box? Compared to the viewport, the parent container or the entire page?

"Centering" isn't as straight forward as you'd think, and what you actually want usually depends on the situation.

[–] [email protected] 7 points 4 days ago (1 children)
[–] [email protected] 4 points 4 days ago

Yeah that works if you wanna center a box of content it relative to the parent container, either horizontally or vertically. For other situations we've got different tools

load more comments (1 replies)
[–] [email protected] 6 points 4 days ago

You count half the pixels and put them in a margin-left

[–] [email protected] 9 points 4 days ago* (last edited 4 days ago)

While centering div, you add one to 2023.

load more comments (26 replies)
[–] [email protected] 18 points 4 days ago (5 children)

Can't exit Vim

Ah yes, the legendary filter

[–] [email protected] 7 points 4 days ago (3 children)

I can exit Vim, it just feels like trying to rip out the dashboard and the interiors from a family car because race cars also lack them. Kate is a good speedy alternative to VSCode, not to mention it also does not have Microsoft's greedy hands on it.

load more comments (3 replies)
load more comments (3 replies)
[–] [email protected] 60 points 4 days ago (1 children)

My experience is that the programmers from the first row very much still exist. My theory is that the number of programmers from the first row stayed the about same or even increased slightly. There are so many more so called "programmers" overall now, however, that in relation the first row programmers are much rarer now. And to be fair, you don't need a programmer capable of programming entire games in assembly to center a div.

[–] [email protected] 26 points 4 days ago (2 children)

And vice versa, you don’t need to know how to centre a div to create a game in assembler. I’m comfortable using pointers and managing memory, but don’t ask me to do anything with web UI.

[–] [email protected] 16 points 4 days ago (1 children)

I'm guessing that someone who figured out how to keep a high score box centered on screen using assembly will figure it out to do it with CSS.

The reverse, not so much...

[–] [email protected] 6 points 4 days ago (1 children)

But you dont what the code of the assembly-style centered div in your codebase. Because nobody will be able to read it and understand what it even does. There are abstraction specific ways to solve problems and the right way to do something in assembly is not the right way to do it in CSS.

[–] [email protected] 7 points 4 days ago* (last edited 4 days ago)

Agreed, in my limited experience with both CSS is like the conceptual opposite of assembly. When I do web design I tell it what I want to look like but can't see how it's getting there because that's done for me. Assembly is the lowest level of abstraction we've got and it took me ages to write a little program for class that returns an argument in it (Jasmin VM) and then get GCC to compile it.

I would say that CSS is like doing an incantation that magically makes the site look good if you do it right, and assembly is like building something by hand.

load more comments (1 replies)
[–] [email protected] 35 points 4 days ago

QA: "Yeah, Hi. Can you look at this defect ticket?"

Reading ticket details...

Me: "Let me guess. Is [whatshisname] responsible for this?"

QA: "Yeah."

Me: "Get him to fix it."

QA: "I tried. Like four times."

Me: Sigh "I'll take care of it."

QA: "Thank you!"

[–] [email protected] 37 points 4 days ago (8 children)

80s programmers hated Unix, btw. Look up Unix Haters Handbook, it's a free and funny read

[–] [email protected] 14 points 4 days ago* (last edited 4 days ago)

Unix Haters Handbook

https://en.wikipedia.org/wiki/The_UNIX-HATERS_Handbook

Didn't knew this. It has 360 pages, wow!

EDIT:

The Macintosh on which I type this has 64MB: Unix was not designed for the Mac. What kind of challenge is there when you have that much RAM?

hehe

[–] [email protected] 2 points 4 days ago

Unix does so many stupid things and we're still stuck with some of them. Especially the terminal section still applies today.

load more comments (6 replies)
load more comments
view more: ‹ prev next ›