pcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 5 days agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square55fedilinkarrow-up167arrow-down17
arrow-up160arrow-down1external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 5 days agomessage-square55fedilink
minus-squareBoomkop3@reddthat.comlinkfedilinkarrow-up1·edit-21 day agoAgain, it’s an easy refactor to make it not global. There are cases where that extra abstraction work simply does not add value. With your background, you should know that
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-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·3 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
Again, it’s an easy refactor to make it not global. There are cases where that extra abstraction work simply does not add value.
With your background, you should know that
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