959
you are viewing a single comment's thread
view the rest of the comments
[-] wise_pancake@lemmy.ca 21 points 5 days ago* (last edited 5 days ago)
[-] qqq@lemmy.world 10 points 5 days ago* (last edited 5 days ago)

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.

[-] grue@lemmy.world 24 points 5 days ago

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

[-] qqq@lemmy.world 2 points 5 days ago
[-] DrunkEngineer@lemmy.world 2 points 4 days ago

It is spite coding though.

He probably has a bunch of gotos too.

[-] wise_pancake@lemmy.ca 2 points 5 days ago

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

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

Programmer Humor

25009 readers
951 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