tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/812-commandflow-draftsRobotlegs: Discussion 2013-03-11T14:31:24Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-07T06:58:03Z2013-02-07T10:53:25ZCommandFlow drafts<div><p>Hey, guys!<br>
We decided to switch our current project from RL1 to RL2.
Everything went smooth so far, but now we need some tool for clear
and straightforward way of command sequencing. In our RL1 projects
we always used excellent MacroBot lib by Aaron Hardy. I have read
some pieces of discussions about CommandFlow at robotlegs' issues
tracker, but as far as I understood it was eliminated from codebase
for some reason. So, now I have to make decision between to
options: rewrite MacroBot to let it work in RL2 environment, or get
some CommandFlow drafts and tune it a bit.</p>
<p>Here my questions. Why CommandFlow was eliminated? Where could I
get it's drafts? Is it a best-practice to use such tools
(CommandFlow, MacroBot, etc.) for commands sequencing? =)</p></div>pa3tag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-07T15:59:57Z2013-02-07T15:59:57ZCommandFlow drafts<div><p>Hi pa3,</p>
<p>I think, Shaun could answer your question much better than
me.<br>
As far as I know, Shaun is currently intensively working on
rl2’s release, but hopefully he’ll find some time to
give you an overview of the new possibilities that rl2 offers
regarding commands in general, and async processes, or sequencing
of commands in particular. Until then, I suggest taking a look at
this utility:</p>
<p><a href=
"https://github.com/FranklinCovey/RL2-SimpleCommand">https://github.com/FranklinCovey/RL2-SimpleCommand</a></p>
<p>I haven’t had a chance to use it or even study it
properly, so, you’ll have to decide for yourself, whether it
is something you can use, directly or as an inspiration.<br>
And, by all means, if you can write a better utility or port the
old ones to rl2, we’d be glad to have it/them :)</p>
<p>Of course, everyone is invited to chime in with a suggestion or
an example!</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-10T18:51:40Z2013-02-10T18:51:40ZCommandFlow drafts<div><p>@pa3 How soon do you need this? I've been working on an
extensive RL2 command sequencer, but am a bit swamped with work at
the moment.</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-11T05:31:07Z2013-02-11T05:31:24ZCommandFlow drafts<div><p>@Ondina Thanks for the link! I am not excited about design of
SimpleCommand, but in general it's good and simple substitute for
MacroBot. For now I will use it instead of MacroBot, but still it's
damn interesting to read some Shaun's insights about how to deal
with asynchronous and sequential stuff.</p>
<p>@creynders As I've already said I'd decided to switch to
SimpleCommand at the moment. But I certainly will look forward for
your sequencing solution. I'm following you on github, so I think I
won't miss it's release. =)</p></div>pa3tag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-12T12:25:31Z2013-02-12T12:25:31ZCommandFlow drafts<div><p>Hi pa3,</p>
<p>I’ve found the CommandFlow:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/tree/779420740432bdad75bce1e658c0091b9cd0b108/src/org/robotlegs/v2/experimental">
https://github.com/robotlegs/robotlegs-framework/tree/779420740432b...</a></p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/tree/779420740432bdad75bce1e658c0091b9cd0b108/test/org/robotlegs/v2/experimental">
https://github.com/robotlegs/robotlegs-framework/tree/779420740432b...</a></p>
<blockquote>
<p>but still it's damn interesting to read some Shaun's insights
about how to deal with asynchronous and sequential stuff.</p>
</blockquote>
<p>+1</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-02-27T22:24:12Z2013-02-27T22:24:12ZCommandFlow drafts<div><p>You should investigate Promises (the proper ones, not the
terrible attempt I made some years ago):</p>
<p><a href=
"http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/">
http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/</a></p>
<p>There's a decent AS3 implementation here:</p>
<p><a href=
"https://github.com/CodeCatalyst/promise-as3">https://github.com/CodeCatalyst/promise-as3</a></p>
<p>Promises provide a way to compose asynchronous operations whilst
keeping a somewhat sane approach to error handling.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/246694492013-03-11T14:31:23Z2013-03-11T14:31:23ZCommandFlow drafts<div><p>@pa3 I’m closing this thread for now. Don’t hesitate
to reopen it, if need be.</p></div>Ondina D.F.