JPDev@programming.dev to Programmer Humor@programming.dev · 9 months agoWhitespaceprogramming.devimagemessage-square59fedilinkarrow-up1305arrow-down110
arrow-up1295arrow-down1imageWhitespaceprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square59fedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up4·9 months agoI wrote a couple unholy lines of C++ the other day using the ternary conditional operator to select a class member function to be called with a fixed argument. I think my teammates were too scared to call me out on it.
minus-squareYaBoyMax@programming.devlinkfedilinkEnglisharrow-up2arrow-down1·9 months agoKISS, my guy.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up3·9 months agoIt’s actually simpler than doing it the “right” way, but I wanted to see how much I could make C++ pretend it was Python.
I wrote a couple unholy lines of C++ the other day using the ternary conditional operator to select a class member function to be called with a fixed argument.
I think my teammates were too scared to call me out on it.
KISS, my guy.
It’s actually simpler than doing it the “right” way, but I wanted to see how much I could make C++ pretend it was Python.