Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 5 个月前AI cannot replace humans spiteful spiritlemmy.zipimagemessage-square105linkfedilinkarrow-up1973arrow-down12
arrow-up1971arrow-down1imageAI cannot replace humans spiteful spiritlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 5 个月前message-square105linkfedilink
minus-squareqqq@lemmy.worldlinkfedilinkarrow-up10·5 个月前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·5 个月前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-squarewise_pancake@lemmy.calinkfedilinkarrow-up2·5 个月前Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.
minus-squareDrunkEngineer@lemmy.worldlinkfedilinkarrow-up2·5 个月前It is spite coding though. He probably has a bunch of gotos too.
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
Yeah that’s what I usually do, as long as it’s passed by reference there isn’t anything too bad here.
It is spite coding though.
He probably has a bunch of gotos too.