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. Reworking somebody else's code

Reworking somebody else's code

Scheduled Pinned Locked Moved The Lounge
databasesql-serversysadminquestion
11 Posts 8 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.
  • L Offline
    L Offline
    lmaycock
    wrote on last edited by
    #1

    ...is there anything more frustrating in a developer's life? For the past week or so I've been modifying a third party's Excel VBA to run against SQL Server rather than Access and constantly find myself asking "why the #### have you done this?!" It's a good thing the author isn't in the same office else I may have ended up swinging at him. :mad:

    L P 2 Replies Last reply
    0
    • L lmaycock

      ...is there anything more frustrating in a developer's life? For the past week or so I've been modifying a third party's Excel VBA to run against SQL Server rather than Access and constantly find myself asking "why the #### have you done this?!" It's a good thing the author isn't in the same office else I may have ended up swinging at him. :mad:

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

      I feel your pain, I'm currently trying to rework somebodies else's VB code - and they didn't believe in comments. :mad:

      OriginalGriffO L 2 Replies Last reply
      0
      • L Lost User

        I feel your pain, I'm currently trying to rework somebodies else's VB code - and they didn't believe in comments. :mad:

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

        Better no comments than wrong comments... (And yes, I do believe in comments)

        This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

        "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

        1 Reply Last reply
        0
        • L Lost User

          I feel your pain, I'm currently trying to rework somebodies else's VB code - and they didn't believe in comments. :mad:

          L Offline
          L Offline
          lmaycock
          wrote on last edited by
          #4

          This one's just plain mad. Quick pseudocode: Sub DeleteRecord 1) Copy entire database table into Variant array 2) DROP TABLE 3) CREATE TABLE 4) Write everything back apart from the record we don't need

          N S E 3 Replies Last reply
          0
          • L lmaycock

            This one's just plain mad. Quick pseudocode: Sub DeleteRecord 1) Copy entire database table into Variant array 2) DROP TABLE 3) CREATE TABLE 4) Write everything back apart from the record we don't need

            N Offline
            N Offline
            Nicholas Marty
            wrote on last edited by
            #5

            Well... It works.. So what's your problem with that way :laugh:

            1 Reply Last reply
            0
            • L lmaycock

              This one's just plain mad. Quick pseudocode: Sub DeleteRecord 1) Copy entire database table into Variant array 2) DROP TABLE 3) CREATE TABLE 4) Write everything back apart from the record we don't need

              S Offline
              S Offline
              Septimus Hedgehog
              wrote on last edited by
              #6

              Classic. What happens when a record is queried? Is the entire database backed up, deleted, recreated without the unwanted records and then rolled back to what it was pre-query?

              If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

              L 1 Reply Last reply
              0
              • L lmaycock

                This one's just plain mad. Quick pseudocode: Sub DeleteRecord 1) Copy entire database table into Variant array 2) DROP TABLE 3) CREATE TABLE 4) Write everything back apart from the record we don't need

                E Offline
                E Offline
                ExcellentOrg
                wrote on last edited by
                #7

                Can you not re-badge this is "Database Memory Leak Detector" and "Hard Drive Stress Tester" feature?

                1 Reply Last reply
                0
                • S Septimus Hedgehog

                  Classic. What happens when a record is queried? Is the entire database backed up, deleted, recreated without the unwanted records and then rolled back to what it was pre-query?

                  If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

                  L Offline
                  L Offline
                  lmaycock
                  wrote on last edited by
                  #8

                  No, in order to do that it also copies the entire table into a worksheet, then does a lookup from there! (I can't be bothered to even look into what that's used for.)

                  S 1 Reply Last reply
                  0
                  • L lmaycock

                    No, in order to do that it also copies the entire table into a worksheet, then does a lookup from there! (I can't be bothered to even look into what that's used for.)

                    S Offline
                    S Offline
                    Septimus Hedgehog
                    wrote on last edited by
                    #9

                    Perhaps the developer was playing it safe. You can never be too careful. :laugh:

                    If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

                    1 Reply Last reply
                    0
                    • L lmaycock

                      ...is there anything more frustrating in a developer's life? For the past week or so I've been modifying a third party's Excel VBA to run against SQL Server rather than Access and constantly find myself asking "why the #### have you done this?!" It's a good thing the author isn't in the same office else I may have ended up swinging at him. :mad:

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

                      Reworking your own code, half of your brain is busy making excuses.

                      ORDER BY what user wants

                      C 1 Reply Last reply
                      0
                      • P peterchen

                        Reworking your own code, half of your brain is busy making excuses.

                        ORDER BY what user wants

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #11

                        :laugh:

                        Veni, vidi, vici.

                        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