Be Wary Of Gary's Modern C# Wizardry

Be Wary Of Gary's Modern C# Wizardry
c#-memes, singleton-pattern-memes, code-readability-memes, syntactic-sugar-memes, language-features-memes | ProgrammerHumor.io

Left side: A perfectly normal, readable singleton pattern implementation in C#. Nice clean code, proper indentation, sensible variable names.

Right side: The C# 8.0 "Gary version" with questionable syntax choices like ?, ??=, and => operators all crammed into one line. The code technically works but looks like someone had a seizure on the keyboard.

Gary is the personification of that one developer who uses every new language feature in a single line just because they can. The kitten is cute though, which makes the abomination of code slightly more tolerable.

More Like This