DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-210 个月前Welcome to the wonderful world of code obfuscationimgur.comimagemessage-square92fedilinkarrow-up1233arrow-down110file-text
arrow-up1223arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-210 个月前message-square92fedilinkfile-text
minus-squareMagicShel@programming.devlinkfedilinkarrow-up23·10 个月前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.
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up2·10 个月前This, and maybe a couple of unit tests
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up1·10 个月前Lol 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