pcouy@lemmy.pierre-couy.fr to Programming · 5 days agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square55fedilinkarrow-up167arrow-down17cross-posted to: programming
arrow-up160arrow-down1external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming · 5 days agomessage-square55fedilinkcross-posted to: programming
minus-squareFizzyOrangelinkfedilinkarrow-up1·3 hours ago it’s an easy refactor to make it not global I have enough experience to know that making global state non-global is usually anything but easy.
minus-squareBoomkop3@reddthat.comlinkfedilinkarrow-up1·2 hours agoDamn, suppose I won’t just pass it as a pointer from the call site. That’d be so difficult to add an int to a struct 30 years my ass
I have enough experience to know that making global state non-global is usually anything but easy.
Damn, suppose I won’t just pass it as a pointer from the call site. That’d be so difficult to add an int to a struct
30 years my ass