Re: [Flashcoders] Q: All OOP or ??????
What I ask myself on new projects is "what parts of this can I reuse?" Can I put this behavior in a class or a component? It's more work up front to make your classes for your daily tasks (not much more work) but on project 2 or project 3 your work will pay off. What's more, OOP design patterns often have powerful solutions to complex problems. If you get comfortable with OOP -- not just "using objects," but the true nature of "object orientation" -- you'll have an easier time when a really big problem hits you on the head. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Q: All OOP or ??????
iscussion on whether it IS collapsed or not. For example 2 options: - I write a movieclip, put a few components in it(view) , and write a class (controller) and connect it to the movieclip in the property dialog. Is it collapsed? - I write a class which creates all the components by code. (this might be clearer) If I am certain up front there will be multiple views, I might put more time into the view/controller issue. In any case its just another black box to the rest of the program (let's assume a perfect world here for a moment). Lot of the different approach to MVC even stem from names issues, for example all the code in two examples might be the same, but in example A the view is called MyView and in the example B the same thing is called MyController. Go figure ;)... Damn... Can't quit Can't quit... Sorry for the longwinded answer, maybe someone else could provide you with a simpler/shorter response ;) It's not really the answer you were looking for maybe, but I hope it contributes to your thought building process about these kinds of issues... I'm looking forward to the other responses, as I'm always wondering about these kinds of issues as well... Greetz Hans J.C. Wichman . Software Engineer www.TriMM.nl TriMM interactieve media . PO Box 1208 . 7500 BE Enschede . The Netherlands Oldenzaalsestraat 141-143 . tel +31 (0)53 - 48 00 480 . fax +31 (0)53 - 43 53 027 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, January 28, 2006 12:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q: All OOP or ?? Hi I was curious what approach most developers are using for their projects: 1 doing ALL of there development for every project within an OOP based framewrok, ie everything, from drawing and/or placing of objects, transitioning, interacting with server special effects, is done with a custom Class based framework and is entirely OOP based. 2 Or do most developers currently use a more 'hybrid' approach, with a lot of assets placed on stage at authortime and referenced via an '#include' if code is needed to be outside the FLA file. If third party Class code already exists (ie tween engines) then that is used rather than re-creating it from scratch. Custom classes are developed ONLY if there is some need for code re-use. Related to the above discussion there has been a lot of talk about use of design patterns, and , specifically the Model View Controller 'meta' pattern. Having just finished 'Head First Design Patterns' it all makes sense now. But there seems to be more than one way to interpret MVC, especially when it comes to whether the controller should be separated from the view 3 Which ways do developers implement the MVC pattern? All the best Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- "Always bear in mind that your own resolution to succeed is more important than any one thing." "You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Q: All OOP or ??????
amples might be the same, but in example A the view is called MyView and in the example B the same thing is called MyController. Go figure ;)... Damn... Can't quit Can't quit... Sorry for the longwinded answer, maybe someone else could provide you with a simpler/shorter response ;) It's not really the answer you were looking for maybe, but I hope it contributes to your thought building process about these kinds of issues... I'm looking forward to the other responses, as I'm always wondering about these kinds of issues as well... Greetz Hans J.C. Wichman . Software Engineer www.TriMM.nl TriMM interactieve media . PO Box 1208 . 7500 BE Enschede . The Netherlands Oldenzaalsestraat 141-143 . tel +31 (0)53 - 48 00 480 . fax +31 (0)53 - 43 53 027 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, January 28, 2006 12:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q: All OOP or ?? Hi I was curious what approach most developers are using for their projects: 1 doing ALL of there development for every project within an OOP based framewrok, ie everything, from drawing and/or placing of objects, transitioning, interacting with server special effects, is done with a custom Class based framework and is entirely OOP based. 2 Or do most developers currently use a more 'hybrid' approach, with a lot of assets placed on stage at authortime and referenced via an '#include' if code is needed to be outside the FLA file. If third party Class code already exists (ie tween engines) then that is used rather than re-creating it from scratch. Custom classes are developed ONLY if there is some need for code re-use. Related to the above discussion there has been a lot of talk about use of design patterns, and , specifically the Model View Controller 'meta' pattern. Having just finished 'Head First Design Patterns' it all makes sense now. But there seems to be more than one way to interpret MVC, especially when it comes to whether the controller should be separated from the view 3 Which ways do developers implement the MVC pattern? All the best Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Q: All OOP or ??????
Hi I was curious what approach most developers are using for their projects: 1 doing ALL of there development for every project within an OOP based framewrok, ie everything, from drawing and/or placing of objects, transitioning, interacting with server special effects, is done with a custom Class based framework and is entirely OOP based. 2 Or do most developers currently use a more 'hybrid' approach, with a lot of assets placed on stage at authortime and referenced via an '#include' if code is needed to be outside the FLA file. If third party Class code already exists (ie tween engines) then that is used rather than re-creating it from scratch. Custom classes are developed ONLY if there is some need for code re-use. Related to the above discussion there has been a lot of talk about use of design patterns, and , specifically the Model View Controller 'meta' pattern. Having just finished 'Head First Design Patterns' it all makes sense now. But there seems to be more than one way to interpret MVC, especially when it comes to whether the controller should be separated from the view 3 Which ways do developers implement the MVC pattern? All the best Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders