This is where technologies like Google Web Toolkit (GWT) win. By compiling Java bytecodes into Javascript it becomes possible to simply code everything in Java. The downside? You have to write everything in Java :D
There were some efforts (http://www.ntecs.de/projects/rubyjs/README) to compile Ruby code into JS but people they were regarded more as experiments and people didn't seem to get too interested in using them seriously. Personally, I think it would be a very good thing if I could simply write Ruby for both client and server. I've never been able to wrap my head around Javascript's prototype based object model. /Ritchie On Fri, Feb 11, 2011 at 8:06 AM, Matthieu Stone <[email protected]> wrote: > Hello, > I've got a lot of well tested business logic sitting in my models :: but > every time I want to use it, I need to hit my servers. > So scaling this is a real problem - particularly if I want do some fancy > screen updates based upon streaming data and run some calculations when new > data arrives. > I'd rather not duplicate my logic if I can avoid it. > Anyone know of a fancy way to create Javascript versions of my model logic, > or achieve something similar? > rgds, > - matt. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
