Cargando…

Getting Started with Twitter Flight : Build Scalable, Modular JavaScript Applications with the Twitter Flight Framework /

Getting Started with Twitter Flight is written with the intention to educate the readers, helping them learn how to build modular powerful applications with Flight, Twitter's cutting-edge JavaScript framework. This book is for anyone with a foundation in JavaScript who wants to build web applic...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Hamshere, Tom
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2013.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; Foreword; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: What is Flight?; Who made Flight?; How does Flight work?; Event-driven interfaces; Scalable architecture; No parent-child relationships; No spaghetti code; Promote reusability with well-defined interfaces; The missing model; Simplify; Reduce boilerplate; Summary; Chapter 2: The Advantages of Flight; Simplicity; Efficient complexity management; Reusability; Agnostic architecture; Performance; Well-organized freedom; Summary; Chapter 3: Flight in the Wild.
  • Flight at TwitterFlight offers better performance; Flight provides a manageable codebase; Quotes from developers; On refactoring; On Flight's component architecture; Open source Flight projects; TodoMVC; Components for web applications; Extending Flight with two-way data binding; Summary; Chapter 4: Building a Flight Application; Scaffolding a Flight application with Yo; Installing Yo; Understanding the application structure; Running the application; Creating custom applications; Using Flight without a module loader; Troubleshooting; Debugging; Summary; Chapter 5: Components.
  • What is a component?Component types; Mixins; Creating your first component; Attaching components to the DOM; Performing actions on component initialization; Summary; Chapter 6: UI Components; Attaching components to an existing HTML; Listening for browser events; Attaching event handlers; Defining event handlers; Finding DOM nodes; Setting default attributes; Using attributes to select nodes; Triggering custom events in Flight; Triggering events on specific elements; Event names; Event data; Modifying the DOM; Summary; Chapter 7: Data Components; What is a data component?
  • Attaching data componentsNaming data events; Creating a data component; Listening for UI events; Event handlers; Triggering data events; Completing the task_data component; handleNeedsTask; handleNeedsTasks; handleTaskCompleted; Error handling; Handling data events; Summary; Chapter 8: Event Naming; The importance of event names; Events are not instructions; Suggested naming conventions; Summary; Chapter 9: Mixins; What are mixins?; When to use mixins; How do mixins work?; Creating mixins; Using mixins; Mixin priority; Creating your first mixin; Mix storage into Task Data.
  • Initializing the task list from storageExtending existing methods; Before and after; Around; Advice priority for component and mixins; Mixing mixins into mixins; Summary; Chapter 10: Templating and Event Delegation; Generating template objects from the DOM nodes; Constructing templates in components; Creating a templating mixin; Server-side compilation; Using HTML to determine state; Working with dynamic HTML
  • event delegation; Add delegated events to task_list; Completing a task; Summary; Chapter 11: Web Application Performance; Reducing time to page load; Deferred loading.