Derby #228: Double-Take Derby 15
+466

Breakfast Program v.2

Breakfast Program v.2
add a comment

Comments

capfund


quality posts: 0 Private Messages capfund
Re: Breakfast Program v.2


This is for all my fellow Computer Scientists and developers alike.

Glad to have another crack at the fog! Good luck to everyone.

mcohn16


quality posts: 0 Private Messages mcohn16

You should have overloaded the cook() function! That's so C ;)

capfund


quality posts: 0 Private Messages capfund
mcohn16 wrote:You should have overloaded the cook() function! That's so C ;)


Yeah if you followed the original when it was sub'd I didn't want to confuse people with object overloading but it is what it is...

frazelle


quality posts: 1 Private Messages frazelle

Oh man, this is great! Do you often find yourself turning everyday logic into code?

This shirt is like a smidge of evidence I haven't completely lost it!


starksre


quality posts: 3 Private Messages starksre
Re: Breakfast Program v.2


If this places i think i will buy it for my computer science major boyfriend. Perfect for him

capfund


quality posts: 0 Private Messages capfund
starksre wrote:If this places i think i will buy it for my computer science major boyfriend. Perfect for him


I hope it places too! Thanks for your feedback.

InspiredMom


quality posts: 1 Private Messages InspiredMom
Love it - if this places I will buy 5, one for every member of my development team and require it be worn on casual Friday in order earn free breakfast. Of course if you break the build, you don't get food...I sense a new shirt...


Re: Breakfast Program v.2

capfund


quality posts: 0 Private Messages capfund
InspiredMom wrote:Love it - if this places I will buy 5, one for every member of my development team and require it be worn on casual Friday in order earn free breakfast. Of course if you break the build, you don't get food...I sense a new shirt...


Nice, a couple guys that I goto code challenges with and I were thinking we'd use this as our team shirt so if it doesn't print here I'll try somewhere else...

alephnull2k1


quality posts: 1 Private Messages alephnull2k1

mmm..bacon.

alephnull2k1


quality posts: 1 Private Messages alephnull2k1
Re: Breakfast Program v.2


If I were in your code review, I'd point out that the check for bacon should be the outer term. Just like you should never try to dereference a NULL pointer, you should never let a lack of eggs stop you from enjoying bacon...

capfund


quality posts: 0 Private Messages capfund
alephnull2k1 wrote:If I were in your code review, I'd point out that the check for bacon should be the outer term. Just like you should never try to dereference a NULL pointer, you should never let a lack of eggs stop you from enjoying bacon...


Indeed bacon can be consumed at any time, what you can't see this while loop

do{
...
if(you.HungryForBacon())
cookBacon(||);
...
}while(you.Alive());

As you can see you can never go with out bacon...

capfund


quality posts: 0 Private Messages capfund
alephnull2k1 wrote:If I were in your code review, I'd point out that the check for bacon should be the outer term. Just like you should never try to dereference a NULL pointer, you should never let a lack of eggs stop you from enjoying bacon...


I was justing thinking about your NULL pointer comment, and just because the refigerator could be "empty" wouldn't make it NULL, the refigerator would still exist... so calling a member function even if its empty wouldn't throw any error...

pgerakines


quality posts: 0 Private Messages pgerakines
Re: Breakfast Program v.2


Very nice! Kinda reminds me of an old Foxtrot comic.

angelsfort


quality posts: 0 Private Messages angelsfort

where can I vote for this one?! (Breakfast Program V.2) I love this!!! I want one! I want one!!!!! (if it doesn't get printed here, PLEASE tell me where you go, cuz I WANT ONE!!!) :O)

halonoid1


quality posts: 0 Private Messages halonoid1
Re: Breakfast Program v.2


If this doesn't print here (which, sadly, it looks like it won't) please let me know if you get it printed somewhere else. Especially since I'm not partial to any of the shirts currently in the fog.

alephnull2k1


quality posts: 1 Private Messages alephnull2k1
capfund wrote:I was justing thinking about your NULL pointer comment, and just because the refigerator could be "empty" wouldn't make it NULL, the refigerator would still exist... so calling a member function even if its empty wouldn't throw any error...


Oh, the NULL pointer reference wasn't specific to the shirt...more of a general programming axiom...

Although, since you don't check for the existence of cereal before invoking makecereal(), a refrigerator lacking eggs could result in a nasty error if you're out of cereal. There may also be an assumed dependency in makecereal() that you have some sort of cereal-compatible liquid on hand (milk, beer, vodka, etc.), depending on whose requirements you're trying to satisfy.

capfund


quality posts: 0 Private Messages capfund
alephnull2k1 wrote:Oh, the NULL pointer reference wasn't specific to the shirt...more of a general programming axiom...

Although, since you don't check for the existence of cereal before invoking makecereal(), a refrigerator lacking eggs could result in a nasty error if you're out of cereal. There may also be an assumed dependency in makecereal() that you have some sort of cereal-compatible liquid on hand (milk, beer, vodka, etc.), depending on whose requirements you're trying to satisfy.


lol yeah cereal is meant to encompass more than the traditional sense... But this idea of mine was much more elaborate and longer and it had to get truncated down to fit on a shirt... I have at one point an infinite loop of bacon eating invovling a farm...

capfund


quality posts: 0 Private Messages capfund
halonoid1 wrote:If this doesn't print here (which, sadly, it looks like it won't) please let me know if you get it printed somewhere else. Especially since I'm not partial to any of the shirts currently in the fog.


There is always the off chance of an editors choice... Otherwise I'll find some way of spreading the word where ever it ends up.

alephnull2k1


quality posts: 1 Private Messages alephnull2k1
capfund wrote:lol yeah cereal is meant to encompass more than the traditional sense... But this idea of mine was much more elaborate and longer and it had to get truncated down to fit on a shirt... I have at one point an infinite loop of bacon eating invovling a farm...


Let's just take a minute and reflect on the absurdity of me trying to code-review a t-shirt... ;) All in good fun...love the design!

capfund


quality posts: 0 Private Messages capfund
alephnull2k1 wrote:Let's just take a minute and reflect on the absurdity of me trying to code-review a t-shirt... ;) All in good fun...love the design!


We can also ponder at the idea of being able to code review in this t-shirt...

montypython103


quality posts: 0 Private Messages montypython103
Re: Breakfast Program v.2


This shirt is leet!

imadoki13579


quality posts: 0 Private Messages imadoki13579
Re: Breakfast Program v.2


I LOVE this shirt!!!! Good job

capfund


quality posts: 0 Private Messages capfund
Re: Breakfast Program v.2


Thanks to everyone who voted and thanks for all the kind words! Now we can just hope for an editors choice, or last resort would be to try somewhere else. I'll keep everyone informed... Thanks again!

wiiopsunday


quality posts: 0 Private Messages wiiopsunday
Re: Breakfast Program v.2


why not cook all three?
and have cereal too?
why not cook the whole fridge? >:D

kl3pt00


quality posts: 0 Private Messages kl3pt00

More Derby Entries

By date:

By rank:

Thumbnail