hydroptic@sopuli.xyz to Programmer Humor@programming.dev · 1 month ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square11fedilinkarrow-up113arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up113arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@programming.dev · 1 month agomessage-square11fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareRVGamer06@sh.itjust.workslinkfedilinkarrow-up0·1 month agoHas someone made a library for that?
minus-squarehydroptic@sopuli.xyzOPlinkfedilinkarrow-up2·1 month 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·1 month agoI’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously
Has someone made a library for that?
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