memesearch
5 is a magic number

5 is a magic number

Download Find similar pictures
Text on the meme
#TIL that 0,1,2,3 and 4 are not magic numbers. 5, however, is right out. s.at(Point{ 3, 4 }) = Flashing_Tile; s.at(Point{ 2, 5 }) = Flashing_Tile; s.at(Point{ 1, 3 }) Clang-Tidy: 5 is a magic number; s.at(Point{ 1, 3 }).can_enter = [](const section == Direction::South; s.at(Point{ 0, 3 }).enter_action = [](Gam constexpr auto five = 5; auto values = std::array{0, 1, 2, 3, 4, five};
What it means

На скриншоте сообщения программиста говорится, что числа от 0 до 4 не являются «магическими», а число 5 внезапно считается магическим. В ответе показан код на C++, где число 5 заменено именованной константой five, что высмеивает чрезмерно буквальное правило линтера Clang-Tidy. EN: A programmer’s post says that the numbers 0 through 4 are not “magic,” while 5 is suddenly considered magic. The reply shows C++ code replacing the number 5 with a named constant, poking fun at Clang-Tidy’s overly literal linting rule.

Who
Objects
Tags
Source
Type
image
Size
604×800 · 56.9 KiB
Mood
саркастичный, абсурдный
Language
en
Added