Hello Group, I am a PHP programmer eager to use Rails. I want to know weather there is any tutorials on how to use Dojo with Rails? I checked out d-rails Google Group, it was in mess! It gives me a impression that d-rails is dead. Is there there any good and possibly easy and reliable way to use Dojo in Rails? Regards A.K.Karthikeyan
Hey Karthikeyan, Rails has some pretty cool JS libraries that you can use without writing too much JS... Unless you have a compelling reason for using dojo - my advice would be to try and use rails js support - and personally, I''d like to stay away from JS writing as much as possible, Regards, Kashyap On Sun, Oct 11, 2009 at 5:31 PM, Karthikeyan <mindaslab-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello Group, > > I am a PHP programmer eager to use Rails. I want to know weather there > is any tutorials on how to use Dojo with Rails? I checked out d-rails > Google Group, it was in mess! It gives me a impression that d-rails is > dead. Is there there any good and possibly easy and reliable way to > use Dojo in Rails? > > Regards > A.K.Karthikeyan > > >-- Regards, Kashyap
C K Kashyap wrote:> Hey Karthikeyan, > Rails has some pretty cool JS libraries that you can use without > writing too much JS... > Unless you have a compelling reason for using dojo - my advice would > be to try and use > rails js support - and personally, I''d like to stay away from JS > writing as much as possible,Unfortunately, that will pretty much guarantee suboptimal code. For almost anything nontrivial, it is probably worth writing your own JS.> Regards, > Kashyap > > On Sun, Oct 11, 2009 at 5:31 PM, Karthikeyan <mindaslab-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> A.K.Karthikeyan >> > >> > > > > -- > Regards, > KashyapBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
> > Unfortunately, that will pretty much guarantee suboptimal code. For > almost anything nontrivial, it is probably worth writing your own JS. >Optimization is a game of compromises I''d say - you have readability/maintainability/speed of development on one hand and "performance" of the code itself on the other - timing/memory etc. If I understand it right, ruby language and rails framework tends to weight the first category more - and that is where my advice comes from. But you are right...if you know for sure that you are going to run a particular version of a particular browser, you might as well spend all the time to figure out all the JS special functions provided by that JS engine and squeeze out every bit of power. Regards, Kashyap
C K Kashyap wrote:>> >> Unfortunately, that will pretty much guarantee suboptimal code. �For >> almost anything nontrivial, it is probably worth writing your own JS. >> > > Optimization is a game of compromises I''d say - you have > readability/maintainability/speed of development on one hand and > "performance" of the code itself on the other - timing/memory etc.I wasn''t talking about performance optimization, but rather about general code quality and maintainability.> > If I understand it right, ruby language and rails framework tends to > weight the first category more - and that is where my advice comes > from. > > But you are right...if you know for sure that you are going to run a > particular version of a particular browser, you might as well spend > all the time to figure out all the JS special functions provided by > that JS engine and squeeze out every bit of power.That''s not what I meant either. Rather, I meant that too many Rails devs assume that the framework will free them from writing JS. It won''t. Take a look at the crappy JS that Rails helpers produce, along with the fact that writing straight JS is often easier and it will quickly become obvious why Rails'' helpers aren''t worth the effort, except in the simplest cases (where they can be quite useful indeed).> > Regards, > KashyapBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
I like that no one actually answered this question and started talking about javascript optimization instead. I''m just bumping this, as I would be interested in knowing the same thing as the OP, if anyone has as clue. -- 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/-/n55v35J4zMEJ. 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-US.