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. Oh what a morning

Oh what a morning

Scheduled Pinned Locked Moved The Lounge
sysadmin
19 Posts 9 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.
  • S Offline
    S Offline
    Stefan Spenz
    wrote on last edited by
    #1

    Came to work at 8am, looking forward to code all day, and then... then... this f****** CVS file server is down all morning. :mad: Anyway, I've got time to surf the CodeProject. So a big HI to anyone! :-D When I was young my mother told me to clean up my room, I told her -1!

    N G P B 4 Replies Last reply
    0
    • S Stefan Spenz

      Came to work at 8am, looking forward to code all day, and then... then... this f****** CVS file server is down all morning. :mad: Anyway, I've got time to surf the CodeProject. So a big HI to anyone! :-D When I was young my mother told me to clean up my room, I told her -1!

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Stefan Spenz wrote: When I was young my mother told me to clean up my room, I told her -1! Hi Stefan Care to explain what your sig means? Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      S S 2 Replies Last reply
      0
      • N Nish Nishant

        Stefan Spenz wrote: When I was young my mother told me to clean up my room, I told her -1! Hi Stefan Care to explain what your sig means? Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        S Offline
        S Offline
        Sijin
        wrote on last edited by
        #3

        :-D :-D :-D That is a great sig. I think it means he said NO to his MOM in geek speak May the Source be with you Sonork ID 100.9997 sijinjoseph

        A 1 Reply Last reply
        0
        • N Nish Nishant

          Stefan Spenz wrote: When I was young my mother told me to clean up my room, I told her -1! Hi Stefan Care to explain what your sig means? Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          S Offline
          S Offline
          Stefan Spenz
          wrote on last edited by
          #4

          Nishant S wrote: Care to explain what your sig means? Sure. Think of it as an Integer function like int CleanUpMyRoom(). When I don't want to clean up my room, I simply return -1 :laugh: When I was young my mother told me to clean up my room, I told her -1!

          N S A 3 Replies Last reply
          0
          • S Stefan Spenz

            Nishant S wrote: Care to explain what your sig means? Sure. Think of it as an Integer function like int CleanUpMyRoom(). When I don't want to clean up my room, I simply return -1 :laugh: When I was young my mother told me to clean up my room, I told her -1!

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            Oh ok. That's what I initially thought though in the old 16 bit days -1 was true [0xFFFF] and 0 was false :-) So got a lil confused Nish


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

            G 1 Reply Last reply
            0
            • S Stefan Spenz

              Came to work at 8am, looking forward to code all day, and then... then... this f****** CVS file server is down all morning. :mad: Anyway, I've got time to surf the CodeProject. So a big HI to anyone! :-D When I was young my mother told me to clean up my room, I told her -1!

              G Offline
              G Offline
              George
              wrote on last edited by
              #6

              Stefan Spenz wrote: this f****** CVS file server is down all morning. Hm, unless you didn't have sandbox checked out already a lack of server connection should not really stop you from coding. If you did checkout before then you can easily work and commit after you get a server connection back. Actually you can even clone the sandboxes and implement different fixes in each and do update/commit and it should still work. More - some actions like cvs edit will actually be stored and re-send once connection is back and any cvs operation is performed. So, it's a good idea to keep a sandbox at all times checked out and ready for action...

              S 1 Reply Last reply
              0
              • S Stefan Spenz

                Nishant S wrote: Care to explain what your sig means? Sure. Think of it as an Integer function like int CleanUpMyRoom(). When I don't want to clean up my room, I simply return -1 :laugh: When I was young my mother told me to clean up my room, I told her -1!

                S Offline
                S Offline
                Sijin
                wrote on last edited by
                #7

                Stefan Spenz wrote: I simply return -1 Did you know that if(-1){printf("Ok mom!");} actually prints "Ok mom" :laugh: :laugh: :laugh: May the Source be with you Sonork ID 100.9997 sijinjoseph

                S 1 Reply Last reply
                0
                • S Stefan Spenz

                  Nishant S wrote: Care to explain what your sig means? Sure. Think of it as an Integer function like int CleanUpMyRoom(). When I don't want to clean up my room, I simply return -1 :laugh: When I was young my mother told me to clean up my room, I told her -1!

                  A Offline
                  A Offline
                  Alexandru Savescu
                  wrote on last edited by
                  #8

                  You should have thrown a DontWantToDoThat exception. Then, if your mother is smart enough to catch the exception then she would handle it properly (cut off your allowance etc.), but if not then you'd be safe. Best regards, Alexandru Savescu

                  1 Reply Last reply
                  0
                  • N Nish Nishant

                    Oh ok. That's what I initially thought though in the old 16 bit days -1 was true [0xFFFF] and 0 was false :-) So got a lil confused Nish


                    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                    G Offline
                    G Offline
                    George
                    wrote on last edited by
                    #9

                    Nishant S wrote: Oh ok. That's what I initially thought though in the old 16 bit days -1 was true [0xFFFF] and 0 was false Depending on the language (and not the bits), but in C/C++ 0 was always false, and anything else was true (which means that -1 or 0xFFFF are true, but also 1, 2 etc.). Nishant S wrote: So got a lil confused That's true (also). ;)

                    1 Reply Last reply
                    0
                    • S Stefan Spenz

                      Came to work at 8am, looking forward to code all day, and then... then... this f****** CVS file server is down all morning. :mad: Anyway, I've got time to surf the CodeProject. So a big HI to anyone! :-D When I was young my mother told me to clean up my room, I told her -1!

                      P Offline
                      P Offline
                      peterchen
                      wrote on last edited by
                      #10

                      you lucky guy.... When out source control would be down, I would have to do the chanting and blessing. And then, code faster so I get my work done....


                      One day I might find it quite amusing how touching tongues make life so confusing  Anne Clark again   [sighist]

                      S 1 Reply Last reply
                      0
                      • G George

                        Stefan Spenz wrote: this f****** CVS file server is down all morning. Hm, unless you didn't have sandbox checked out already a lack of server connection should not really stop you from coding. If you did checkout before then you can easily work and commit after you get a server connection back. Actually you can even clone the sandboxes and implement different fixes in each and do update/commit and it should still work. More - some actions like cvs edit will actually be stored and re-send once connection is back and any cvs operation is performed. So, it's a good idea to keep a sandbox at all times checked out and ready for action...

                        S Offline
                        S Offline
                        Stefan Spenz
                        wrote on last edited by
                        #11

                        George wrote: Hm, unless you didn't have sandbox checked out already a lack of server connection should not really stop you from coding. Actually it will stop me from coding, as I need to compile previous revisions of some files. :| When I was young my mother told me to clean up my room, I told her -1!

                        G 1 Reply Last reply
                        0
                        • P peterchen

                          you lucky guy.... When out source control would be down, I would have to do the chanting and blessing. And then, code faster so I get my work done....


                          One day I might find it quite amusing how touching tongues make life so confusing  Anne Clark again   [sighist]

                          S Offline
                          S Offline
                          Stefan Spenz
                          wrote on last edited by
                          #12

                          peterchen wrote: When out source control would be down, I would have to do the chanting and blessing For this we have our own employee. He worked as a priest before ;) When I was young my mother told me to clean up my room, I told her -1!

                          1 Reply Last reply
                          0
                          • S Stefan Spenz

                            George wrote: Hm, unless you didn't have sandbox checked out already a lack of server connection should not really stop you from coding. Actually it will stop me from coding, as I need to compile previous revisions of some files. :| When I was young my mother told me to clean up my room, I told her -1!

                            G Offline
                            G Offline
                            George
                            wrote on last edited by
                            #13

                            Stefan Spenz wrote: Actually it will stop me from coding, as I need to compile previous revisions of some files. Of course it all depends on the task at hand. If you need to access the history of files then you are screwed, but you can "move forward" and do at least some changes that don't require old versions. Most of the coding that I am doing requires very small access window to the source control - once or twice a week to check in the changes. We rarely go back to the old versions...

                            1 Reply Last reply
                            0
                            • S Sijin

                              Stefan Spenz wrote: I simply return -1 Did you know that if(-1){printf("Ok mom!");} actually prints "Ok mom" :laugh: :laugh: :laugh: May the Source be with you Sonork ID 100.9997 sijinjoseph

                              S Offline
                              S Offline
                              Stefan Spenz
                              wrote on last edited by
                              #14

                              Sijin wrote: Did you know that if(-1){printf("Ok mom!");} actually prints "Ok mom" No way, that will throw an exception! ;P When I was young my mother told me to clean up my room, I told her -1!

                              1 Reply Last reply
                              0
                              • S Sijin

                                :-D :-D :-D That is a great sig. I think it means he said NO to his MOM in geek speak May the Source be with you Sonork ID 100.9997 sijinjoseph

                                A Offline
                                A Offline
                                Andreas Saurwein
                                wrote on last edited by
                                #15

                                Sijin wrote: That is a great sig Dont think so. Its a sign of outdated/bad programming style. It should be either a boolean return value to indicate success or failure (yes/no in this case) or, in case of a int return value (which might indicate the level of agreement), raise an exception to indicate failure to agree. ;)

                                int x=1, y=5;
                                x^=y^=x^=y; // whats the content of x and y now?
                                ClickHereForHelp();

                                S R 3 Replies Last reply
                                0
                                • A Andreas Saurwein

                                  Sijin wrote: That is a great sig Dont think so. Its a sign of outdated/bad programming style. It should be either a boolean return value to indicate success or failure (yes/no in this case) or, in case of a int return value (which might indicate the level of agreement), raise an exception to indicate failure to agree. ;)

                                  int x=1, y=5;
                                  x^=y^=x^=y; // whats the content of x and y now?
                                  ClickHereForHelp();

                                  S Offline
                                  S Offline
                                  Stefan Spenz
                                  wrote on last edited by
                                  #16

                                  Andreas Saurwein wrote: Dont think so. Its a sign of outdated/bad programming style That's why I wrote When I was young ;) When I was young my mother told me to clean up my room, I told her -1!

                                  1 Reply Last reply
                                  0
                                  • A Andreas Saurwein

                                    Sijin wrote: That is a great sig Dont think so. Its a sign of outdated/bad programming style. It should be either a boolean return value to indicate success or failure (yes/no in this case) or, in case of a int return value (which might indicate the level of agreement), raise an exception to indicate failure to agree. ;)

                                    int x=1, y=5;
                                    x^=y^=x^=y; // whats the content of x and y now?
                                    ClickHereForHelp();

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

                                    Andreas Saurwein wrote: in case of a int return value (which might indicate the level of agreement), raise an exception to indicate failure to agree I'd prefer an int return value, as a competent designer would then be able to augment a simple failure with a helpful message, depending on the return value, to explain clearly the reason for the failure. The range could include such things as "Not now, Mom - I'm watching a good movie" or "Not on your life Mom, there's something dead under the bed" or even the unlikely case of "Not now, Mom - I'm doing my homework." This Signature is Temporarily Out of Order

                                    1 Reply Last reply
                                    0
                                    • A Andreas Saurwein

                                      Sijin wrote: That is a great sig Dont think so. Its a sign of outdated/bad programming style. It should be either a boolean return value to indicate success or failure (yes/no in this case) or, in case of a int return value (which might indicate the level of agreement), raise an exception to indicate failure to agree. ;)

                                      int x=1, y=5;
                                      x^=y^=x^=y; // whats the content of x and y now?
                                      ClickHereForHelp();

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

                                      I guess you've been getting a lot of replies from Codeproject! I just got this back: Reporting-MTA: dns; mx.yourdomain.com Received-From-MTA: DNS; [your IP Address] Arrival-Date: Mon, 2 Sep 2002 08:33:34 -0700 (PDT) Final-Recipient: RFC822; saurwein@uniwares.com Action: failed Status: 5.0.0 Remote-MTA: DNS; mailhost.inca.at Diagnostic-Code: SMTP; 554 Message contains known spam source in Received: header Last-Attempt-Date: Mon, 2 Sep 2002 08:33:39 -0700 (PDT) This Signature is Temporarily Out of Order

                                      1 Reply Last reply
                                      0
                                      • S Stefan Spenz

                                        Came to work at 8am, looking forward to code all day, and then... then... this f****** CVS file server is down all morning. :mad: Anyway, I've got time to surf the CodeProject. So a big HI to anyone! :-D When I was young my mother told me to clean up my room, I told her -1!

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

                                        Stefan Spenz wrote: this f****** CVS file server is down all morning. Ah well.. pack your stuff and head off home ;-) Regards, Brian Dela :-)

                                        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