You know you're a developer when...
-
Paul Watson wrote: If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel) I'd settle for :- If (fembarfly == ALIVE ..... :-O 'G'
-
...a friend sends you his plans for the evening thus:
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") {
myBeer.refill();
}myBeer.eject();
cheers, Chris Maunder
Those set methods look worryingly like a java programmer's way of setting fields :~
-
Sorry, even with my age and looks working against me, I still like live & fresh meat !! Sorta like the difference between Jello & Jewish Princesses ... 'G'
-
Sorry, even with my age and looks working against me, I still like live & fresh meat !! Sorta like the difference between Jello & Jewish Princesses ... 'G'
-
...a friend sends you his plans for the evening thus:
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") {
myBeer.refill();
}myBeer.eject();
cheers, Chris Maunder
oops, that code has a bug in it (looks like an infinite loop to me )...
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
while (myBeer.getOwnersDrunkenFactor()!="collapsed")
{
myBeer.drink(); //otherwise we never collapse...
myBeer.refill();
}
myBeer.eject -
Yup, that's a developer. After a few, though, things start to get fuzzy: #include #include #include Beer myBeer = new Beer(); myBeer.setGlassSize("Pitcher"); myBeer.setStrength("any"); myBeer.setBrand("any"); myBeer.Drink(); while (myBeer.getKegStatus() != ERR_KEG_EMPTY) { myBeer.refill(); } If (fembarfly == ATTRACTIVE) { If (!CCab.Call()) CRuminants.RentASheep(); Else CCab.GoHome(); } myBeer.Eject(PROJECTILE_MODE_ACTIVE); "Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
Roger Wright wrote: #include Looks like you are using C++ ;) Roger Wright wrote: Beer myBeer = new Beer(); myBeer.setGlassSize("Pitcher"); Will not compile, use -> instead of . myBeer->setGlassSize("Pitcher"); Sorry, I just had to... - Anders Money talks, but all mine ever says is "Goodbye!" My Photos[^] nsms@spyf.dk <- Spam Collecting ;)
-
I'm not sure I can put my finger on just why, but this sounds like it might have come from Michael Martin :) Rob Manderson http://www.mindprobes.net **Paul Watson wrote:**What sense would you most dislike loosing? Ian Darling replied. Telepathy Then I'd no longer be able to find out everyones dirty little secrets The Lounge, December 4 2003
Rob Manderson wrote: I'm not sure I can put my finger on just why, but this sounds like it might have come from Michael Martin :) I'd like to take credit Rob, but I can't. I haven't coded anything for over 2 years and it took 3 readings to get it all. All I'm good for now is twist, drink, twist, drink. Michael Martin Australia "I suspect I will be impressed though, I am easy." - Paul Watson 21/09/2003
-
oops, that code has a bug in it (looks like an infinite loop to me )...
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
while (myBeer.getOwnersDrunkenFactor()!="collapsed")
{
myBeer.drink(); //otherwise we never collapse...
myBeer.refill();
}
myBeer.eject -
Sorry, even with my age and looks working against me, I still like live & fresh meat !! Sorta like the difference between Jello & Jewish Princesses ... 'G'
>Sorta like the difference between Jello & Jewish Princesses ... Right. What on God's Green Earth does that mean? regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...
-
Paul Watson wrote: If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel) I'd settle for :- If (fembarfly == ALIVE ..... :-O 'G'
-
...a friend sends you his plans for the evening thus:
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") {
myBeer.refill();
}myBeer.eject();
cheers, Chris Maunder
Chris Maunder wrote: myBeer.eject(); I prefer use
myBeer.Dispose();
:-D:-D "Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core "Press any key to continue, where's the ANY key ?" - Homer Simpsons Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03 -
Michael P Butler wrote: And the good thing about it being C#, it'll clear up the mess after itself Yes, but when!? Thank god for stack based objects in C++ - deterministic finalization is a good thing. Unfortunately not very common in the beer drinking process. :( -- I am perpetual, I keep the country clean.
Jörgen Sigvardsson wrote: Thank god for stack based objects in C++ - deterministic finalization is a good thing. Unfortunately not very common in the beer drinking process Not even when you "stack" the empty pint glasses up to try and reach the ceiling before the bar staff collect them? :-D -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
-
Jörgen Sigvardsson wrote: Thank god for stack based objects in C++ - deterministic finalization is a good thing. Unfortunately not very common in the beer drinking process Not even when you "stack" the empty pint glasses up to try and reach the ceiling before the bar staff collect them? :-D -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
Anybody who tries to smash the stack deserves some kind of punishment.. ;) -- I am perpetual, I keep the country clean.
-
Anybody who tries to smash the stack deserves some kind of punishment.. ;) -- I am perpetual, I keep the country clean.
Jörgen Sigvardsson wrote: Anybody who tries to smash the stack deserves some kind of punishment :laugh: -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
-
>If (fembarfly == ATTRACTIVE) Slight change.
If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel)
>PROJECTILE_MODE_ACTIVE :laugh: What a constant. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...Thats why girls go to the toilet in pairs - protection ! The tigress is here :-D
-
I think that version will throw an OutOfBeer exception since myBeer.drink() is called without filling the glass. :~ /Magnus
- I don't necessarily agree with everything I say
Damn! You're right. Oh, well, put it in a try/catch and forget about it. :sigh:
-
Chris Maunder wrote: myBeer.eject(); And the good thing about it being C#, it'll clear up the mess after itself ;-) Michael But you know when the truth is told, That you can get what you want or you can just get old, Your're going to kick off before you even get halfway through. When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
:rolleyes: Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
http://www.briandela.com/pictures Now with a pictures section :-D
http://www.briandela.com/rss/newsrss.xml RSS Feed -
Paul Watson wrote: If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel) I'd settle for :- If (fembarfly == ALIVE ..... :-O 'G'
:-D Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
http://www.briandela.com/pictures Now with a pictures section :-D
http://www.briandela.com/rss/newsrss.xml RSS Feed -
>Sorta like the difference between Jello & Jewish Princesses ... Right. What on God's Green Earth does that mean? regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...
I'm lost too. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
http://www.briandela.com/pictures Now with a pictures section :-D
http://www.briandela.com/rss/newsrss.xml RSS Feed -
...a friend sends you his plans for the evening thus:
Beer myBeer = new Beer();
myBeer.setBeerGlassSize("large");
myBeer.setStrength("8%");
myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") {
myBeer.refill();
}myBeer.eject();
cheers, Chris Maunder
...your friend tells you about the neat coding tricks he read about during his honeymoon. _____________________________________________ Of all the senses I could possibly lose,
It is most often the one called 'common' that gets lost.