Owen:

> ...however, I hope we get to the point that the 100 top "simple" 
> things can be as easy as: 
> 
> <preview-with-more> 
>    <model:Recipe/> 
>    <count:10/> 
> </preview-with-more> 
> 
> ..which will use the default cards, etc.

Yes we could do this sort of thing. Correcting for syntax this would be more 
like

<preview-with-more model="Recipe" count="10"/>

But, as Matt points out

> embedding Ruby in attributes is way more powerful   
> and concise. The above in current Hobo would be: 
> 
> <preview-with-more with="&Recipe.recent(10)" />

Once you've climbed the learning curve, Matt's version is better from pretty 
much every angle. It's clear, concise and once you understand it you can easily 
do other things like (from the Coookbook home-page)

<preview-with-more with="&User.recently_active"/>

The ruby-free version (Owen's) seems to have an assumption that the preview 
should always show the most recent, whereas the with-ruby version (Matt's) lets 
you specify the sort criteria.

We could add that as an attribute of course:

<preview-with-more model="Recipe" count="10" sort="recent"/>

So now we're getting down to the crucial difference. The experienced guys will 
want a small number of powerful concepts that can be put together in countless 
different shapes. The new guys want things clear and "spelt out" without tough 
concepts getting in the way, but they pay the price by having to remember a 
gazillion different tags and attributes. I don't think your "top 100" comes 
close Owen, there are going to thousands of things where you could reasonably 
say "that's very common, it should be really easy".

So it's small, powerful vocabulary vs large, simple vocabulary.

Those are each the right answer to two different audiences. My own feeling is 
that the very large vocabulary needs a proper "IDE" that can present the 
choices to you (too many to memorise). That's were we're going with Bambuu.

I also think Hobo should provide the small and powerful vocabulary. The idea 
that you can build a hobo app without proper Ruby/Rails chops has bitten quite 
a few people - it's wishful thinking (that doesn't mean you must learn Rails 
fully first - you can learn them both together).

Tom




--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.


Reply via email to