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.
More from Fun
- Japan's maid café to host a 90-minute category-theory-to-group-theory lecture — burny_tech · 2026-11-15
- AI Twitter Debate: Should Creating a New Digital Species Be a Crime? — zetalyrae · 2026-11-15
- "AI is creative, but can it do THIS?" — a viral demo gotcha — yuwen_lu_ · 2026-11-15
- Japanese firm Qnote hires 11 full-time office cats to cut workplace stress — PAstynome · 2026-11-15
- Timeline of the Jensen Huang vs. Anthropic open-source fight gains traction — kevinnbass · 2026-11-15
- One prompt, three models: Fable vs Opus vs Haiku build a Christmas tree widget — AIOSAI · 2026-11-15