Alec Taylor
2011-Nov-21 10:29 UTC
[Rails] Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?
Good evening, I am strongly considering building my project using Rails. My project will provide a web-interface and a mobile app. I was thinking to build the mobile app from XML sheets, i.e.: <?xml version="1.0" encoding="UTF-8"?> <mobile version="3.1.3"> <newstory>text here</newstory> <newstory>text here</newstory> <newstory>text here</newstory> <newstory>text here</newstory> <pinned><newstory>text here</newstory></pinned> </mobile> Then I could easily parse the XML file using Qt and display it in a neat way in the mobile app. I''m not sure if this is the best approach, so am open to recommendations. Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1Y6zeoRCpvgJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dhaval jain
2011-Nov-21 11:01 UTC
Re: [Rails] Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?
Hi , I would suggest JSON instead of XML. JSON is very light weighted compared to xml and will help in faster proceesing of data on the mobile apps. Thanks, Dhaval On Mon, Nov 21, 2011 at 3:59 PM, Alec Taylor <alec.taylor6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Good evening, > > I am strongly considering building my project using Rails. > > My project will provide a web-interface and a mobile app. > > I was thinking to build the mobile app from XML sheets, i.e.: > > <?xml version="1.0" encoding="UTF-8"?> > > <mobile version="3.1.3"> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <pinned><newstory>text here</newstory></pinned> > </mobile> > > Then I could easily parse the XML file using Qt and display it in a neat > way in the mobile app. > > I''m not sure if this is the best approach, so am open to recommendations. > > Thanks for all suggestions, > > Alec Taylor > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/1Y6zeoRCpvgJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt
2011-Nov-21 11:58 UTC
Re: [Rails] Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?
On 21 Nov 2011, at 11:29, Alec Taylor wrote:> I am strongly considering building my project using Rails. > > My project will provide a web-interface and a mobile app. > > I was thinking to build the mobile app from XML sheets, i.e.: > > <?xml version="1.0" encoding="UTF-8"?> > > <mobile version="3.1.3"> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <pinned><newstory>text here</newstory></pinned> > </mobile> > > Then I could easily parse the XML file using Qt and display it in a > neat way in the mobile app. > > I''m not sure if this is the best approach, so am open to > recommendations.Or you could just stick with HTML and go for PhoneGap, gives you just about every mobile platform you could ever wish for. For your data exchange, JSON is probably the best one. It''s much less verbose than XML in just about any case. In any case, for mobile devices (and even for a snappy desktop experience), you want to build your app to transfer the least amount of data possible. Plenty of resources about that around the web. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Alec Taylor
2011-Nov-21 12:36 UTC
Re: [Rails] Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?
Sure, happy to use JSON as the format. I wouldn''t want to use anything like PhoneGap, since I am also integrating hardware components. Not too mention I have C, C++, Ruby and Python skills to leverage, so native app development is no problem. In fact, I was considering open-sourcing this whole mobile JSON interfacing format, in order to gain community standardisation. On Mon, Nov 21, 2011 at 10:58 PM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > On 21 Nov 2011, at 11:29, Alec Taylor wrote: > > I am strongly considering building my project using Rails. > > My project will provide a web-interface and a mobile app. > > I was thinking to build the mobile app from XML sheets, i.e.: > > <?xml version="1.0" encoding="UTF-8"?> > > <mobile version="3.1.3"> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <newstory>text here</newstory> > <pinned><newstory>text here</newstory></pinned> > </mobile> > > Then I could easily parse the XML file using Qt and display it in a neat way > in the mobile app. > > I''m not sure if this is the best approach, so am open to recommendations. > > > Or you could just stick with HTML and go for PhoneGap, gives you just about > every mobile platform you could ever wish for. > > For your data exchange, JSON is probably the best one. It''s much less > verbose than XML in just about any case. In any case, for mobile devices > (and even for a snappy desktop experience), you want to build your app to > transfer the least amount of data possible. Plenty of resources about that > around the web. > > > Best regards > > > Peter De Berdt > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dhaval jain
2011-Nov-21 12:56 UTC
Re: [Rails] Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?
Yeah its a good idea to open source. Go for it.will surely contribute to it. Regards Dhaval On Mon, Nov 21, 2011 at 6:06 PM, Alec Taylor <alec.taylor6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sure, happy to use JSON as the format. > > I wouldn''t want to use anything like PhoneGap, since I am also > integrating hardware components. > > Not too mention I have C, C++, Ruby and Python skills to leverage, so > native app development is no problem. > > In fact, I was considering open-sourcing this whole mobile JSON > interfacing format, in order to gain community standardisation. > > On Mon, Nov 21, 2011 at 10:58 PM, Peter De Berdt > <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote: > > > > On 21 Nov 2011, at 11:29, Alec Taylor wrote: > > > > I am strongly considering building my project using Rails. > > > > My project will provide a web-interface and a mobile app. > > > > I was thinking to build the mobile app from XML sheets, i.e.: > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <mobile version="3.1.3"> > > <newstory>text here</newstory> > > <newstory>text here</newstory> > > <newstory>text here</newstory> > > <newstory>text here</newstory> > > <pinned><newstory>text here</newstory></pinned> > > </mobile> > > > > Then I could easily parse the XML file using Qt and display it in a neat > way > > in the mobile app. > > > > I''m not sure if this is the best approach, so am open to recommendations. > > > > > > Or you could just stick with HTML and go for PhoneGap, gives you just > about > > every mobile platform you could ever wish for. > > > > For your data exchange, JSON is probably the best one. It''s much less > > verbose than XML in just about any case. In any case, for mobile devices > > (and even for a snappy desktop experience), you want to build your app to > > transfer the least amount of data possible. Plenty of resources about > that > > around the web. > > > > > > Best regards > > > > > > Peter De Berdt > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.