apachecon north america
play

ApacheCon North America Introducing Apache FlexJS Miami, Florida - PowerPoint PPT Presentation

ApacheCon North America Introducing Apache FlexJS Miami, Florida May 18, 2017 Yishay Weiss Apache Flex Apache Flex, Flex, FlexJS and Apache are trademarks of The Apache Software Foundation Short Bio Software dev since 1998,


  1. ApacheCon North America Introducing Apache ™ FlexJS ™ Miami, Florida May 18, 2017 Yishay Weiss Apache Flex ™ Apache Flex™, Flex, FlexJS and Apache™ are trademarks of The Apache Software Foundation

  2. Short Bio • Software dev since 1998, mostly UI • Freelance Flex and JS dev & consultant since 2010 • Apache Flex Committer and PMC Member since 2016

  3. Classic Flex SDK • MXML • AS3 (strongly typed, but ECMAScript) • Good IDEs • Flash Dependent • Lots of features • Big download size • Difficult to optimize

  4. FlexJS • MXML • AS3 (strongly typed, but ECMAScript) • Good IDEs • Flash Dependent • Lots of features • Big download size • Difficult Easy to optimize

  5. Let’s Build An App • MXML • IDE • Non CSS layout • Custom component

  6. Build for Flash • Put a breakpoint in IDE • Catch a Class Cast exception (handy for distributed development) • Incremental Build • Pixel perfect across browsers • Right click - Flash

  7. Build for JS • Right click - no flash • Show sources (can be minified) • Break and inspect in browser

  8. How did That Work? • In Flash • IDE compiles • FlexJS is just a set of libraries • In JS • Run Ant or Maven build • App code is transpiled (using Falcon JX) • Framework code was already transpiled

  9. Let’s Modify Using a Bead • Add a behavior • Put in MXML

  10. What Are These Beads? • Encapsulation of a single functionality • Can be added or removed • Can listen on strand or other beads • Components are strands • Model, view, controller, layout are examples of beads

  11. What’s So Good About Them? • Avoid overthinking hierarchy trees • Composition over inheritance • Easily override behavior • Configuration via CSS can be powerful • Don’t download code you don’t use • Faster download, faster code • Create your own components set by choosing your beads

  12. Demo • Add bead • Build, show code • Remove Bead • Build, show code

  13. Component Sets • Choose your component set • What are your needs? • Rapid development (Express) • Fast app startup (Basic) • 3 rd party library (MDL, CreateJS) • You can mix

  14. Contributing to Framework • Set up IDE to use framework libs • Create an example app • Add bead/component • Run test example in IDE • Run in JS • Good? Make pull request.

  15. Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend