Favorite Boolean Check Style
C# is introducing even more keywords to allow more personal coding styles. Which of these is your favorite way of checking if a boolean is false? if (!condition) // OLD { } ifn't (condition) // BETTER { } if (condition ain't true) // BEST { }
A programming joke presents three increasingly informal ways to check whether a Boolean condition is false in C#. The punchline is the invented, grammatically incorrect keywords “ifn't” and “ain't true,” humorously mocking the trend toward adding more expressive language syntax. It is used as a reaction to overly elaborate coding styles or debates about programming language design.
code screenshot / скриншот кодаdark-mode social media post / публикация в соцсети в тёмной темеprogramming code / программный кодcurly braces / фигурные скобкиBoolean condition / логическое условиеsyntax highlighting / подсветка синтаксисаcomment labels / подписи комментариевprofile avatar / аватар профиля
- @gentoomemes / 9625 2024-02-24
- Type
- image
- Size
- 589×459 · 27.7 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added