Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Are you sure you don't want to add a function in that allows you to do something else ...
I mean your not ever going to do anything else but fill it with coffee or drink 😂
Or is the function run every time you look at the mug 🤔😏 -
Why would you instantiate a Coffee that was empty? What a redundant if statement. Comment should read: "I am a bad software engineer"
-
@linux-colonel it was meant to be comical. As a software developer you need a bit of that else you'll go mad.
-
@merlindiavova he isn't serious either ... Well he is but he doesn't mean it in a ... Get it fucking right! Serious way
-
Flygger19818yI think you'd like something along these lines better
WorkDay day = new WorkDay();
CoffeeCup cup = new CoffeeCup();
while(day.hoursRemaining > 0) {
. . if(cup.isEmpty) {
. . . . cup.refill();
. . }
. . cup.drink();
} -
I'm assuming this is on a loop. So, every frame, you create a new cup of coffee, and refill or drink, then next loop, create another coffee cup. Why?
Related Rants
Love code, love coffee
undefined
code
love
mug
drink
refill
coffee
wk24