Video: Flex Best Practices

Here is a recording from my presentation about Flex Best Practices / Flex Architectural Patterns at the NLJUG. Sorry that the audio is not great on this one. It turned into more of a discussion than a presentation. Let me know what you think.

This entry was posted in Flex. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

30 Comments

  1. Mike G
    Posted July 23, 2008 at 4:15 am | Permalink

    James thanks for posting your preso, great stuff!!

    I’m interested to learn more about the Service Bus approach you mentioned you often use for Flex applications. If you have any links or code you could share on this that would be great.

    Cheers, Mike G.

  2. codecraig
    Posted July 23, 2008 at 7:33 am | Permalink

    Would it be possible to get your power point slides? Also, could you provide your code for working with a Service Bus?

    Also, the service bus framework that you were discussing (you couldn’t remember the name)…was it LCDS (LiveCycle Data Services)?

  3. Posted July 23, 2008 at 7:56 am | Permalink

    I’ll try to get my slides added here soon.

    The message / service bus framework is Mate:
    http://mate.asfusion.com

  4. Posted July 23, 2008 at 9:21 am | Permalink
  5. Chris
    Posted July 23, 2008 at 10:37 am | Permalink

    Does FlexBuilder provide any support to manage modular apps when the main app is in one Eclipse project and various modules are in other Eclipse projects? Because modules are all loaded at runtime via the filename, I have to path specific to my Eclipse workspace and project structure. That differs from how I’m going to deploy the swfs in my production environment. Also, different projects may exist on different paths for different team members. So we all have to manage our module paths differently :(

    regards,
    -Chris

  6. Posted July 23, 2008 at 5:15 pm | Permalink

    Hi Chris,

    Usually for large projects you should use a build tool like Maven or Ant to handle compiling the modules. That way you can have better control over how the modules are named, deployed, and loaded.

    -James

  7. codecraig
    Posted July 23, 2008 at 6:53 pm | Permalink

    Speaking of Maven…how do you use it to build a Flex/Java app (i.e. something you deploy to a web container, which might use LCDS or BlazeDS, see this link for the type of project I am referring to: http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/).

    Even just a regular flex app…how do you do it?

  8. Posted July 23, 2008 at 9:53 pm | Permalink
  9. Posted July 24, 2008 at 3:14 am | Permalink

    Hi! Thanks for the slides! One question: I’m very interested in your view on the ’service bus’ approach. I suppose you see it as an alternative to the rather ‘heavy weight’ MVC approach? Some thoughts (or some documentation even if it’s not Flex based) would be very helpful.

  10. Posted July 24, 2008 at 7:24 am | Permalink

    Hi Tom,

    My personal preference for large Flex applications is for a service bus approach as the overall application architecture, coupled with modules, and some hand rolled MVC for the micro architecture (self-contained with a module).

    -James

  11. Posted July 24, 2008 at 7:42 am | Permalink

    Thanks for the feedback! Are there any service bus frameworks for Flex or non-Flex out there that I could use as a reference?

  12. codecraig
    Posted July 24, 2008 at 7:28 pm | Permalink

    I’ve successfully hooked up Flex to ActiveMQ by using BlazeDS and LCDS (LiveCycle Data Services). The bus would come later in my prototyping but it’s a good start.

  13. codecraig
    Posted July 25, 2008 at 5:27 am | Permalink

    James:
    Do you have any details/info on the sections of the presentation you didn’t cover in the video (testing, scalability, security)?

    One question (you hopefully know) I have is do you know how to access a user certification stored in a browser from Flex? Or if there is another method how to get it into flex?

  14. Posted July 25, 2008 at 8:13 am | Permalink

    Hi Tom,

    Check out Mate: http://mate.asfusion.com

    Codecraig,

    For testing check out FlexUnit and the Flex Automated Testing Framework. Scalability is a broad topic. But in general Flex applications scale much better than traditional web applications because more is being done on the client. Since Flex uses the browser networking stack security in Flex is similar to web applications. There isn’t any direct way to handle certificates in Flex. The browser handles certificates and usually Flex applications don’t need to do anything with them.

    -James

  15. nz
    Posted July 25, 2008 at 6:02 pm | Permalink

    Can you post the video up on Adobe Media Player for offline viewing?

    cheers

  16. Posted July 25, 2008 at 10:02 pm | Permalink

    Hi James,

    I met you briefly today after your presentation, and asked you about the First Steps to Flex book (can’t actually remember the exact), but you’d already run out of copies. Out of curiosity, when and where will the book be available?

  17. Posted July 26, 2008 at 10:57 am | Permalink

    Hi James,

    Great video!! There are a ton of great tips in here. Thanks for posting!

    Here are two articles that are directly related to your video I thought they might help some people out:

    Flex best practices – Part 1: Setting up your Flex project
    http://www.adobe.com/devnet/flex/articles/best_practices_pt1.html

    Mate: Event driven framework for Flex
    http://www.flashmagazine.com/Reviews/detail/mate_event_driven_framework_for_flex/

    Kind regards,

    Sean

  18. Posted July 28, 2008 at 12:18 pm | Permalink

    @NZ – I’ll look into that.

    @Laurie – First Steps in Flex hasn’t officially been released yet. Hopefully it will be in the next few months. Check back here for updates.

    @Sean – Thanks for the links! Both are great articles!

  19. Matt
    Posted August 7, 2008 at 8:02 pm | Permalink

    What was that tool you used for the screencast? I really liked how you could zoom in and out during your presentation.

  20. Posted August 8, 2008 at 1:26 pm | Permalink

    Hi Matt,

    I use Camtasia. It works great.

    -James

  21. Posted August 14, 2008 at 7:24 am | Permalink

    I’d like to add my voice to the rest of the guys asking for the video to be put up somewhere where we can download it. It’s too long to view all in one go during my lunch hour but if I want to view the second half I have to wait for the swf to download all over again…

    Also I too would be really interested to see some more of the rest of the presentation

    Thanks,

    Ed.

  22. Posted August 14, 2008 at 9:09 am | Permalink

    What format / codec would you all prefer?

    -James

  23. andrew
    Posted August 18, 2008 at 11:01 am | Permalink

    I agree some downloadable format is key. I would like to listen to this on the go.

  24. Posted August 18, 2008 at 12:45 pm | Permalink

    Hi Andrew,

    What format would you like?

    -James

  25. Posted August 22, 2008 at 1:50 am | Permalink

    How about just allowing us to download the movie swf? Alternatively, any format that Media Player will handle.

    And don’t forget to add all the stuff you didn’t get time to present……

    Thanks,

    Ed.

  26. Posted August 25, 2008 at 5:14 am | Permalink
  27. codecraig
    Posted August 25, 2008 at 5:29 am | Permalink

    download works for me.

    Thanks!

  28. jvc
    Posted October 12, 2008 at 9:32 am | Permalink

    an h.264 version would help making this video more portable for ipod/pvr watching

  29. Posted October 22, 2008 at 5:41 am | Permalink

    Hi James, great video, thanks for posting.
    You mentioned rolling out your own very simple service bus rather than using MATE – if you have an example available I’d love to see it.

    Cheers,
    Neil

  30. Posted October 22, 2008 at 5:43 pm | Permalink

    Hi Neil,

    This will be in the book Bruce Eckel and I are working on called “First Steps in Flex”. It’s not out yet but you can join the announce list at:
    http://www.firststepsinflex.com

    -James

5 Trackbacks

  1. [...] post info By flexria Categories: Adobe, FLEX, RIA and rich internet applications Source [...]

  2. [...] Desenvolver usando as melhores práticas de qualquer linguagem de programação tem sido bastante comentado entre os desenvolvedores de todo o mundo, pois traz uma série de benefícios para as aplicações a longo prazo. Além de utilizar os padrões de mercado, é mais fácil de dar manutenção. A apresentação com as melhores práticas para desenvolver Flex e ActionScript 3 está disponível aqui. [...]

  3. By Flex Best Practices « Scratch Pad on August 12, 2008 at 1:06 am

    [...] Best Practices I came across this video recording of James Ward presentation on Best practices with Flex. Do take the time to go through the complete [...]

  4. By Flex Best Practices | Software Development Videos on August 18, 2008 at 10:15 pm

    [...] Watch this video on jamesward.com [...]

  5. [...] 5, 2008 by mohitsambhar Best Practices in Flex a presentation by James Ward. Check this article for this is a treasure. Infact in one of my [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe without commenting

  • About James Ward



    View James Ward's profile on LinkedIn

  • First Steps in Flex by James Ward and Bruce Eckel




  • Twitter Updates


  • Tour de Flex