DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square91fedilinkarrow-up1221arrow-down111file-text
arrow-up1210arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square91fedilinkfile-text
minus-squareMagicShel@programming.devlinkfedilinkarrow-up19·1 year 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·1 year agoThis, and maybe a couple of unit tests
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