Now, that is a programmers mug :) Lars Fosdal Delphi Developers: Off topic October 4, 2013 1 Minute Now, that is a programmers mug 🙂 Originally shared by Formule by BNF Coffee hour 😉 Share this:TweetEmailMoreShare on TumblrWhatsAppTelegramPocketLike this:Like Loading... Related Published by Lars Fosdal Software Developer View all posts by Lars Fosdal Published October 4, 2013
Redundant ‘else’ detected 😉 procedure DoOnIdle; var Coffee: TCoffee; begin Coffee := TCoffee.Reach; if Coffee.Empty then Coffee.Refill; Coffee.Drink; end; Loading... Log in to Reply
Lars Fosdal That’s some weird looking code… All of the stuff in the if-else clause is commented out? =P Loading... Log in to Reply
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!! Loading... Log in to Reply
Redundant ‘else’ detected 😉
procedure DoOnIdle;
var
Coffee: TCoffee;
begin
Coffee := TCoffee.Reach;
if Coffee.Empty then
Coffee.Refill;
Coffee.Drink;
end;
Alexander Volchenkov Memleak or Singleton detected :p
Let’s assume TCoffee is a record 😉
Defect: It appears to be empty!
Lars Fosdal That’s some weird looking code… All of the stuff in the if-else clause is commented out? =P
Frédéric Hannes And there’s no then 😉
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!!