tag:robotlegs.tenderapp.com,2009-10-18:/discussions/suggestions/24-custom-processors-a-la-swizRobotlegs: Discussion 2013-04-28T10:35:40Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/19019002010-06-09T16:07:03Z2010-06-09T16:07:07ZCustom Processors a la Swiz<div><p>The ability to relatively easily create custom processors is, in
my opinion, one of the killer features of Swiz and I would love to
see this kind of functionality ported into RobotLegs. Has anyone
made any efforts in this area?</p></div>ndcollinstag:robotlegs.tenderapp.com,2009-10-18:Comment/19019002010-06-09T16:27:05Z2010-06-09T16:27:05ZCustom Processors a la Swiz<div><p>I am so prejudiced against adding additional metadata. Metadata
in AS3 is awful. It relies on magical string configuration, hides
real work, and there is no IDE support for it in any significant
form (SourceMate helps a bit). The concept of people arbitrarily
pasting custom meta around an app in AS3 disturbs me to my nerd
core.</p>
<p>As a consultant who specializes in unraveling the twisted mazes
of people's jacked up code, I love the idea.</p>
<p>Short answer is no, there hasn't been any work in that regard.
The "easiest" approach would likely be to bundle up a Swiz adapter
as a replacement for SwiftSuspenders.</p></div>Joel Hookstag:robotlegs.tenderapp.com,2009-10-18:Comment/19019002010-06-09T16:53:49Z2010-06-09T16:53:49ZCustom Processors a la Swiz<div><p>I'm with Joel on this one.</p>
<p>The benefit of Robotlegs as I experience it is that you can very
quickly get an idea of the core workings of an app just by
inspecting the context. Doing a project-wide search for [Inject]
also gives you some clarity very quickly.</p>
<p>Metadata in the AS3 compiler is hard to debug.</p>
<p>Try this</p>
<p>[Inject]; public var somethingToInject:SomethingToInject</p>
<p>just the presence of the ; after the [Inject] kills the
metadata.</p>
<p>The compiler won't give you an error. (At least the flex 4 SDK
compiler doesn't give me one).</p>
<p>I'm sure I could attempt some gnarly regex search to find all
metadata tags without picking up array style assignments, but
custom metadata sounds to me like a piece of rope just long enough
to really hang yourself.</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/19019002010-06-09T17:00:47Z2010-06-09T17:00:47ZCustom Processors a la Swiz<div><blockquote>
<p>custom metadata sounds to me like a piece of rope just long
enough to really hang yourself.</p>
</blockquote>
<p>Which is why it is so attractive to somebody that bills by the
hour ;0</p></div>Joel Hooks