Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 2 天前AI cannot replace humans spiteful spiritlemmy.zipimagemessage-square105fedilinkarrow-up1943arrow-down12
arrow-up1941arrow-down1imageAI cannot replace humans spiteful spiritlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 2 天前message-square105fedilink
minus-squareqqq@lemmy.worldlinkfedilinkarrow-up9·edit-22 天前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.
minus-squaregrue@lemmy.worldlinkfedilinkarrow-up24·2 天前You can tell there ought to be substructures because he used comments to label the different groups. That’s a code smell right there.
minus-squareDrunkEngineer@lemmy.worldlinkfedilinkarrow-up2·2 天前It is spite coding though. He probably has a bunch of gotos too.
minus-squarewise_pancake@lemmy.calinkfedilinkarrow-up2·2 天前Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.
That’s not uncommon, is it?
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.
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
It is spite coding though.
He probably has a bunch of gotos too.
Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.