1

When a coder doesn’t get his morning coffee; don’t mess with him, even the codes don’t try to mess with them. In this programming jokes, relation between programmer and caffeine is explained.
if (coffee.Empty)
{
coffee.Refill();
}
else
{
coffee.Drink();
}

Comments
  • 0
    I don't like my morning coffee cold.
  • 1
  • 2
    Can you not use an if else though?

    if (coffee.isEmpty()) {
    coffee.refill();
    }

    coffee.drink()

    This makes more sense because we drink after refilling and we reduced complexity. But changed the original logic...
  • 0
    @RantSomeWhere could be C#
Add Comment