Home > Banter, Resources, Robotlegs, Tutorials > Parsley: Your Favourite Herb?

Parsley: Your Favourite Herb?

I’ve just started looking into Parsley: http://www.spicefactory.org/parsley/

First thought: version 2 is exactly what I’ve been trying to build with RobotLegs.

I’ve only briefly skimmed through the manual, but it really looks promising. I have some initial concerns (the use of Static methods for example; see: http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/), but need more time to play around properly.

The forum pointed me to these two handy example projects:

http://www.sitronnier.com/blog/parsley-2-basic-flex-example
http://www.sitronnier.com/blog/parsley-2-basic-flash-example

Find them on the forum here:

http://www.spicefactory.org/forum/viewtopic.php?t=247

All the Spice:

http://www.spicefactory.org/

  • Anonymous

    So, what does this mean for RobotLegs?? I’ve just started following and some of your ideas are similar to things I implemented recently on my own project which uses PureMVC (i.e. auto-mediator registration). I’m interested in using it, if it stays around :)

  • http://DigitalChickenScratch.com craig

    So, what does this mean for RobotLegs?? I’ve just started following and some of your ideas are similar to things I implemented recently on my own project which uses PureMVC (i.e. auto-mediator registration). I’m interested in using it, if it stays around :)

  • http://shaun.boyblack.co.za/blog/ shaun

    Hi Craig. I’m not sure yet, I need to dig into Parsley a little deeper first.

    One option is that I create some adapters so that RobotLegs can make use of Parsley’s Reflection and Injection libraries (instead of using SmartyPants IOC, for example).

    As I mentioned, I have some concerns with Parsley that I need to look into first. If these concerns are unfounded (or the project evolves to address them), then I’d probably switch to using Parsley. If not, RobotLegs stays!

    In the meantime, I’m still using RobotLegs on all my current Flash/Flex projects, so I’d encourage you to check it out regardless. Feel free to send any comments/questions/suggestions to the Discussion Group:

    http://groups.google.com/group/robotlegs

  • http://shaun.boyblack.co.za/ shaun

    Hi Craig. I’m not sure yet, I need to dig into Parsley a little deeper first.

    One option is that I create some adapters so that RobotLegs can make use of Parsley’s Reflection and Injection libraries (instead of using SmartyPants IOC, for example).

    As I mentioned, I have some concerns with Parsley that I need to look into first. If these concerns are unfounded (or the project evolves to address them), then I’d probably switch to using Parsley. If not, RobotLegs stays!

    In the meantime, I’m still using RobotLegs on all my current Flash/Flex projects, so I’d encourage you to check it out regardless. Feel free to send any comments/questions/suggestions to the Discussion Group:

    http://groups.google.com/group/robotlegs

  • Benoit Jadinon

    yeah these Parsley features would look good in RobotLegs :
    - Flash compatibility (impossible for the moment with Smarty-P)
    - configuration possible not only as metadata (though i love it) but MXML and XML

  • Benoit Jadinon

    yeah these Parsley features would look good in RobotLegs :
    - Flash compatibility (impossible for the moment with Smarty-P)
    - configuration possible not only as metadata (though i love it) but MXML and XML

  • Anonymous

    @Shaun – Sounds good. I also enjoyed the screen casts thanks for putting those up.

  • http://digitalchickenscratch.com craig

    @Shaun – Sounds good. I also enjoyed the screen casts thanks for putting those up.

  • http://shaun.boyblack.co.za/blog/ shaun

    Thanks Craig. I’ve really gotta redo those screencasts though.. I think I made RobotLegs sound more complicated than it is.

  • http://shaun.boyblack.co.za/ shaun

    Thanks Craig. I’ve really gotta redo those screencasts though.. I think I made RobotLegs sound more complicated than it is.

  • http://joelhooks.com/ Joel Hooks

    Hey Shaun, I don’t know if you caught it but I wrote a small image gallery example with Parsley.

    http://joelhooks.com/2009/07/14/inversion-of-control-and-dependency-injection-with-flex-using-the-parsley-application-framework-part-2/

    It doesn’t completely pass your 7-points-of-yick test. I don’t know that you couldn’t just architect a parsley app with mediators. I didn’t try. I am definitely curious as to what your research concludes.

  • http://joelhooks.com Joel Hooks

    Hey Shaun, I don’t know if you caught it but I wrote a small image gallery example with Parsley.

    http://joelhooks.com/2009/07/14/inversion-of-control-and-dependency-injection-with-flex-using-the-parsley-application-framework-part-2/

    It doesn’t completely pass your 7-points-of-yick test. I don’t know that you couldn’t just architect a parsley app with mediators. I didn’t try. I am definitely curious as to what your research concludes.

  • http://shaun.boyblack.co.za/blog/ shaun

    Hi Joel, I did indeed, but I skimmed through most of the post, and headed straight for the “So I think…” part :) I’ll check out the code over the weekend. Was stoked to see that you’re on GitHub though.

    I’ve given up on Parsley for now – the fact that contexts/containers get completely sealed after configuration made it a bad fit for RobotLegs. Instead I’m trying to write a Spring adapter..

  • http://shaun.boyblack.co.za/ shaun

    Hi Joel, I did indeed, but I skimmed through most of the post, and headed straight for the “So I think…” part :) I’ll check out the code over the weekend. Was stoked to see that you’re on GitHub though.

    I’ve given up on Parsley for now – the fact that contexts/containers get completely sealed after configuration made it a bad fit for RobotLegs. Instead I’m trying to write a Spring adapter..

  • http://blogs.adobe.com/tomsugden/ Tom

    Hi Shaun,

    Parsley 2.1 has now been released and it includes a Dynamic Context feature that allows objects to be added and removed from a context at runtime. There was already a kind of dynamic context before, which was used for wiring views whenever they were added or removed from the stage, but the new solution is more general. See this page of the Developer Manual for more details:

    http://www.spicefactory.org/parsley/docs/2.1/ma...

    Parsley 2.1 also provides some new extensibility points, described in the manual, that might provide the hooks you need for RobotLegs.

    Best,
    Tom

  • http://shaun.boyblack.co.za/blog/ shaun

    Hi Tom,

    Thanks for the info, will definitely check it out!

    Cheers,

blog comments powered by Disqus