Hi. Im am considering porting an c++ application to Ruby, and me company would also like to have an web-version of this particular application. If say there is an XML validator in the app. Then can Ruby and RoR share this in an easy way, so i wouldnt have to maintain 2 branches of the same XML validator. Best Regards. Lasse Thomsen -- Posted via http://www.ruby-forum.com/.
On a strict code basis, use of svn externals might help here. For a functional share usage, you could use simple web-services. If your data is already XML based, web-services will suck this right up in a hurry. -Nick On 6/13/06, Lasse Thomsen <lassethomsen@gmail.com> wrote:> > Hi. > > Im am considering porting an c++ application to Ruby, and me company > would also like to have an web-version of this particular application. > > If say there is an XML validator in the app. Then can Ruby and RoR share > this in an easy way, so i wouldnt have to maintain 2 branches of the > same XML validator. > > Best Regards. > Lasse Thomsen > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060613/de30e8d8/attachment-0001.html
Nick Stuart wrote:> On a strict code basis, use of svn externals might help here. > > For a functional share usage, you could use simple web-services. If your > data is already XML based, web-services will suck this right up in a > hurry. > > -NickMy data isnt nessacary XML based, it can be any type of format. Ranging from database entry to mission-files and XML. The idea is to use an build pattern, so that we can process the data apart from the view, so the idea is to have build a view for the standalone application and a view for the web application. (they donst display data in the same way) But if i could share the code-base for the engine, then it would wonderfly. Perpaps via web-services, which I will look into. Thanks for your reply. Best Regards. Lasse Thomsen -- Posted via http://www.ruby-forum.com/.
Lasse Thomsen wrote:> Hi. > > Im am considering porting an c++ application to Ruby, and me company > would also like to have an web-version of this particular application. > > If say there is an XML validator in the app. Then can Ruby and RoR share > this in an easy way, so i wouldnt have to maintain 2 branches of the > same XML validator. > > Best Regards. > Lasse ThomsenAs long as the business logic is separated out into a library it should be super simple. Just add a svn:externals in your /lib that pulls the app libraries from wherever they are. Then your controller just trigger the library methods. -- Posted via http://www.ruby-forum.com/.
Alex Wayne wrote:> > As long as the business logic is separated out into a library it should > be super simple. Just add a svn:externals in your /lib that pulls the > app libraries from wherever they are. Then your controller just trigger > the library methods.Thanks, just what i wanted to hear. (We are still in the look-around in new techs to consider, but this made Ruby and RoR sound more as a good way to go) Best Regards Lasse Thomsen -- Posted via http://www.ruby-forum.com/.