I worked at the BBC for a while in London and the devs where were advocates
for CustomEvents. Which is my current favourite approach to development.
Something like...

$.live({
     'hashchange,popstate' : function(){},
     'button click' : function(){},
     'img click' : function(){},
     'customevent' : function(){},
     'anothercustomevent' : function(){},
})

Where $.live is a jquery plugin which just binds the events to the
selector, or custom events to the *document*. I felt it was an improvement
on writing every event with $([selector]).live([event],[function]).

Whilst CustomEvent could be unwittingly overwritten. The Backbone demo
Todos uses global functions which are just as susceptible - not sure if
that's intentional or not.

I do like how backbone's initialize method is quite handy, how events can
be defined within the scope of a given DOM node, and how you can see all
the events at the top and the name of the function they control. But if you
can explain how to flexibly use the rest i'd appreciate a lesson.

A






On Sun, Nov 13, 2011 at 8:57 PM, Varun Aggarwal <[email protected]> wrote:

> I have been planning to introduce some new more structured framework
> around MVC( considering readability, performance and maintainability). I
> have been looking around for some of the framework. I see backbone,
> sproutcore and angular. Any specific reason to use one over the other?
>
> Varun
>
>
> On Sun, Nov 13, 2011 at 9:26 AM, Johannes Nel <[email protected]>wrote:
>
>> http://www.javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc.html?page=1
>>
>> On Sun, Nov 13, 2011 at 4:33 PM, Garren Smith <[email protected]>
>> wrote:
>> > Hey Andrew,
>> > The website looks very cool. I really like the design. I'm also really
>> new
>> > to implementing the MVC pattern so take my comments with a pinch of
>> salt.
>> > Would it not be better to break the main App View up into smaller views
>> that
>> > are more focused. Say a specific Search view, preview view and a
>> favorites
>> > view. Not sure how you would join them all together maybe have a
>> controller
>> > class that manages the interaction between them all. My 2 cents worth.
>> > Cheers
>> > Garren
>> >
>> > --
>> > To view archived discussions from the original JSMentors Mailman list:
>> > http://www.mail-archive.com/[email protected]/
>> >
>> > To search via a non-Google archive, visit here:
>> > http://www.mail-archive.com/[email protected]/
>> >
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> >
>>
>>
>>
>> --
>> j:pn
>> \\no comment
>>
>> --
>> To view archived discussions from the original JSMentors Mailman list:
>> http://www.mail-archive.com/[email protected]/
>>
>> To search via a non-Google archive, visit here:
>> http://www.mail-archive.com/[email protected]/
>>
>> To unsubscribe from this group, send email to
>> [email protected]
>>
>
>
>
> --
> Varun Aggarwal
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to