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

WHEW! !

Scheduled Pinned Locked Moved The Lounge
csharpcareerjavascriptasp-netannouncement
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.
  • G gavindon

    Ok, as many of you know I'm very new to this new career and am working at my first good job doing it. I have been working on an update to existing applications that were written by a self taught programmer. Now he wasn't bad but there are some issues with his style of coding that Ive had to work through. Add to that, he is no longer here or available. there are about 5 comments in 40,000 lines of code, and he seemed to like obscure names for variables, functions and whatnot. Its an ASP.net app that is full of javascript for things that could have been handled perfectly fine with c#'s built in items, and on the list goes. As you can imagine, its been a tad bit of a headache figuring out what he intended with any particular piece of code. My first major update went live and so far.. seems to be working as intended and did not break anything else. WHEW! ! looks like I get to keep my job for a bit longer yet :-D Not to mention it makes me feel a bit more like a real programmer to have successfully completed this update. Now on to the next one ! ! ! !

    Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

    K Offline
    K Offline
    Keith Barrow
    wrote on last edited by
    #10

    gavindon wrote:

    there are about 5 comments in 40,000 lines of code, and he seemed to like obscure names for variables, functions and whatnot

    Job Security.

    Sort of a cross between Lawrence of Arabia and Dilbert.[^]
    -Or-
    A Dead ringer for Kate Winslett[^]

    S G 2 Replies Last reply
    0
    • K Keith Barrow

      gavindon wrote:

      there are about 5 comments in 40,000 lines of code, and he seemed to like obscure names for variables, functions and whatnot

      Job Security.

      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
      -Or-
      A Dead ringer for Kate Winslett[^]

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #11

      :laugh: :thumbsup:

      -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

      1 Reply Last reply
      0
      • K Keith Barrow

        gavindon wrote:

        there are about 5 comments in 40,000 lines of code, and he seemed to like obscure names for variables, functions and whatnot

        Job Security.

        Sort of a cross between Lawrence of Arabia and Dilbert.[^]
        -Or-
        A Dead ringer for Kate Winslett[^]

        G Offline
        G Offline
        gavindon
        wrote on last edited by
        #12

        good point, but that only holds so far as I can keep unraveling this spaghetti logic. Functions repeated well, repeatedly, instead of creating an overloaded function and just calling it when needed, he rewrote the same function 15 times(in the same class/page code behind). But only two versions of it.... this was done with multiple functions, over and over and over.... and a couple of them are long as hell... lol

        Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

        K 1 Reply Last reply
        0
        • S Slacker007

          gavindon wrote:

          seems to be working as intended and did not break anything else.

          First timer's luck. Wait till you get more experienced...you'll be fucking everything up...trust me. ;)

          -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #13

          The job progression: New programmer: Takes it safe, but still goes through code, trying to understand it and even making some minor optimizations, argues that much of code should be refactored. Takes months. Experienced programmer: Rewrites everything. Extends schedule rediculously. Users complain that software doesn't work the way it used to. Takes years. Truly senior programmer: Fixes the specific bug, leaves the rest of the crap alone, including the horrible formatting, bad variable names and no comments, doesn't care how it works. Takes minutes.

          G Z 2 Replies Last reply
          0
          • J Joe Woodbury

            The job progression: New programmer: Takes it safe, but still goes through code, trying to understand it and even making some minor optimizations, argues that much of code should be refactored. Takes months. Experienced programmer: Rewrites everything. Extends schedule rediculously. Users complain that software doesn't work the way it used to. Takes years. Truly senior programmer: Fixes the specific bug, leaves the rest of the crap alone, including the horrible formatting, bad variable names and no comments, doesn't care how it works. Takes minutes.

            G Offline
            G Offline
            gavindon
            wrote on last edited by
            #14

            well I'm not senior but I already planned on the third route , fix the bugs and roll on. But it does take more than minutes for my newbie brain to unravel all this crap... but I will simply fix things as they come up, and try to keep to better practices when I write new additions to the project. having said that, where do you draw the line at rebuilding something vs try to patch in new code in with the old spaghetti? That's part of my issues. I see a better(and much simpler) way to do some things, but to do that I would have to do some major gutting back down the line. But simply tying in some new code to that crap is almost as bad... :sigh: Guess I will take it aline of code at a time and just do what seems best at the moment depending on deadline for new items vs amount of rework etc..

            Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

            D 1 Reply Last reply
            0
            • J Joe Woodbury

              The job progression: New programmer: Takes it safe, but still goes through code, trying to understand it and even making some minor optimizations, argues that much of code should be refactored. Takes months. Experienced programmer: Rewrites everything. Extends schedule rediculously. Users complain that software doesn't work the way it used to. Takes years. Truly senior programmer: Fixes the specific bug, leaves the rest of the crap alone, including the horrible formatting, bad variable names and no comments, doesn't care how it works. Takes minutes.

              Z Offline
              Z Offline
              zenstain
              wrote on last edited by
              #15

              Lmao! It's almost like you peer over my shoulder at work.

              1 Reply Last reply
              0
              • G gavindon

                good point, but that only holds so far as I can keep unraveling this spaghetti logic. Functions repeated well, repeatedly, instead of creating an overloaded function and just calling it when needed, he rewrote the same function 15 times(in the same class/page code behind). But only two versions of it.... this was done with multiple functions, over and over and over.... and a couple of them are long as hell... lol

                Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                K Offline
                K Offline
                Keith Barrow
                wrote on last edited by
                #16

                Not yours, his! http://www.catb.org/jargon/html/J/job-security.html[^] ;)

                Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                -Or-
                A Dead ringer for Kate Winslett[^]

                G 1 Reply Last reply
                0
                • K Keith Barrow

                  Not yours, his! http://www.catb.org/jargon/html/J/job-security.html[^] ;)

                  Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                  -Or-
                  A Dead ringer for Kate Winslett[^]

                  G Offline
                  G Offline
                  gavindon
                  wrote on last edited by
                  #17

                  lol didn't work then, hes long gone, hence why I'm now here trying to read his mind.

                  Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                  1 Reply Last reply
                  0
                  • G gavindon

                    Ok, as many of you know I'm very new to this new career and am working at my first good job doing it. I have been working on an update to existing applications that were written by a self taught programmer. Now he wasn't bad but there are some issues with his style of coding that Ive had to work through. Add to that, he is no longer here or available. there are about 5 comments in 40,000 lines of code, and he seemed to like obscure names for variables, functions and whatnot. Its an ASP.net app that is full of javascript for things that could have been handled perfectly fine with c#'s built in items, and on the list goes. As you can imagine, its been a tad bit of a headache figuring out what he intended with any particular piece of code. My first major update went live and so far.. seems to be working as intended and did not break anything else. WHEW! ! looks like I get to keep my job for a bit longer yet :-D Not to mention it makes me feel a bit more like a real programmer to have successfully completed this update. Now on to the next one ! ! ! !

                    Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

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

                    gavindon wrote:

                    did not break anything

                    If it does break, it was design flaw that needed fixing annyway. Good job! Now the honeymoon is over.:)

                    It was broke, so I fixed it.

                    1 Reply Last reply
                    0
                    • G gavindon

                      well I'm not senior but I already planned on the third route , fix the bugs and roll on. But it does take more than minutes for my newbie brain to unravel all this crap... but I will simply fix things as they come up, and try to keep to better practices when I write new additions to the project. having said that, where do you draw the line at rebuilding something vs try to patch in new code in with the old spaghetti? That's part of my issues. I see a better(and much simpler) way to do some things, but to do that I would have to do some major gutting back down the line. But simply tying in some new code to that crap is almost as bad... :sigh: Guess I will take it aline of code at a time and just do what seems best at the moment depending on deadline for new items vs amount of rework etc..

                      Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                      D Offline
                      D Offline
                      Dan Neely
                      wrote on last edited by
                      #19

                      When the aggregate amount of time needed to implement all the of patches you need to make to part of the mess approaches the amount of time needed to rewrite the section from scratch. Alternately when the mess becomes a performance bottleneck that can be fixed with a rewrite.

                      3x12=36 2x12=24 1x12=12 0x12=18

                      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