@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year agoWhitespaceprogramming.devimagemessage-square58arrow-up1306
arrow-up1306imageWhitespaceprogramming.dev@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year agomessage-square58
minus-square@SpaceNoodle@lemmy.worldlinkfedilink4•1 year 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-square@SpaceNoodle@lemmy.worldlinkfedilink3•1 year 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.