The Second-Worst Enum in My Life
Dmitrii Kovanikov @ChShersh · 2h I've just seen the 2nd-worst enum in my life enum class ElevatorFloor : unsigned int { LLG = static_cast<unsigned int>(-2), LG = static_cast<unsigned int>(-1), G = 0, One = 1, Two = 2, Three = 3, Five = 4, Six = 5, Seven = 6, Eight = 7, Nine = 8, Ten = 9, Eleven = 10, Twelve = 11, Fourteen = 12, }; Dmitrii Kovanikov · 13/02/2026 I've just seen the worst enum in my life
A programming meme shows a social media post criticizing an elevator-floor enum written in C++. The enum skips “Four” but assigns “Five = 4,” then a quoted older post shows an even worse enum with more absurd naming and numbering. It is used as a reaction to increasingly bad code or horrifying technical decisions.
social media post / пост в соцсетиprofile photo / фотография профиляverified badge / значок верификацииprogramming code / программный кодC++ enum / перечисление C++black code editor panel / чёрная панель редактора кодаelevator floors / этажи лифтаnumbered list / нумерованный списокquoted post / цитируемый постX logo / логотип Xwhite background / белый фон
- @profunctor_io / 11367 2026-03-14
- Template
- quoted tweet reaction
- Type
- image
- Size
- 592×800 · 52.9 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added