pcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 5 days agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square55fedilinkarrow-up167cross-posted to: programming@programming.dev
arrow-up167external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 5 days agomessage-square55fedilinkcross-posted to: programming@programming.dev
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·7 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·7 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