that means that perhaps you have way too much logic in your template, and you
should better move that logic into the controller. it isn't just a matter of
taste, it's a matter of good design :).
HTH
···
On Wednesday 07 February 2007 02:55, Xia __ wrote:
its more for bug tracking; to be able to remove functionality
temporarily to see what is broken, so more like
<% do_stuff; /* HIDE THE FOLLOWING FROM RUBY do_more; */ %>
i dont want to turn this thread into a debate about programming design,
i just want to know if ruby offers a fairly simple syntax function which
is available in many languages.
On 2/7/07, Xia __ <rebeccacannon@gmail.com> wrote:
i dont want to turn this thread into a debate about programming design,
i just want to know if ruby offers a fairly simple syntax function which
is available in many languages.
On Behalf Of Xia __:
# i dont want to turn this thread into a debate about
# programming design,
# i just want to know if ruby offers a fairly simple syntax
# function which is available in many languages.
the ff is just a kludge. i enclose them text inside single quotes, or %< >, or %<-- -->
Hey, about an rcr, use "--" or "++" as inline commenters :))
But sincerely, i have a phobia of inline comments. I once had a bug that took me a day (24hrs) to find because of a very slick inline comment i inserted... arrghh.. but that was then. Now, unit test/tdd/bdd/rspec/ioc rocks. no fear
On 2/7/07, Xia __ <rebeccacannon@gmail.com> wrote:
i dont want to turn this thread into a debate about programming design,
i just want to know if ruby offers a fairly simple syntax function which
is available in many languages.
no.
cool thanks michael.
i think there may be some argument for it to be supported in the case of
erb in rhtml; mostly due to common html markup style which is different
to ruby due to line spacing and inline elements in html
On 2/7/07, Xia __ <rebeccacannon@gmail.com> wrote:
Michael Fellinger wrote:
> On 2/7/07, Xia __ <rebeccacannon@gmail.com> wrote:
>> i dont want to turn this thread into a debate about programming design,
>> i just want to know if ruby offers a fairly simple syntax function
which
>> is available in many languages.
>
> no.
cool thanks michael.
i think there may be some argument for it to be supported in the case of
erb in rhtml; mostly due to common html markup style which is different
to ruby due to line spacing and inline elements in html