I agree with Ralf's view and have recently blogged about it.
http://weblogs.macromedia.com/auhlmann/archives/2007/02/best_practice_c.
cfm
 
Best,
Alex
 

 

 

Alex Uhlmann 
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
http://weblogs.macromedia.com/auhlmann

Adobe Systems Europe Limited | Registered office: 151 St. Vincent
Street, Glasgow G2 5NJ | Company No. SC101089

 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: 08 February 2007 21:25
To: [email protected]
Subject: Re: [flexcoders] What's the "official" consensus of using
CodeBehind??



This is just my personal view though, i'm not aware of an "official"
version. 
Cheers,
Ralf. 


On 2/8/07, Ralf Bokelberg < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        What is your reasoning to use code behind? Why would you want to
double every class and add an additional inheritance layer just to
separate Mxml from ActionScript? Why would you want to declare every
component you are using twice, once in AS and the second time in Mxml?
Is it to separate presentation from functionality? Generally this is a
good idea, but i think it is important where to draw the line between
the two. When you think of traditional systems with a template engine as
the presentation layer, the templates also contain some code to build
the presentation, while the functionality is implemented by plain
classes. Now if we translate this thinking to Mxml and ActionScript, we
should leave all the code we need to build the presentation inside the
Mxml files and factor out the real functionality into classes. So i'd
say, there is no! thing wrong with ActionScript in Mxml files as long as
it is strictly presenation related. 
        
        Cheers
        Ralf. 
        
        
        
        
        On 2/8/07, Mike Anderson < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

                Hello All,
                
                Could some of you more savvy coders, please take a
moment of your
                valuable time and throw some words of wisdom out there
regarding
                CodeBehind?
                
                Since I love using Packages and Classes, it feels very
natural for me to
                use this method.
                
                BUT, based on where things are going with Flex, is this
considered to be
                a "good programming practice"?
                
                I would love to know sooner versus later, so that I
don't have to back
                and redo a bunch of coding. I am a REAL stickler when it
comes to good
                coding practices.
                
                Thanks in advance for your time on this,
                
                Mike
                

                




        -- 
        Ralf Bokelberg <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
        Flex & Flash Consultant based in Cologne/Germany
        Phone +49 (0) 221 530 15 35 




-- 
Ralf Bokelberg <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 

 

Attachment: att77266.gif
Description: att77266.gif

Reply via email to