Meme: judging odd numbers went from 10 if-else lines in 2022 to a GPT API call in 2026

_jaydeepkarale · x · 2026-11-15

A viral meme contrasts "Coding in 2022" vs "Coding in 2026": the once-humble isOdd function of 10 hardcoded if-else lines becomes an async function that calls the OpenAI chat completions API with the prompt "Is ${num} odd? Make no mistakes" and parses the response.

The poster quips in an LLM voice: "Yes, you are correct - the number is quite odd, peculiar even", poking fun at the trend of outsourcing trivial logic to LLMs.

Original post →

More from Fun

Fun channel →