Ruby on Rails Thursday, December 23, 2010

Matteo Latini wrote in post #970246:
> On Dec 22, 2010, at 6:05 PM, Marnen Laibow-Koser wrote:
>
>>
>>>
>> really doesn't belong. You wouldn't do that in Ruby; don't do it in JS.
> Ruby is actually NOT like that... Actually everything we love about
> rails
> is thanks to dynamic code...

That's not true at all. Most of it is due to metaprogramming, which is
a very different thing than dynamically generating source code as text
-- in fact, the point of Ruby's metaprogramming is that you *don't* have
to dynamically generate source code to have dynamic behavior. Please
get your facts straight.

(There are a few spots deep in the Rails framework where source code is
generated as strings, presumably for efficiency reasons. I regard these
as either errors or performance hacks, and I would never attempt to do
likewise in my own application code.)

>
>>>
>>> Also, what do you mean by hidden div?
>>
>> A div with display: none in its style.
>>
>>> Do you mean you just jam
>>> the data in it or use it for html templating?
>>
>> I don't understand what you're asking.
>
> Do you use html/js templating, or the hidden div is filled with
> data?

That's not an "or" question, is it? Or am I still not understanding
what you mean?

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment