Handling Modified Source Code - An Open Question

Post Reply
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Handling Modified Source Code - An Open Question

Post by xProgrammer »

I have made quite a few modifications to the FiveLinux classes. When I first started I just made them but as I needed a few more I surrounded them with comments. Now I am changing to using a #define and #ifdef's etc. which is possibly the best solution and probably how I should have started out in the first place. But I was wondering what others do.

Happy coding
xProgrammer
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Doug,

Some users inherits new classes from standard ones, and changes are placed in inherited ones.

Som users modify the standard ones, but then they are forced to include their changes in new builds.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

I did think about using inheritance but then I either have to write code that is very non-standard (@ <row>, <col> MyGET ....) or else I largely shift the update issue to modifying FiveLinux.ch. For an occasionally called class that might be ideal but probably not for one as fundamental as GET.

Regards
Doug
(xProgrammer)
Post Reply