Cover image for Getting Started with Twitter Flight.
Getting Started with Twitter Flight.
Title:
Getting Started with Twitter Flight.
Author:
Hamshere, Tom.
ISBN:
9781783280964
Personal Author:
Physical Description:
1 online resource (170 pages)
Contents:
Getting Started with Twitter Flight -- Table of Contents -- Getting Started with Twitter Flight -- Credits -- Foreword -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Errata -- Piracy -- Questions -- 1. What is Flight? -- Who made Flight? -- How does Flight work? -- Event-driven interfaces -- Scalable architecture -- No parent-child relationships -- No spaghetti code -- Promoting reusability with well-defined interfaces -- The missing model -- Simplification -- Reducing boilerplate -- Summary -- 2. The Advantages of Flight -- Simplicity -- Efficient complexity management -- Reusability -- Agnostic architecture -- Improved Performance -- Well-organized freedom -- Summary -- 3. Flight in the Wild -- Flight at Twitter -- Better performance -- 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 -- 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 -- 5. Components -- What is a component? -- Component types -- Mixins -- Creating your first component -- Attaching components to the DOM -- Performing actions on component initialization -- Summary -- 6. UI Components -- Attaching components to 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 -- 7. Data Components -- What is a data component? -- Attaching data components -- Naming 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 -- 8. Event Naming -- The importance of event names -- Events are not instructions -- Suggested naming conventions -- Summary -- 9. Mixins -- What are mixins? -- When to use mixins -- How do mixins work? -- Creating mixins -- Using mixins -- Mixin priority -- Creating your first mixin -- Mixing storage into taskData -- Initializing the task list from storage -- Extending existing methods -- before and after -- around -- Advice priority for components and mixins -- Mixing mixins into mixins -- Summary -- 10. Templating and Event Delegation -- Generating template objects from DOM nodes -- Constructing templates in components -- Creating a templating mixin -- Server-side compilation -- Using HTML to determine state -- Working with dynamic HTML - event delegation -- Adding delegated events to task_list -- Completing a task -- Summary -- 11. Web Application Performance -- Reducing time to page load -- Deferred loading -- Server-side rendering -- Using the DOM to determine state -- Using request type to determine response -- Perceived performance -- Applying perceived performance in Flight -- Summary -- 12. Testing -- What does a test look like? -- Testing the interface -- Obtaining a reference to a component instance -- Instantiating standalone mixins.

Triggering browser events -- Allowing for refactoring -- Testing teardown -- Testing component instantiation -- Extending Jasmine for Flight -- Jasmine and AMD -- Event assertions -- Testing whether methods have been called -- Summary -- 13. Complexities of Flight Architecture -- The danger of nested components -- Teardown -- Atomic components -- Testing -- Creating a flat component structure -- Mixins versus components -- Working with components -- Working with mixins -- Summary -- A. Flight API Reference -- Components -- Component definition -- Mixin definition -- Using mixins -- Instantiating components -- Methods available on a component instance -- Advice -- before -- after -- around -- Initialization -- defaultAttrs -- select -- Events -- on -- off -- trigger -- teardown -- Using Flight's registry -- findInstanceInfoByNode -- findInstanceInfo -- allInstances -- Index.
Abstract:
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 applications. Flight is quick and easy to learn, built on technologies you already understand such as the DOM, events, and jQuery.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: