Quote from: OpenGeek at Jul 27, 2008, 09:45 AM
Regardless, I don’t see why you can’t just maintain two source branches, one for Revolution and one for legacy. Then you can optimize and tailor those versions to the platform in whatever ways work best for that component. That’s what Subversion is made for IMHO, and that’s how I would prefer the "reference" components be maintained by the team.
Version checking is for upgrade or other utility scripts, not production code, but again, these are my opinions...
Your opinions carry a whole lot of weight with all of us.
I can certainly maintain seperate versions in SVN, but there’s a price for that, especially when dealing with several different snippets. It means that when someone suggests a good improvement, I have to change two separate files, test them separately, put two new versions in the repository, and explain the changes twice on the respective repository pages.
When the only difference between the two versions is a few lines of code in one spot and the performance hit is the time it takes to load those few lines and execute one if statement, I’m having a hard time with the cost-benefit analysis for maintaining the two separate versions. (I’m definitely planning to have the Revolution code section optimized for Revolution.)
As for Susan’s idea, I’d rather maintain one file than three.
I’m still willing to be convinced that separate files are the way to go and there are probably issues I’m not thinking of.