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. How would you do that?

How would you do that?

Scheduled Pinned Locked Moved The Lounge
databasedesigntutorialquestiondiscussion
5 Posts 3 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.
  • H Offline
    H Offline
    Hiro_Protagonist_
    wrote on last edited by
    #1

    hi, for the next release my company wants me to do something which changes a lot in the existing object model of the product i am working on. That would take about 4 weeks to do that cleanly. Don't ask why it takes that long, let's say it is "legacy" code. Old VB objectmodel/ UIs with a lot of things you won't see. Therefore the idea came up to do the something quick and dirty: Just change the information in the database and restart the application via a sqlscript. As all the other solutions which must be done in a very short timeframe also this one shall only stay until the functionality is available in the objectmodel. (I wonder if this solution will last for ever when it is available once :-) ) How to do that: 1. Create a stored procedure a) which can be used by the consultants and can be taken away when the objectmodel is capable of the feature b) and create a (very small) user interface and throw both away when the objectmodel is capable of the feature. (and don't tell the consultants that this function is available at all) 2. create a batch file which can be called with parameters to do the job All possibilities arent good solutions to me..but anyway it has to be done. At least I prefer 1.b as it seems to be the only solution which that the user doesn't have to switch to another application. On the other hand I guess if this works nobody will invest the time do to the clean solution as this works. What do you think? da5id

    L R 2 Replies Last reply
    0
    • H Hiro_Protagonist_

      hi, for the next release my company wants me to do something which changes a lot in the existing object model of the product i am working on. That would take about 4 weeks to do that cleanly. Don't ask why it takes that long, let's say it is "legacy" code. Old VB objectmodel/ UIs with a lot of things you won't see. Therefore the idea came up to do the something quick and dirty: Just change the information in the database and restart the application via a sqlscript. As all the other solutions which must be done in a very short timeframe also this one shall only stay until the functionality is available in the objectmodel. (I wonder if this solution will last for ever when it is available once :-) ) How to do that: 1. Create a stored procedure a) which can be used by the consultants and can be taken away when the objectmodel is capable of the feature b) and create a (very small) user interface and throw both away when the objectmodel is capable of the feature. (and don't tell the consultants that this function is available at all) 2. create a batch file which can be called with parameters to do the job All possibilities arent good solutions to me..but anyway it has to be done. At least I prefer 1.b as it seems to be the only solution which that the user doesn't have to switch to another application. On the other hand I guess if this works nobody will invest the time do to the clean solution as this works. What do you think? da5id

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

      I would try the SQL/ Database forum.

      Visit http://www.notreadytogiveup.com/[^] and do something special today.

      H 1 Reply Last reply
      0
      • L Lost User

        I would try the SQL/ Database forum.

        Visit http://www.notreadytogiveup.com/[^] and do something special today.

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

        yes, obviously. :-) The discussion of the procedure of doing something (senseless) like this was also something I wanted to know what people think.

        1 Reply Last reply
        0
        • H Hiro_Protagonist_

          hi, for the next release my company wants me to do something which changes a lot in the existing object model of the product i am working on. That would take about 4 weeks to do that cleanly. Don't ask why it takes that long, let's say it is "legacy" code. Old VB objectmodel/ UIs with a lot of things you won't see. Therefore the idea came up to do the something quick and dirty: Just change the information in the database and restart the application via a sqlscript. As all the other solutions which must be done in a very short timeframe also this one shall only stay until the functionality is available in the objectmodel. (I wonder if this solution will last for ever when it is available once :-) ) How to do that: 1. Create a stored procedure a) which can be used by the consultants and can be taken away when the objectmodel is capable of the feature b) and create a (very small) user interface and throw both away when the objectmodel is capable of the feature. (and don't tell the consultants that this function is available at all) 2. create a batch file which can be called with parameters to do the job All possibilities arent good solutions to me..but anyway it has to be done. At least I prefer 1.b as it seems to be the only solution which that the user doesn't have to switch to another application. On the other hand I guess if this works nobody will invest the time do to the clean solution as this works. What do you think? da5id

          R Offline
          R Offline
          Rob Graham
          wrote on last edited by
          #4

          Bad stuff lingers forever. Even if you implement the change correctly later, you will end up maintaining the "quick and dirty" solution forever. The right answer is to do it correctly the first and only time. The 4 week wait will be worth it.

          H 1 Reply Last reply
          0
          • R Rob Graham

            Bad stuff lingers forever. Even if you implement the change correctly later, you will end up maintaining the "quick and dirty" solution forever. The right answer is to do it correctly the first and only time. The 4 week wait will be worth it.

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

            yes, that was exactly what I told them. I now agreed to the compromise, that the quick and dirty will be hard bind to the version it is built for. That means that this tool will not work in previous or later versions. If the tool must exist in a later version it must be discussed again. that's sounds reasonable to me.

            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