memesearch
Arrow Anti-Pattern Code Joke

Arrow Anti-Pattern Code Joke

Download Find similar pictures
Text on the meme
ok guys how about this static char CheckGrade( int score ) { return "FEFFE FDCBA"[score / 10]; } This code structure is called an arrow anti-pattern. How to fix this code? smartasses who get 100 deserve to crash the system, I agree
What it means

A dark-themed social media screenshot shows a deliberately confusing C code function that assigns grades using the string "FEFFE FDCBA" and an index based on the score. A reply calls the deeply nested version an arrow anti-pattern and asks how to fix it, while the final caption jokes that people who score 100 deserve to crash the system because the lookup gives them an invalid or malicious result. It is sent as a reaction to absurd, broken, or overly clever code.

Objects
Tags
Source
Type
image
Size
800×628 · 58.9 KiB
Mood
sarcastic, absurd
Language
en
Added