Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 21 hours agoAI cannot replace humans spiteful spiritlemmy.zipimagemessage-square92fedilinkarrow-up1829arrow-down12
arrow-up1827arrow-down1imageAI cannot replace humans spiteful spiritlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 21 hours agomessage-square92fedilink
minus-squareqqq@lemmy.worldlinkfedilinkarrow-up8·edit-217 hours agoNot 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.
minus-squareDrunkEngineer@lemmy.worldlinkfedilinkarrow-up2·9 hours agoIt is spite coding though. He probably has a bunch of gotos too.
minus-squaregrue@lemmy.worldlinkfedilinkarrow-up22·17 hours agoYou can tell there ought to be substructures because he used comments to label the different groups. That’s a code smell right there.
minus-squarewise_pancake@lemmy.calinkfedilinkarrow-up2·17 hours agoYeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.
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.
It is spite coding though.
He probably has a bunch of gotos too.
You can tell there ought to be substructures because he used comments to label the different groups. That’s a code smell right there.
Agreed
Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.