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. I have to confess, I cannot move, I am scared.

I have to confess, I cannot move, I am scared.

Scheduled Pinned Locked Moved The Lounge
architecturequestion
33 Posts 15 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.
  • W wizardzz

    On the other side of it, I'm sick of explaining to low level developers why we have the structure we do, when sometimes a quick custom script can be hacked together. Apparently, "It makes maintainability, support, and adding functionality easier when you use my framework." and "No poor soul wants to maintain your hacked script at 2am because your job failed." is a mute point. I hope getting some of their projects out to production and forcing them to work support on them helps, but I'm still not sure they will see the point until they do this for years.

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #10

    wizardzz wrote:

    is a mute point

    I suspect making a point which is unhearable would be moot.

    Thou mewling ill-breeding pignut!

    W K 2 Replies Last reply
    0
    • H Hiro_Protagonist_

      The good thing is that it does not matter where you begin. Any part is just as good as another. That's true. But I really hate to develop like this. Even in prototypes I have a clean structure due to mess will always keep me from being fast.

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

      I have had enough work like this. I can't tell you what such people think they are doing or why they are always allowed to go on like that. Over time I developed a sadistic pleasure in tearing the code apart and then rebuilding it in a more sane matter. Usually began by creating real data access and application logic layers and then fill in new classes andmethods one at a time. Removing the old methods quickly revealed all locations that now needed to make use of those new layers. Ok, it usually was not that easy and over time you will have rewritten the whole thing, leaving the presentation layer until last. It's much funnier once the bosses notice what you are doing.

      H 1 Reply Last reply
      0
      • A AspDotNetDev

        wizardzz wrote:

        is a mute point

        I suspect making a point which is unhearable would be moot.

        Thou mewling ill-breeding pignut!

        W Offline
        W Offline
        wizardzz
        wrote on last edited by
        #12

        Says you. Isn't odd though, being a developer for so long, I tend to want to use keywords that I use in code, in real life, even when inappropriate. IE: immutable

        A 1 Reply Last reply
        0
        • W wizardzz

          Says you. Isn't odd though, being a developer for so long, I tend to want to use keywords that I use in code, in real life, even when inappropriate. IE: immutable

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #13

          Perfectly typical. I do that too. For example, when throwing something away, I sometimes think to myself, "time to delete that."

          Thou mewling ill-breeding pignut!

          W 1 Reply Last reply
          0
          • A AspDotNetDev

            Perfectly typical. I do that too. For example, when throwing something away, I sometimes think to myself, "time to delete that."

            Thou mewling ill-breeding pignut!

            W Offline
            W Offline
            wizardzz
            wrote on last edited by
            #14

            Extra dork points. Can you replicate this for me? (meaning photocopy).

            1 Reply Last reply
            0
            • H Hiro_Protagonist_

              guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #15

              Hiro_Protagonist_ wrote:

              I found one control that has 15.000 (fifteen thousand?) lines of code

              Just think of how many years you will be able to tell the story though.

              H 1 Reply Last reply
              0
              • C Chris Meech

                It's odd how thirty years ago, that's how things worked. When you first started in an IT shop, you were forced to do support and maintenance, before you did any development. I know I'm an old fart, but there was a good reason for this. :)

                Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #16

                Chris Meech wrote:

                but there was a good reason for this

                And the reason was because computers were very expensive, ran very slowly and input was via punch cards. This made it not only very hard to use but very hard to learn how to use one.

                1 Reply Last reply
                0
                • R realJSOP

                  ...because they outsource new development, and then hire a skeleton staff of local programmers to perform maintenance on the crappy code they bought from overseas.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  H Offline
                  H Offline
                  Hiro_Protagonist_
                  wrote on last edited by
                  #17

                  That the way it works! The KPIs don't allow to be calculated on years and they look dramatically better when the stuff is not payed directly but indirectly. Quality doesn't matter in the first run, only time and direct costs. Afterwards everyone can complain about the IT why maintenance does take that long and is so inefficient. Unbelievable.

                  1 Reply Last reply
                  0
                  • J jschell

                    Hiro_Protagonist_ wrote:

                    I found one control that has 15.000 (fifteen thousand?) lines of code

                    Just think of how many years you will be able to tell the story though.

                    H Offline
                    H Offline
                    Hiro_Protagonist_
                    wrote on last edited by
                    #18

                    hehe, yes. The worst things are always good to laugh about later on. But still I cannot believe it, when I look onto it. I had several times to think about how many classes and how many good documented lines of code it would be if it have been implemented in a good manner. Having this size, I would think, it is better to just throw it away and do it again. :-) you're right! I am sure, I'll tell it again. :-)

                    1 Reply Last reply
                    0
                    • L Lost User

                      I have had enough work like this. I can't tell you what such people think they are doing or why they are always allowed to go on like that. Over time I developed a sadistic pleasure in tearing the code apart and then rebuilding it in a more sane matter. Usually began by creating real data access and application logic layers and then fill in new classes andmethods one at a time. Removing the old methods quickly revealed all locations that now needed to make use of those new layers. Ok, it usually was not that easy and over time you will have rewritten the whole thing, leaving the presentation layer until last. It's much funnier once the bosses notice what you are doing.

                      H Offline
                      H Offline
                      Hiro_Protagonist_
                      wrote on last edited by
                      #19

                      I had a review of my code with the main developer of this code. Back then I wondered why he was that silent when we walked through my stuff. He didn't have anything to criticize, nor he had any advices for doing something better. That should have taken me aback :-) I always do it like you said. Tear it apart, creating an environment where I am comfortable with. Normally with a lot of explanations afterwards why I did what for what reason. I do not need to love everybody nor everybody needs to like me. I love good code. That's why I do it. :-)

                      1 Reply Last reply
                      0
                      • H Hiro_Protagonist_

                        guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

                        S Offline
                        S Offline
                        Spoon Of Doom
                        wrote on last edited by
                        #20

                        Sounds like you wound up at my old employer :) I feel your pain.

                        1 Reply Last reply
                        0
                        • H Hiro_Protagonist_

                          guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

                          D Offline
                          D Offline
                          DanielSheets
                          wrote on last edited by
                          #21

                          Hiro_Protagonist_ wrote:

                          I found one control that has 15.000 (fifteen thousand?) lines of code.

                          I'm curious... What kind of control has that much code?

                          H 1 Reply Last reply
                          0
                          • H Hiro_Protagonist_

                            guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

                            R Offline
                            R Offline
                            RafagaX
                            wrote on last edited by
                            #22

                            Young developers are never scared :) (Yep, i'm one), one of my first jobs was to maintain an application that was right in the middle of being a great idea and a total mess, parts of it were well thought, other were overenginered solutions and others were simply hacky (yes, it had passed by several hands), it took me a while to get through (bless the debuggers), so in some way i understand your fear to touch that code, but i assure you will find your way too.

                            CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                            H 1 Reply Last reply
                            0
                            • D DanielSheets

                              Hiro_Protagonist_ wrote:

                              I found one control that has 15.000 (fifteen thousand?) lines of code.

                              I'm curious... What kind of control has that much code?

                              H Offline
                              H Offline
                              Hiro_Protagonist_
                              wrote on last edited by
                              #23

                              That's another story. It's a WPF control, the 15.000 lines are in the code behind. (Did I say that these facts are even hard to write down?) It represents a task pane in Excel where most of the functionality is configurable. I guess it's a perfect sample for beginners that they can check how good they can work with legacy code when there is no architectural thinking before coding at all. I still cannot believe it. :)

                              1 Reply Last reply
                              0
                              • R RafagaX

                                Young developers are never scared :) (Yep, i'm one), one of my first jobs was to maintain an application that was right in the middle of being a great idea and a total mess, parts of it were well thought, other were overenginered solutions and others were simply hacky (yes, it had passed by several hands), it took me a while to get through (bless the debuggers), so in some way i understand your fear to touch that code, but i assure you will find your way too.

                                CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                                H Offline
                                H Offline
                                Hiro_Protagonist_
                                wrote on last edited by
                                #24

                                Oh, don't get me wrong. I don't have any issues to touch it. I was just blown away because I didn't expect anything like this. It simply took ist time to get to work again, after seeing that stuff. :) It is totally okay that things are not perfect, I also expect if there is mostly readable code and I don't mind if I see rubbish. I certainly made enough mistakes by myself. It was just the dimension of rubbish that made me moveless and scared. :)

                                R 1 Reply Last reply
                                0
                                • H Hiro_Protagonist_

                                  guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

                                  T Offline
                                  T Offline
                                  thomas michaud
                                  wrote on last edited by
                                  #25

                                  Okay...I'm weird, I admit it. 1) 3rd party libs - I don't have a problem using them. I have a problem that the build script / Source Code Control doesn't include them. Having to go get them is bad. (You did fix this as you went forward, right?) 2) 15,000 lines for one control. Seems high, but I've seen worse....occassionally I have written worse. 3) Where do you start? Back to the build script. You do have Source Code Control (please tell me yes...if not, get Git and put it under Source Code Control - ANY Source Code Control) With Source Code Control and a consistent build process, you can begin to code fearlessly. (Your code may never be used, but you can start).

                                  H 1 Reply Last reply
                                  0
                                  • H Hiro_Protagonist_

                                    Oh, don't get me wrong. I don't have any issues to touch it. I was just blown away because I didn't expect anything like this. It simply took ist time to get to work again, after seeing that stuff. :) It is totally okay that things are not perfect, I also expect if there is mostly readable code and I don't mind if I see rubbish. I certainly made enough mistakes by myself. It was just the dimension of rubbish that made me moveless and scared. :)

                                    R Offline
                                    R Offline
                                    RafagaX
                                    wrote on last edited by
                                    #26

                                    I'm glad it was just the initial shock. ;)

                                    CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                                    1 Reply Last reply
                                    0
                                    • L Lost User

                                      Write good code and sooner or later your boss will not need you anymore. Write such a mess and you have work forever and they can't afford to fire you. The good thing is that it does not matter where you begin. Any part is just as good as another.

                                      S Offline
                                      S Offline
                                      SeattleC
                                      wrote on last edited by
                                      #27

                                      CDP1802 wrote:

                                      Write good code and sooner or later your boss will not need you anymore

                                      I used to have exactly this problem. If I did my job perfectly, I was completely invisible; servers didn't crash, the database didn't slow down, calls were routed correctly, network outages were promptly reported. The only time anyone remembered I worked there was when things went wrong. I even worked on a different floor than the rest of the company. I worked on a business management system that literally ran the whole company. When it was down, 80 people were sitting at their desks twiddling their thumbs. I used to say that I earned my whole salary on two days a year, if I got the system back on-line in an hour instead of a day, that's how much money the company saved. No pressure.

                                      1 Reply Last reply
                                      0
                                      • H Hiro_Protagonist_

                                        guys, recently I had to do some work on a different product. There are two developers who normally work on the product, but one is ill, one on vacation. Okay, new functionality has to be implemented, I've never saw that code. And I wished I never had. I found one control that has 15.000 (fifteen thousand?) lines of code. The whole code is a mess. I didn't get it compiling for hours due to different 3rd party libs that are used throughout the product. I never understood who anyone could do something like this. There are a lot of good reasons for a good, solid architecture, but the most important is to know that maintenance will not kill you. I guess these guys are tougher than me. You know you live, when it hurts. And these guys seem to really feel the life going through their veins. I just stare onto that code and ask myself where to begin. As I said. I cannot move. I am scared. (Anyone remembers this "one broken window" story from the pragmatic programmers? This was war here) nice weekend guys.

                                        C Offline
                                        C Offline
                                        crazedDotNetDev
                                        wrote on last edited by
                                        #28

                                        I feel your pain; I recently joined such a team. Fear invites loathing over for dinner and an eventual desire to throw one's computer from the roof. Ironically my mess is in the name of easy maintenance. Copy & pasting thousands of lines of poorly written code from the mid-2000s is perfectly maintainable. After all, it’s all the same! JOY!!! :(( To quote somebody’s signature: Mind bleach, please send mind bleach...

                                        1 Reply Last reply
                                        0
                                        • A AspDotNetDev

                                          wizardzz wrote:

                                          is a mute point

                                          I suspect making a point which is unhearable would be moot.

                                          Thou mewling ill-breeding pignut!

                                          K Offline
                                          K Offline
                                          KP Lee
                                          wrote on last edited by
                                          #29

                                          Man, I can report you, but I can't upvote you. Here's my virtual 5. (On mute vs. moot)

                                          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