Handling Modified Source Code - An Open Question

Handling Modified Source Code - An Open Question

Postby xProgrammer » Mon Jul 14, 2008 11:48 am

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
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby Antonio Linares » Tue Jul 15, 2008 5:23 pm

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
Antonio Linares
Site Admin
 
Posts: 41286
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby xProgrammer » Wed Jul 16, 2008 10:30 am

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)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 6 guests