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

Programmer Humor

24969 readers
1614 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 3 days ago* (last edited 3 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

It is spite coding though.

He probably has a bunch of gotos too.

[–] [email protected] 2 points 3 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 3 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.