Reusable Code
-
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
-
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
Ummm... no? I'm guessing either nothing or something catastrophic.
-
Ummm... no? I'm guessing either nothing or something catastrophic.
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
-
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
Ah! A Visual Studio Code snippet!
-
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
Ah, now that makes sense... kinda.
-
Ah, now that makes sense... kinda.
-
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
Maybe he should use the "C preprocessor" with his BASIC code.
-
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
Very nice resusable code
Regards, Sylvester G sylvester_g_m@yahoo.com