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. Other Discussions
  3. The Weird and The Wonderful
  4. The most creative log ever

The most creative log ever

Scheduled Pinned Locked Moved The Weird and The Wonderful
windows-admindebugginghelpannouncement
14 Posts 7 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 Offline
    G Offline
    Guy Lavi
    wrote on last edited by
    #1

    When I started working in my current position four years ago, I inherited a system full of bugs and was given the task to iron out all of the bugs. The first step i though would be to turn on the logger and try to find out where and when the crashes happen. I turned on the logger and after a few minutes... BIG MISTAKE! My system crashed. It took me 2 days to re-install everything, and turn on the logger again. and it happened again. The next time i was smarter, and ghosted my disk. I also finally found the correct source code version (which was hidden among multiple copies of various versions and test made by the person), and run it through a debugger. and then i found out this little beauty:

    public void errorCatcher(string msg)
    {
    RegistryKey key = Registry.CurrentUser.OpenSubKey(KEY_NAME_START + @"\errors", true);
    if (key != null)
    {
    key.SetValue(DateTime.Now.ToString(), msg);
    key.Close();
    }
    }

    and every method in the system had the same reference in it's catch clause:

            catch (Exception exception)
            {
                errorCatcher(exception.ToString());
                return "";
            }
    

    I took me two weeks to rewrite the whole thing, throw away 90% of the code, and roll out a bug free system. (I still keep the original code as proof, as no one believes me when i tell people about it.)

    OriginalGriffO Kornfeld Eliyahu PeterK B R 4 Replies Last reply
    0
    • G Guy Lavi

      When I started working in my current position four years ago, I inherited a system full of bugs and was given the task to iron out all of the bugs. The first step i though would be to turn on the logger and try to find out where and when the crashes happen. I turned on the logger and after a few minutes... BIG MISTAKE! My system crashed. It took me 2 days to re-install everything, and turn on the logger again. and it happened again. The next time i was smarter, and ghosted my disk. I also finally found the correct source code version (which was hidden among multiple copies of various versions and test made by the person), and run it through a debugger. and then i found out this little beauty:

      public void errorCatcher(string msg)
      {
      RegistryKey key = Registry.CurrentUser.OpenSubKey(KEY_NAME_START + @"\errors", true);
      if (key != null)
      {
      key.SetValue(DateTime.Now.ToString(), msg);
      key.Close();
      }
      }

      and every method in the system had the same reference in it's catch clause:

              catch (Exception exception)
              {
                  errorCatcher(exception.ToString());
                  return "";
              }
      

      I took me two weeks to rewrite the whole thing, throw away 90% of the code, and roll out a bug free system. (I still keep the original code as proof, as no one believes me when i tell people about it.)

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Elephant me! :wtf: A registry logger? And people wonder why it's getting harder and harder to access it... :sigh:

      The only instant messaging I do involves my middle finger.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      G F 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        Elephant me! :wtf: A registry logger? And people wonder why it's getting harder and harder to access it... :sigh:

        The only instant messaging I do involves my middle finger.

        G Offline
        G Offline
        Guy Lavi
        wrote on last edited by
        #3

        From that day on, whenever i need to get into this person code, i start pounding my head on the wall (literally) and swear. My boss then calls from the next office: "is it ###### code again?" X|

        OriginalGriffO 1 Reply Last reply
        0
        • G Guy Lavi

          From that day on, whenever i need to get into this person code, i start pounding my head on the wall (literally) and swear. My boss then calls from the next office: "is it ###### code again?" X|

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          I take it the person in question has departed the company?

          The only instant messaging I do involves my middle finger.

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          G 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            I take it the person in question has departed the company?

            The only instant messaging I do involves my middle finger.

            G Offline
            G Offline
            Guy Lavi
            wrote on last edited by
            #5

            Obviously. Unfortunately he had enough time to wreck havoc in the company code base.

            OriginalGriffO 1 Reply Last reply
            0
            • G Guy Lavi

              Obviously. Unfortunately he had enough time to wreck havoc in the company code base.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              Guy Lavi wrote:

              Obviously.

              Because you aren't on remand awaiting a murder trial? :laugh:

              The only instant messaging I do involves my middle finger.

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              G F 2 Replies Last reply
              0
              • OriginalGriffO OriginalGriff

                Guy Lavi wrote:

                Obviously.

                Because you aren't on remand awaiting a murder trial? :laugh:

                The only instant messaging I do involves my middle finger.

                G Offline
                G Offline
                Guy Lavi
                wrote on last edited by
                #7

                Exactly! :laugh:

                1 Reply Last reply
                0
                • G Guy Lavi

                  When I started working in my current position four years ago, I inherited a system full of bugs and was given the task to iron out all of the bugs. The first step i though would be to turn on the logger and try to find out where and when the crashes happen. I turned on the logger and after a few minutes... BIG MISTAKE! My system crashed. It took me 2 days to re-install everything, and turn on the logger again. and it happened again. The next time i was smarter, and ghosted my disk. I also finally found the correct source code version (which was hidden among multiple copies of various versions and test made by the person), and run it through a debugger. and then i found out this little beauty:

                  public void errorCatcher(string msg)
                  {
                  RegistryKey key = Registry.CurrentUser.OpenSubKey(KEY_NAME_START + @"\errors", true);
                  if (key != null)
                  {
                  key.SetValue(DateTime.Now.ToString(), msg);
                  key.Close();
                  }
                  }

                  and every method in the system had the same reference in it's catch clause:

                          catch (Exception exception)
                          {
                              errorCatcher(exception.ToString());
                              return "";
                          }
                  

                  I took me two weeks to rewrite the whole thing, throw away 90% of the code, and roll out a bug free system. (I still keep the original code as proof, as no one believes me when i tell people about it.)

                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu Peter
                  wrote on last edited by
                  #8

                  You made it up!!! It can't be. If it's true it can be easily will a gold medal. I can't understand why such a creative people was send on his way. Company's greatest lost...

                  I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  G 1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    You made it up!!! It can't be. If it's true it can be easily will a gold medal. I can't understand why such a creative people was send on his way. Company's greatest lost...

                    I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).

                    G Offline
                    G Offline
                    Guy Lavi
                    wrote on last edited by
                    #9

                    This is "the pearl". His code contains many more of these gems.

                    1 Reply Last reply
                    0
                    • G Guy Lavi

                      When I started working in my current position four years ago, I inherited a system full of bugs and was given the task to iron out all of the bugs. The first step i though would be to turn on the logger and try to find out where and when the crashes happen. I turned on the logger and after a few minutes... BIG MISTAKE! My system crashed. It took me 2 days to re-install everything, and turn on the logger again. and it happened again. The next time i was smarter, and ghosted my disk. I also finally found the correct source code version (which was hidden among multiple copies of various versions and test made by the person), and run it through a debugger. and then i found out this little beauty:

                      public void errorCatcher(string msg)
                      {
                      RegistryKey key = Registry.CurrentUser.OpenSubKey(KEY_NAME_START + @"\errors", true);
                      if (key != null)
                      {
                      key.SetValue(DateTime.Now.ToString(), msg);
                      key.Close();
                      }
                      }

                      and every method in the system had the same reference in it's catch clause:

                              catch (Exception exception)
                              {
                                  errorCatcher(exception.ToString());
                                  return "";
                              }
                      

                      I took me two weeks to rewrite the whole thing, throw away 90% of the code, and roll out a bug free system. (I still keep the original code as proof, as no one believes me when i tell people about it.)

                      B Offline
                      B Offline
                      Brisingr Aerowing
                      wrote on last edited by
                      #10

                      WTF?!?!? :wtf: :omg: :wtf: :omg: :~ :wtf: :wtf: :wtf: :omg: :omg: :wtf: X| X| X|

                      Keep Clam And Proofread -- √(-1) 23 ∑ π... And it was delicious.

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Guy Lavi wrote:

                        Obviously.

                        Because you aren't on remand awaiting a murder trial? :laugh:

                        The only instant messaging I do involves my middle finger.

                        F Offline
                        F Offline
                        Freak30
                        wrote on last edited by
                        #11

                        I thought, if the person was still there, he would be banging this person's head against the wall instead of his own.

                        The good thing about pessimism is, that you are always either right or pleasently surprised.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Elephant me! :wtf: A registry logger? And people wonder why it's getting harder and harder to access it... :sigh:

                          The only instant messaging I do involves my middle finger.

                          F Offline
                          F Offline
                          Fredrik Bornander
                          wrote on last edited by
                          #12

                          OriginalGriff wrote:

                          A registry logger?

                          I could top that, believe it or not, if it wasn't for the non disclosure agreement of one of my former employers.

                          My Android apps in Google Play; Oakmead Apps

                          1 Reply Last reply
                          0
                          • G Guy Lavi

                            When I started working in my current position four years ago, I inherited a system full of bugs and was given the task to iron out all of the bugs. The first step i though would be to turn on the logger and try to find out where and when the crashes happen. I turned on the logger and after a few minutes... BIG MISTAKE! My system crashed. It took me 2 days to re-install everything, and turn on the logger again. and it happened again. The next time i was smarter, and ghosted my disk. I also finally found the correct source code version (which was hidden among multiple copies of various versions and test made by the person), and run it through a debugger. and then i found out this little beauty:

                            public void errorCatcher(string msg)
                            {
                            RegistryKey key = Registry.CurrentUser.OpenSubKey(KEY_NAME_START + @"\errors", true);
                            if (key != null)
                            {
                            key.SetValue(DateTime.Now.ToString(), msg);
                            key.Close();
                            }
                            }

                            and every method in the system had the same reference in it's catch clause:

                                    catch (Exception exception)
                                    {
                                        errorCatcher(exception.ToString());
                                        return "";
                                    }
                            

                            I took me two weeks to rewrite the whole thing, throw away 90% of the code, and roll out a bug free system. (I still keep the original code as proof, as no one believes me when i tell people about it.)

                            R Offline
                            R Offline
                            Rage
                            wrote on last edited by
                            #13

                            I can imagine a few situations in which this could actually make sense. But of course, it is not meant to be permanently turned on, especially if a lot of exceptions are caught.

                            ~RaGE();

                            I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                            G 1 Reply Last reply
                            0
                            • R Rage

                              I can imagine a few situations in which this could actually make sense. But of course, it is not meant to be permanently turned on, especially if a lot of exceptions are caught.

                              ~RaGE();

                              I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                              G Offline
                              G Offline
                              Guy Lavi
                              wrote on last edited by
                              #14

                              I can't. Name one.

                              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