Macro Commands and Command chaining

willdady's Avatar

willdady

21 Dec, 2009 04:28 AM

Is there any plans on adding Macro Commands like the ones used by PureMVC to Robotlegs? More specifically, will there ever be a way to easily call one command from another without first having to map an event and then dispatch it? Chaining commands seems to be a fairly long-winded process at the moment which also requires the use of an event. Would it be possible to simply call another command by passing a class reference? Something like callCommand( MyCustomCommand )? I can't imagine this causing any major coupling issues any worse than the current implementation.

Love to know what you guys think.

Showing page 2 out of 2. View the first page

  1. 31 Posted by Aaron Hardy on 17 Aug, 2010 12:53 PM

    Aaron Hardy's Avatar

    Hey everyone, douchebag here. It's become apparent that I've offended people due to my previous comments and/or because I threw another library into the mix instead of modifying the one that already existed. I made a stab at merging the two libraries but wasn't having much luck without literally just using the code I had in the first place. I wanted to be somewhat objective about how this was the case but it came out offensively and I apologize for that. I'd really like to remove my previous comment(s) if this is the effect they've had but at the request of those whom I've offended I'll be leaving it in. I'm sorry if I've lost respect from Chase or the rest of the community and I hope to gain that back (if I ever had any in the first place). I'd rather burn in hell than cause contention but apparently I get to do both. Don't expect much else out of the library from me; I'd rather avoid more contention than have my name on a library. If someone (including Chase) wants to copy it elsewhere and run with it, have at it.

    -DB

  2. 32 Posted by Nikos on 17 Aug, 2010 01:06 PM

    Nikos 's Avatar

    I do feel I was the catalyst to the heated discussion :(

  3. Support Staff 33 Posted by Shaun Smith on 17 Aug, 2010 01:09 PM

    Shaun Smith's Avatar

    Hey Aaron,

    I hope your response has nothing to do with my post - I was trying to make the point that we all need to be a little less sensitive when it comes to criticism! There's nothing more annoying than having to tip-toe around social issues when it comes to writing open source code. Please don't be offended or discouraged. The Robotlegs community has never been particularly ego-driven, and, personally, I love criticism - it's how I become a less shit programmer. CRITICISM IS GOOD, EAT IT!

  4. Support Staff 34 Posted by Ondina D.F. on 17 Aug, 2010 01:27 PM

    Ondina D.F.'s Avatar

    Chase and Aaron,

    I myself am guilty of causing such an incident, namely to offend someone with a comment I made once on a discussion group, even if that wasn’t my intention in the first place. So I know how it feels when you can’t undo the wording that caused the conflict, especially over such a medium like the internet.

    I’m sorry to see both utilities going away . We ( robotlegs users) need a solution to that tricky chaining of commands. So make an effort and overcome your pride and please do collaborate in the spirit of our great community.

    Oh well, wasn’t that a cool speech? ;-)

    Ondina

  5. 35 Posted by Nikos on 17 Aug, 2010 01:33 PM

    Nikos 's Avatar

    let the community play and then judge :)
    I'm sure both will be adopted in the short term

  6. 36 Posted by cbrammer on 17 Aug, 2010 02:17 PM

    cbrammer's Avatar

    Everyone, I really didn't want to start some drama here. Sorry, not my intention.

    After reviewing Aaron's stuff, I can honestly admit is better, and I am cool with that! I just really wanted to find a way to contribute, and it felt like my efforts at trying to where thrown away, and then told that I had nothing to contribute. But, that was an overreaction.

    Overall though, I think that it ended up with better solution to the problem, and as RL user, I am thrilled with that.

    Just so everyone knows, seriously, no hard feelings.

  7. 37 Posted by Nikos on 17 Aug, 2010 02:26 PM

    Nikos 's Avatar

    Well good stuff then :)

  8. 38 Posted by Aaron Hardy on 17 Aug, 2010 02:33 PM

    Aaron Hardy's Avatar

    Shaun, it's not you, it's me. :) No really, it's not you. And it's me.

    Chase, thanks and I'm sorry as well. How about this...Shaun or Joel or someone on the RL team can make a repo, throw our code in (I don't care whose), and take our names off it...or throw both our names on it, whatever. Or Shaun can rip it apart and put us both to shame with his skillz with a z.

  9. 39 Posted by cbrammer on 17 Aug, 2010 04:00 PM

    cbrammer's Avatar

    Alright, in an effort of collaboration, I have created an initial unit test project for Macrobot

    http://github.com/cbrammer/robotlegs-tests-Macrobot

    Hopefully this will help. Some of the tests are failing though, it seems that macrobot for some reason isn't dispatching our framework events, and so the tests are timing out.

  10. Support Staff 40 Posted by Ondina D.F. on 18 Aug, 2010 09:36 AM

    Ondina D.F.'s Avatar

    One thing leads to another..
    I’ve watched your presentations from 360Flex on your blogs.

    I don’t know why, but I was very surprised when I realised that you guys were co-workers in real life:) But actually there are lots of people out there working for the same company for quite some time, who’ve never met each other in person.

    Hehe, another advantage of being part of the robotlegs community : meet your co-worker(s) and collaborate remotely, make a utility together, present it at the next Flex/Flash Meeting...

    Anyway, who cares as long as we get a good utility, in the ( happy ) end :)
    I can’t wait to make use of it in my new project, along with other available rl-goodies.
    Win-win game.

    Thanks, Ondina

  11. Stray closed this discussion on 13 Feb, 2011 04:33 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac