On 10/11/05, Dave Wolf <[EMAIL PROTECTED]> wrote:

> The real question is why?  You used to see this in JSP development a
> lot (Since JSP is a nearly direct analog to Flex) in that JSP
> developers would just make huge scriplet sections and do everything in
> Java. Eventually it reached the point that why not just write a darn
> servlet.  Since at runtime the JSP is just codegenerated to java and a
> servlet runs.

Actually I think it's the other way around.  IIRC it was like people
found themselves embedding a lot of HTML in servlet code, which
sucked, so they made this templating language called JSP in which you
could embed little Java code.  And I think it's the same with AS/MXML:
you write so much AS over and over that essentially does the same
thing, and now with MXML you can convert them into MXML tags (both UI
and non-UI like WebService) and use those instead.

So IMHO we're going from AS to MXML and not the other way, and that's
the trend we've seen in other development frameworks too (e.g. C# =>
XAML).

And I think the best practise for managing huge script sections would
be to factor them out into other classes/scripts.  If more than a
certain percentage of an MXML file is script code, then it's probably
better to write it as a pure AS component.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to