DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-211 months agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square90fedilinkarrow-up1197arrow-down19file-text
arrow-up1188arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-211 months agomessage-square90fedilinkfile-text
minus-squareMagicShel@programming.devlinkfedilinkarrow-up18·11 months agoI’d make it a named function for clarity and testability and proceed to give zero shits how it is implemented. I would unironically write this code if it worked, but I wouldn’t inline it to reduce the cognitive load of reading it.
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up2·11 months agoThis, and maybe a couple of unit tests
minus-squareTheSlad@sh.itjust.workslinkfedilinkarrow-up4·11 months ago7 unit tests should be enough I think
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up1·11 months agoLol i can’t lie, it took me a while to get the joke. I feel so dumb
I’d make it a named function for clarity and testability and proceed to give zero shits how it is implemented. I would unironically write this code if it worked, but I wouldn’t inline it to reduce the cognitive load of reading it.
This, and maybe a couple of unit tests
7 unit tests should be enough I think
Lol i can’t lie, it took me a while to get the joke. I feel so dumb