Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sam Moore
    @samandmoore
    i'm removing the marionette dependency altogether. we don't need it and don't really have any plans on doing something that would require us to have any more of marionette than what is in Object
    James
    @jamesplease
    looks cool @samandmoore. @thejameskyle and I have very similar routers
    Sam Moore
    @samandmoore
    ya. i was hoping to talk to you about the one you have inside of gistbook yesterday, but no luck haha
    James
    @jamesplease
    i don’t know how much advice I should give, though. if i gave all of my advice, i would just be telling you to recreate James / my router :P
    Sam Moore
    @samandmoore
    are you talking about the gistbook state-router thing?
    haha
    we want this to be a simpler version of what ember provides
    James
    @jamesplease
    gistbook’s router is a prototype version of it, yeah.
    Sam Moore
    @samandmoore
    gotcha
    are you guys actively working on something that you're going to open-source?
    James
    @jamesplease
    i’ve abandoned this approach to routing, so I probably will never open source a router built on top of StateRouter
    i am lazily re-implementing a microscopic version of ember’s router
    Sam Moore
    @samandmoore
    hah gotcha
    it sounds like you see a large difference between "this approach" and what ember provides?
    James
    @jamesplease
    a huge difference
    Sam Moore
    @samandmoore
    the two biggest differences that i noticed were:
    1. ember clearly has a lot more state involved in their flow, e.g. Transition objects
    1. ember routes are applied hierarchically
    the second bit is pretty interesting to me
    /foos/:id/bars
    eval FooRoute() then eval BarRoute()
    that's pretty neat
    James
    @jamesplease
    yeah. and super powerful.
    Sam Moore
    @samandmoore
    definitely.
    James
    @jamesplease
    the router i am slowly working on will be built on top of: https://github.com/jmeas/hsm.js
    Sam Moore
    @samandmoore
    awesomeeee. yea. that's what is missing from what we wanted to build
    we didn't want to build a FSM
    James
    @jamesplease
    ember’s implementation is very verbose, very slow, and used to be very broken (tildeio/route-recognizer#46)
    Sam Moore
    @samandmoore
    also, i like that in hsm.js you have the state mappings constructed as "state": StateCtorFunction
    James
    @jamesplease
    but you can recreate their router in like 5-10% of the code
    and it would be better (i think)
    Sam Moore
    @samandmoore
    yea, it definitely can be done
    James
    @jamesplease
    but — anyway. i think there is a lot of value in the approach you are taking
    i use a similar router in all of my apps
    and it is so much better than the router that comes out of the box
    Sam Moore
    @samandmoore
    cool. thanks. we're going to try to build this out a bit more. make it work like ember's router minus the two huge features mentioned above, and try to push it as a reasonable alternative to what you might end up building :)
    James
    @jamesplease
    cool
    Sam Moore
    @samandmoore
    in the meantime i will keep bugging you guys with questions and probing for your opinions on decisions we're making. i'd love for this to become a useful tool
    Juan Roperto
    @jroperto

    Hi guys, how are you?
    I recently watch @samccone presention about Blazer in youtube, I really liked it. I'm already using it for an app that I'm working on.

    Regarding Route object, I personally don't like to grab the path variables or route params from routeData.params. Is somebody in the process to expose them as prepare/execute/error params like Backbone does for route callbacks?

    If not, and you think that's a good idea, I'm willing to give it a shot...
    Sam Moore
    @samandmoore
    hi there
    that was actually this sam in that video, ha.
    we don't have any plans to expose the route params / path variables as first-level arguments to the Route methods
    we prefer to group them up into a single routeData bag
    James
    @jamesplease
    yo @samandmoore
    just thought i’d check in to see how this project is going
    it’s been a few months, but i liked what i saw!
    Nana Thompson
    @abeeku23
    Hello?
    webskydavid
    @webskydavid
    Hi
    webskydavid
    @webskydavid
    Can someone tell me how to filter params from url like this: http://example.o/test1/subtest1/id/3 ? I need test1 as module , subtest1 as method in Route and param id =3