im just soliciting opinions/advices. Like we have this really large PHP code base, by large these are what i meant:
over 500 tables over 4000 files - action, displays & templates. over 1,000,000 lines of code - this software spans more than 8 years already.
So many deprecated, duplicated code all over the place, and so many hacks.
I want to be able to still run the software, while parts of it are being migrated to rails.
So it will be running in hybrid mode, that is, both PHP and rails at the same time. Parts of the software that hav been migrated already, will start using the Rails version.
I suppose my idea is:
I expect such a thing is going to be toff. Anyway let me try to give some advice.
While I'm far from convinced that migrating from PHP to Ruby will make your life any easier, I think there is a very strong case for mapping out the dependencies within the current codebase.
That will at least allow you to divide the exercise up into discrete chunks. Note that in some cases it may be a good idea to rewrite the PHP / DB as an interim measure instead of going directly to Ruby, e.g.
If there is scope for amalgamating several database tables - then do so - and create views on the resulting table named according to the replaced table.
If needed, try to re-implement every entry point PHP script as 'index.php' in its own directory - and always reference the script by the directory. That way you can transparently start replacing components written in a different language.