Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. You know you're a developer when...

You know you're a developer when...

Scheduled Pinned Locked Moved The Lounge
43 Posts 23 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Garth J Lancaster

    Paul Watson wrote: If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel) I'd settle for :- If (fembarfly == ALIVE ..... :-O 'G'

    G Offline
    G Offline
    G Raven
    wrote on last edited by
    #18

    If (fembarfly == ALIVE | HASMORETHAN3TEETH) ... G. Raven

    R 1 Reply Last reply
    0
    • C Chris Maunder

      ...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

      A Offline
      A Offline
      Aryo Handono
      wrote on last edited by
      #19

      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

      1 Reply Last reply
      0
      • J Jorgen Sigvardsson

        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.

        I Offline
        I Offline
        Ian Darling
        wrote on last edited by
        #20

        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 1 Reply Last reply
        0
        • I Ian Darling

          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 Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #21

          Anybody who tries to smash the stack deserves some kind of punishment.. ;) -- I am perpetual, I keep the country clean.

          I 1 Reply Last reply
          0
          • J Jorgen Sigvardsson

            Anybody who tries to smash the stack deserves some kind of punishment.. ;) -- I am perpetual, I keep the country clean.

            I Offline
            I Offline
            Ian Darling
            wrote on last edited by
            #22

            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

            1 Reply Last reply
            0
            • P Paul Watson

              >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...

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #23

              Thats why girls go to the toilet in pairs - protection ! The tigress is here :-D

              P 1 Reply Last reply
              0
              • _ _Magnus_

                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

                S Offline
                S Offline
                Stan Shannon
                wrote on last edited by
                #24

                Damn! You're right. Oh, well, put it in a try/catch and forget about it. :sigh:

                M 1 Reply Last reply
                0
                • M Michael P Butler

                  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

                  B Offline
                  B Offline
                  Brian Delahunty
                  wrote on last edited by
                  #25

                  :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

                  1 Reply Last reply
                  0
                  • G Garth J Lancaster

                    Paul Watson wrote: If (fembarfly == ATTRACTIVE || NumberOfBeers > FemSelectionDiscriminationLevel) I'd settle for :- If (fembarfly == ALIVE ..... :-O 'G'

                    B Offline
                    B Offline
                    Brian Delahunty
                    wrote on last edited by
                    #26

                    :-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

                    1 Reply Last reply
                    0
                    • P Paul Watson

                      >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...

                      B Offline
                      B Offline
                      Brian Delahunty
                      wrote on last edited by
                      #27

                      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

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        ...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

                        L Offline
                        L Offline
                        LongRange Shooter
                        wrote on last edited by
                        #28

                        ...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.

                        1 Reply Last reply
                        0
                        • L Lost User

                          Thats why girls go to the toilet in pairs - protection ! The tigress is here :-D

                          P Offline
                          P Offline
                          Paul Watson
                          wrote on last edited by
                          #29

                          You mean they don't do that to go and talk about me? Bugger. 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...

                          1 Reply Last reply
                          0
                          • A Anders Molin

                            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 ;)

                            R Offline
                            R Offline
                            Roger Wright
                            wrote on last edited by
                            #30

                            So that's why I hadn't stopped drinking before I wrote that bit!:doh: Thanks!:-D "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.

                            1 Reply Last reply
                            0
                            • P Paul Watson

                              >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...

                              R Offline
                              R Offline
                              Roger Wright
                              wrote on last edited by
                              #31

                              Jello moves when you poke it.;P "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.

                              P 1 Reply Last reply
                              0
                              • S Stan Shannon

                                Damn! You're right. Oh, well, put it in a try/catch and forget about it. :sigh:

                                M Offline
                                M Offline
                                Maximilien
                                wrote on last edited by
                                #32

                                if you throw that beer, I will try to catch it !


                                Maximilien Lincourt Your Head A Splode - Strong Bad

                                1 Reply Last reply
                                0
                                • R Roger Wright

                                  Jello moves when you poke it.;P "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.

                                  P Offline
                                  P Offline
                                  Paul Watson
                                  wrote on last edited by
                                  #33

                                  So do bushes, sheep, goats, LEGO mounds and lazyboy chairs. I get the jello bit now, thanks to David, but I still don't get what is so special about a Jewish princess? 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...

                                  R 1 Reply Last reply
                                  0
                                  • P Paul Watson

                                    So do bushes, sheep, goats, LEGO mounds and lazyboy chairs. I get the jello bit now, thanks to David, but I still don't get what is so special about a Jewish princess? 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...

                                    R Offline
                                    R Offline
                                    Roger Wright
                                    wrote on last edited by
                                    #34

                                    Paul Watson wrote: I still don't get what is so special about a Jewish princess? It's a stereotype, the full name being Jewish American Princess. She is typically uninterested in sex, very interested in shopping, self-centered and spoiled. There was a rash of JAP jokes years ago: What does a JAP say while making love? "Beige. I think we should paint the ceiling beige." What's the worst problem for a JAP after having a colostomy" Finding shoes to match the bag. What's a JAP's favorite position? Facing Bloomingdale's. This page[^] might give you a better feel for the concept.:-D "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.

                                    G 1 Reply Last reply
                                    0
                                    • G G Raven

                                      If (fembarfly == ALIVE | HASMORETHAN3TEETH) ... G. Raven

                                      R Offline
                                      R Offline
                                      Roger Wright
                                      wrote on last edited by
                                      #35

                                      If you'd ever been to Bullhead City, AZ, you wouldn't be so picky. X| "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.

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        ...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

                                        J Offline
                                        J Offline
                                        Jeremy Kimball
                                        wrote on last edited by
                                        #36

                                        There's a bug in your code :) Chris Maunder wrote: myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") { myBeer.refill();} If you want to ever achieve the "collapsed" state, you'd need to modify it:

                                        while( myBeer.getOwnersDrunkenFactor() != collapsed ) {
                                        myBeer.drink();
                                        if( myBeer.getContents() == "empty" ) {
                                        myBeer.refill();
                                        }
                                        }

                                        ;) Jeremy Kimball

                                        J 1 Reply Last reply
                                        0
                                        • J Jeremy Kimball

                                          There's a bug in your code :) Chris Maunder wrote: myBeer.drink();while (myBeer.getOwnersDrunkenFactor()!="collapsed") { myBeer.refill();} If you want to ever achieve the "collapsed" state, you'd need to modify it:

                                          while( myBeer.getOwnersDrunkenFactor() != collapsed ) {
                                          myBeer.drink();
                                          if( myBeer.getContents() == "empty" ) {
                                          myBeer.refill();
                                          }
                                          }

                                          ;) Jeremy Kimball

                                          J Offline
                                          J Offline
                                          Jeremy Kimball
                                          wrote on last edited by
                                          #37

                                          *sigh* here I am, thinking I was original... Gotta learn to read the whole thread before replying :P Jer

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups