I'm working on a project and am considering a full rewrite in order to clean up bad code, improve security, and most importantly: make it easier to add new features going forward.
I'm knowledgable in PHP, and new to Ruby on Rails. I could reuse existing code with Laravel [0], but it needs much more than a simple refactoring, and it'd be nice to rewrite everything with PHP5+ conventions (classes and inheritance, etc).
Switching to Ruby on Rails will force a full rewrite, and I wouldn't mind using this project as a means to dive into ruby.
One concern is that it might take longer to learn ruby on rails than to rewrite the PHP version, but if ruby makes adding new features easier in the future, it would have been well worth it.
In the end, both approaches are basically a full rewrite. Any suggestions? Has anyone encountered a similar scenario?
[0] http://laravel.com/