this post was submitted on 10 Jul 2025
932 points (99.8% liked)

Programmer Humor

24942 readers
1902 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 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 2 days ago (2 children)
[–] [email protected] 11 points 2 days ago (1 children)
[–] [email protected] 12 points 2 days ago (3 children)

More specifically, an Indian divider for large numbers, kind of like how δΈ‡ (read 'man') works in Japanese. While Japanese (and I think Chinese) divide numbers greater than 1,000 in increments of 1δΈ‡, or 10,000, up until you hit 100,000,000, in India, large numbers get split into lakh, representing groups of 100,000.

[–] [email protected] 4 points 1 day ago

It's so neat how different cultures adapted to numbers. Like French have something like 4 times 20 (and?) 2 to mean 82. In Hungarian if you say billiΓ³, that is one trillion rather one billion. We riff on the ending of million to express billion: milliΓ‘rd.

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

Umm this is just being retro. Like using a film camera.

load more comments (3 replies)
[–] [email protected] 53 points 2 days ago (1 children)
load more comments (1 replies)
[–] [email protected] 32 points 2 days ago (6 children)

Speaking of coding out of spite, is nobody going to mention that his C code features a struct with over 20 fields in it?

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

Sometimes you can't not have a god class (struct in this case). When doing UI specifically, I always end up with one.

You can try using encapsulation to reduce the amount of fields technically, but in the end it's the same amount of information in a single god class.

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

That's the State struct. Globally accessible, I'd bet

[–] [email protected] 19 points 2 days ago* (last edited 2 days ago) (1 children)

That's not uncommon, is it?

[–] [email protected] 9 points 2 days ago* (last edited 2 days ago) (3 children)

Not really, but I'd probably try to organize those into sub structures where it made sense. A data structure holding the UI state and FFT data all flat is kinda messy imo since it becomes unclear what is actually required where.

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

Yeah that's what I usually do, as long as it's passed by reference there isn't anything too bad here.

[–] [email protected] 24 points 2 days ago (1 children)

You can tell there ought to be substructures because he used comments to label the different groups. That's a code smell right there.

[–] [email protected] 2 points 2 days ago
load more comments (1 replies)
load more comments (3 replies)
[–] [email protected] 10 points 2 days ago* (last edited 2 days ago) (5 children)

There used to be a UI library on the Amiga called MUI.

It used a bunch of C macros to let you define the window and all the controls. Was honestly pretty good considering it was like 30 years ago.

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

Unrelated but there is microui, a 1100 loc library in ansi C for a basic UI.

https://github.com/rxi/microui

load more comments (4 replies)
[–] [email protected] 9 points 2 days ago (2 children)
[–] [email protected] 22 points 2 days ago (1 children)

React is what powers your Windows Start Menu.

[–] [email protected] 9 points 1 day ago (1 children)
[–] [email protected] 14 points 1 day ago (2 children)

Yes, as well as parts of the settings menu. What's not to love about constantly loading and unloading javascript just by clicking around in native apps? CPU spikes are good for your health.

load more comments (2 replies)
[–] [email protected] 8 points 2 days ago (4 children)

React is a Javascript based web development programming language developed by Facebook to make pages run faster and better. I learned it as part of a MERN stack full web development course.

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

Used for rendering UIs on a Document Object Model. JS was a mistake.

[–] [email protected] 8 points 2 days ago* (last edited 2 days ago)

Javascript based web development ~~programming language~~ UI library

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

On the other hand React Native is a JavaScript based development language developed by Facebook to make applications run slower and worse.

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

to make pages run faster and better.

Huh, well that's a funny way of saying "break the model of web page as document and fuck up the entire web!"

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

Oh stop it. Are you saying you don't enjoy pressing the "Back" button in your browser, but staying on the same page. Therefore breaking the page so you refresh and lose whatever the fuck you were doing? /s

load more comments (1 replies)
[–] [email protected] 13 points 2 days ago (1 children)

Yeah because documents are limiting and we want to do stuff that executables can do but with a better distribution model.

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

Shoulda been something more like Java Web Start.

load more comments (2 replies)
[–] [email protected] 6 points 2 days ago (3 children)

I'm an elitist asshole and I hate that people say "react dev" when really it's "web dev that uses react"

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

There are also react devs creating the windows 11 start menu.

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

react devs are not web devs. they're special

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

Is this distinction really all that useful?

I suppose you could write a react app that doesn’t use β€œthe web”? But you still might just say they are a react developer.

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

I think the web part refers to web technologies.

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

Yeah I guess I’m old. Seems like everything is called β€œweb dev” these days.

I was answering a question somewhere related to something like C/C++ and Operating System level stuff. Someone replied asking where I learned β€œweb dev.” I would consider that general programming, or possibly systems programming, but certainly not β€œweb dev.”

load more comments
view more: β€Ή prev next β€Ί