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. Other Discussions
  3. The Weird and The Wonderful
  4. Reusable Code

Reusable Code

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharp
8 Posts 5 Posters 7 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.
  • K Offline
    K Offline
    kin3tik
    wrote on last edited by
    #1

    While converting an existing internal application from vb6 to c# i came accross the following : 'Reusable code -- Cut from here -- do some work here 'Reusable code -- Cut to here -- So you can guess what happens when you change something in that code block :doh: http://sourceforge.net/projects/banshee32

    P S 2 Replies Last reply
    0
    • K kin3tik

      While converting an existing internal application from vb6 to c# i came accross the following : 'Reusable code -- Cut from here -- do some work here 'Reusable code -- Cut to here -- So you can guess what happens when you change something in that code block :doh: http://sourceforge.net/projects/banshee32

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Ummm... no? I'm guessing either nothing or something catastrophic.

      D 1 Reply Last reply
      0
      • P PIEBALDconsult

        Ummm... no? I'm guessing either nothing or something catastrophic.

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        PIEBALDconsult wrote:

        something catastrophic

        Yes if you don't copy&paste modifications of that so called "reusable" code to all places where it was "reused". :D


        "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

        R P 2 Replies Last reply
        0
        • D DavidNohejl

          PIEBALDconsult wrote:

          something catastrophic

          Yes if you don't copy&paste modifications of that so called "reusable" code to all places where it was "reused". :D


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

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

          Ah! A Visual Studio Code snippet!

          1 Reply Last reply
          0
          • D DavidNohejl

            PIEBALDconsult wrote:

            something catastrophic

            Yes if you don't copy&paste modifications of that so called "reusable" code to all places where it was "reused". :D


            "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Ah, now that makes sense... kinda.

            K 1 Reply Last reply
            0
            • P PIEBALDconsult

              Ah, now that makes sense... kinda.

              K Offline
              K Offline
              kin3tik
              wrote on last edited by
              #6

              Some of those "snippets" were indeed pasted all over the place ... Imagine my surprise when the original author could not understand why his updates didnt work like it should

              P 1 Reply Last reply
              0
              • K kin3tik

                Some of those "snippets" were indeed pasted all over the place ... Imagine my surprise when the original author could not understand why his updates didnt work like it should

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                Maybe he should use the "C preprocessor" with his BASIC code.

                1 Reply Last reply
                0
                • K kin3tik

                  While converting an existing internal application from vb6 to c# i came accross the following : 'Reusable code -- Cut from here -- do some work here 'Reusable code -- Cut to here -- So you can guess what happens when you change something in that code block :doh: http://sourceforge.net/projects/banshee32

                  S Offline
                  S Offline
                  Sylvester george
                  wrote on last edited by
                  #8

                  Very nice resusable code

                  Regards, Sylvester G sylvester_g_m@yahoo.com

                  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