You are viewing a single thread.
View all comments View context
44 points

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?

permalink
report
parent
reply
27 points

I’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously

permalink
report
parent
reply
7 points

Where does it end though? It’s a bit like infinite craft - but instead of combining resources you’d have to find an inverse for every emoji

permalink
report
parent
reply
6 points
*
async function reverse(str){
    return ChatGPT.ask(`Please reverse the string ${str}. Reply only with the answer, without other words or symbols.`);
}
permalink
report
parent
reply
6 points

Lua could possibly do this

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2.9K

    Monthly active users

  • 800

    Posts

  • 12K

    Comments