Comment on Welcome to the wonderful world of code obfuscation
MagicShel@programming.dev 1 year ago
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.
Cosmicomical@kbin.social 1 year ago
This, and maybe a couple of unit tests
TheSlad@sh.itjust.works 1 year ago
7 unit tests should be enough I think