Now, that is a programmers mug :)


Now, that is a programmers mug :)

Originally shared by Formule by BNF

Coffee hour ;)

Comments

  1. Redundant 'else' detected ;)

    procedure DoOnIdle;
    var
      Coffee: TCoffee;
    begin
      Coffee := TCoffee.Reach;
      if Coffee.Empty then
        Coffee.Refill;
      Coffee.Drink;
    end;

    ReplyDelete
  2. Alexander Volchenkov Memleak or Singleton detected :p

    ReplyDelete
  3. Lars Fosdal That's some weird looking code... All of the stuff in the if-else clause is commented out? =P

    ReplyDelete
  4. Frédéric Hannes And there's no then ;)

    ReplyDelete
  5. hey, there's something missing, I don't care how you do it, but do it!

    do {
       ....
    } while (! coffee.hadEnough());

    don't tell me you guys have only 1 coffee!!

    ReplyDelete

Post a Comment