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. Monday morning sucks

Monday morning sucks

Scheduled Pinned Locked Moved The Lounge
question
34 Posts 18 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.
  • N Nagy Vilmos

    Sucks to be you!

    J Offline
    J Offline
    Jorgen Andersson
    wrote on last edited by
    #14

    Well you know everything about fixing old legacy code, don't you. :) At least I know that no one else has touched the code I need to fix. I'm even happy enough to know that it's MS that broke it, not me. That said, I'm still having a load of forehead slapping moments here. :sigh:

    Wrong is evil and must be defeated. - Jeff Ello[^]

    N 1 Reply Last reply
    0
    • S SoMad

      Or you find out the hard way, that your dentist moonlights as a proctologist :-\ Soren Madsen

      "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

      D Offline
      D Offline
      DeathByChocolate
      wrote on last edited by
      #15

      SoMad wrote:

      that your dentist moonlights as a proctologist

      ... 'moonlights' .... that must be handy for him! ;)

      "State acheived after eating too many chocolate-covered coconut bars - bountiful" Chris C-B

      S 1 Reply Last reply
      0
      • J Jorgen Andersson

        Well you know everything about fixing old legacy code, don't you. :) At least I know that no one else has touched the code I need to fix. I'm even happy enough to know that it's MS that broke it, not me. That said, I'm still having a load of forehead slapping moments here. :sigh:

        Wrong is evil and must be defeated. - Jeff Ello[^]

        N Offline
        N Offline
        Nagy Vilmos
        wrote on last edited by
        #16

        As you get older, you get more legacy.

        1 Reply Last reply
        0
        • D DeathByChocolate

          SoMad wrote:

          that your dentist moonlights as a proctologist

          ... 'moonlights' .... that must be handy for him! ;)

          "State acheived after eating too many chocolate-covered coconut bars - bountiful" Chris C-B

          S Offline
          S Offline
          SoMad
          wrote on last edited by
          #17

          Well, as a proctologist he needs to be handy :laugh:

          "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

          D 1 Reply Last reply
          0
          • S SoMad

            Well, as a proctologist he needs to be handy :laugh:

            "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

            D Offline
            D Offline
            DeathByChocolate
            wrote on last edited by
            #18

            You've put your finger on it there! ;)

            "State acheived after eating too many chocolate-covered coconut bars - bountiful" Chris C-B

            S 1 Reply Last reply
            0
            • D DeathByChocolate

              You've put your finger on it there! ;)

              "State acheived after eating too many chocolate-covered coconut bars - bountiful" Chris C-B

              S Offline
              S Offline
              SoMad
              wrote on last edited by
              #19

              Yeah, thanks for offering me that opening. :-\ And don't accept any chocolates he might offer you. ;) [I'll get my coat] Soren Madsen

              "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

              D J 2 Replies Last reply
              0
              • S SoMad

                Yeah, thanks for offering me that opening. :-\ And don't accept any chocolates he might offer you. ;) [I'll get my coat] Soren Madsen

                "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                D Offline
                D Offline
                DeathByChocolate
                wrote on last edited by
                #20

                X| X| X|

                "State acheived after eating too many chocolate-covered coconut bars - bountiful" Chris C-B

                1 Reply Last reply
                0
                • D Dycz

                  Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?

                  S Offline
                  S Offline
                  S Houghtelin
                  wrote on last edited by
                  #21

                  I know what you mean, there's someone from our branch in Italy who's been bad mouthing some code I wrote back in '06. All I can say is, if they can do better, they can write their own bad code...

                  It was broke, so I fixed it.

                  D 1 Reply Last reply
                  0
                  • S S Houghtelin

                    I know what you mean, there's someone from our branch in Italy who's been bad mouthing some code I wrote back in '06. All I can say is, if they can do better, they can write their own bad code...

                    It was broke, so I fixed it.

                    D Offline
                    D Offline
                    Dycz
                    wrote on last edited by
                    #22

                    Well, I'm not saying the intern's code from 2006 is necessarily worst than mine: I'm just saying that, supposedly, in 2014 I have more instruments than what he/she had back in 2006 and, also, it might be the case that stuff he/she used at the time is not working anymore, got lost, et cetera... Also, my IDE is going to complain a lot about this 2006 project, before letting me actually edit it. Software simply gets old (and ugly), it's not the coders' faults.

                    S 1 Reply Last reply
                    0
                    • D Dycz

                      Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?

                      T Offline
                      T Offline
                      Tom Deketelaere
                      wrote on last edited by
                      #23

                      No idea if it's worse but: I'm trying to wrap my head around mountains of spaghetti code written by a ex-colleague in order to try and fix the mountain off bugs in it, and all of that after getting only 1 hour of sleep last night (for some reason I just couldn't sleep). (Been trying to get my boss to agree to a full rewrite but no success as of yet)

                      D 1 Reply Last reply
                      0
                      • T Tom Deketelaere

                        No idea if it's worse but: I'm trying to wrap my head around mountains of spaghetti code written by a ex-colleague in order to try and fix the mountain off bugs in it, and all of that after getting only 1 hour of sleep last night (for some reason I just couldn't sleep). (Been trying to get my boss to agree to a full rewrite but no success as of yet)

                        D Offline
                        D Offline
                        Dycz
                        wrote on last edited by
                        #24

                        I guess he/she left no comments and no readable code, right? We're in the same boat, more or less :)

                        T 1 Reply Last reply
                        0
                        • D Dycz

                          I guess he/she left no comments and no readable code, right? We're in the same boat, more or less :)

                          T Offline
                          T Offline
                          Tom Deketelaere
                          wrote on last edited by
                          #25

                          I wish there where comments. To give you a idea at how bad this is (you can compare to your own situation then :) ) - A method to calculate all the days between 2 given dates that would run for 3 hours without actually doing something (hint year switch mend the loop went on until an integer overflow happened, not sure how to explain it in English correctly but you probably get the idea) - A class that inherits from another class that inherits from another class that... (about 5 or 6 layers deep). - A helper class that has only 2 or 3 methods in it but is 5000+ lines code. - A function called Convert... that actually updates the database (take a guess at how long it took me to find that bug) - Update = delete + insert (without transactions) (got most of that out of it (I hope)) - A function called Add... that actually doesn't do adds (well not only adds, also updates (see previous) and deletes) And then I'm not even touching the fact that EF was used in totally wrong way resulting in massive memory usage (8gig+ to get only 50 records) (got most of that out of it as well I think) So yeah it's been a long 8months cleaning this mess of a code up and the mess it made in the db's. (and still a long way to go I'm afraid)

                          D 1 Reply Last reply
                          0
                          • S SoMad

                            Yeah, thanks for offering me that opening. :-\ And don't accept any chocolates he might offer you. ;) [I'll get my coat] Soren Madsen

                            "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                            J Offline
                            J Offline
                            Johnny J
                            wrote on last edited by
                            #26

                            SoMad wrote:

                            I'll get my coat

                            Might as well, you're just making an ass of yourself here, it would seem... ;P

                            Anything that is unrelated to elephants is irrelephant
                            Anonymous
                            -----
                            The problem with quotes on the internet is that you can never tell if they're genuine
                            Winston Churchill, 1944
                            -----
                            I'd just like a chance to prove that money can't make me happy.
                            Me, all the time

                            1 Reply Last reply
                            0
                            • S SoMad

                              Time machine? ;)

                              "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                              D Offline
                              D Offline
                              Dinesh V Kumar
                              wrote on last edited by
                              #27

                              it would have been better than my machine!! :-D

                              1 Reply Last reply
                              0
                              • D Dycz

                                Well, I'm not saying the intern's code from 2006 is necessarily worst than mine: I'm just saying that, supposedly, in 2014 I have more instruments than what he/she had back in 2006 and, also, it might be the case that stuff he/she used at the time is not working anymore, got lost, et cetera... Also, my IDE is going to complain a lot about this 2006 project, before letting me actually edit it. Software simply gets old (and ugly), it's not the coders' faults.

                                S Offline
                                S Offline
                                S Houghtelin
                                wrote on last edited by
                                #28

                                Dycz wrote:

                                ...simply gets old (and ugly)

                                I think you just described about 3/4 of the programmers/developers that I know. :laugh:

                                It was broke, so I fixed it.

                                1 Reply Last reply
                                0
                                • T Tom Deketelaere

                                  I wish there where comments. To give you a idea at how bad this is (you can compare to your own situation then :) ) - A method to calculate all the days between 2 given dates that would run for 3 hours without actually doing something (hint year switch mend the loop went on until an integer overflow happened, not sure how to explain it in English correctly but you probably get the idea) - A class that inherits from another class that inherits from another class that... (about 5 or 6 layers deep). - A helper class that has only 2 or 3 methods in it but is 5000+ lines code. - A function called Convert... that actually updates the database (take a guess at how long it took me to find that bug) - Update = delete + insert (without transactions) (got most of that out of it (I hope)) - A function called Add... that actually doesn't do adds (well not only adds, also updates (see previous) and deletes) And then I'm not even touching the fact that EF was used in totally wrong way resulting in massive memory usage (8gig+ to get only 50 records) (got most of that out of it as well I think) So yeah it's been a long 8months cleaning this mess of a code up and the mess it made in the db's. (and still a long way to go I'm afraid)

                                  D Offline
                                  D Offline
                                  Dycz
                                  wrote on last edited by
                                  #29

                                  ...I guess I've never seen an integer overflow really happening... really sounds like 8 months in hell!! Good luck

                                  T 1 Reply Last reply
                                  0
                                  • D Dycz

                                    ...I guess I've never seen an integer overflow really happening... really sounds like 8 months in hell!! Good luck

                                    T Offline
                                    T Offline
                                    Tom Deketelaere
                                    wrote on last edited by
                                    #30

                                    Dycz wrote:

                                    ..I guess I've never seen an integer overflow really happening...

                                    Neither did I until that day.

                                    Dycz wrote:

                                    really sounds like 8 months in hell!!

                                    Yep, and still a few more to go, but at least I got it semi-stable and semi-usable (a year after it's initial release)

                                    Dycz wrote:

                                    Good luck

                                    Thanks, same to you :)

                                    1 Reply Last reply
                                    0
                                    • D Dycz

                                      Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?

                                      J Offline
                                      J Offline
                                      jeron1
                                      wrote on last edited by
                                      #31

                                      Looking at HC6811 assembler written in the mid 90's. Actually it's kinda fun, I must be coming down with something.

                                      1 Reply Last reply
                                      0
                                      • D Dycz

                                        Yay!! Happy monday morning to everyone... I've just started my week editing code written by an intern back in 2006... Is there someone out there who's starting his/her week worst than me?

                                        R Offline
                                        R Offline
                                        Ravi Bhavnani
                                        wrote on last edited by
                                        #32

                                        Dycz wrote:

                                        I've just started my week editing rewriting code written by an intern back in 2006...

                                        FTFY :-D /ravi

                                        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                        D 1 Reply Last reply
                                        0
                                        • R Ravi Bhavnani

                                          Dycz wrote:

                                          I've just started my week editing rewriting code written by an intern back in 2006...

                                          FTFY :-D /ravi

                                          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                          D Offline
                                          D Offline
                                          Dycz
                                          wrote on last edited by
                                          #33

                                          yes, it's exactly what I'm doing now... turning winforms into wpf and XMLs into sqlite database records ;)

                                          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