hydroptic@sopuli.xyz to Programmer Humor@programming.dev · 2 months ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square9fedilinkarrow-up17arrow-down10cross-posted to: [email protected]
arrow-up17arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@programming.dev · 2 months agomessage-square9fedilinkcross-posted to: [email protected]
minus-squarehydroptic@sopuli.xyzOPlinkfedilinkarrow-up1·2 months agoUse a dynamically typed language and you won’t have to: just override the default reverse() method on strings like a Real Programmer! Unintended consequences you say? Nonsense! What could possibly go wrong?
minus-squarepetey@aussie.zonelinkfedilinkarrow-up1·2 months agoI’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously
Use a dynamically typed language and you won’t have to: just override the default
reverse()
method on strings like a Real Programmer!Unintended consequences you say? Nonsense! What could possibly go wrong?
I’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously