Ext JS Application Development Blueprints
eBook - ePub

Ext JS Application Development Blueprints

Colin Ramsay

Compartir libro
  1. 340 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Ext JS Application Development Blueprints

Colin Ramsay

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Ext JS Application Development Blueprints un PDF/ePUB en línea?
Sí, puedes acceder a Ext JS Application Development Blueprints de Colin Ramsay en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming in JavaScript. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781784395308

Ext JS Application Development Blueprints


Table of Contents

Ext JS Application Development Blueprints
Credits
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
Downloading the example code
Errata
Piracy
Questions
1. Introduction
Humble beginnings
Growing up
The shoulders of giants
What is application architecture?
Requirement analysis
Data design
Code design
Technology evaluation
Code standards and practices
Documentation
Ext JS
The world that was
State of the art
Mostly very cool
Supporting cast
Getting ready
The specification
A good match
How we work
In safe hands
If you build it, they will come
Managing your time
You can buy fashion, but you can't buy style
Summary
2. MVC and MVVM
Diary of always
Bringing MVC to the Web
Ext JS and MVC
Examples of Ext JS MVC
How does it help your application
MVC and the illusion of choice
Introducing MVVM
How does Ext JS use MVVM?
Getting our MVVM started
Are we better off?
A brief interlude regarding stores
Inter-communication
The main event
Event domains
An event domain example
Using custom events
Summary
3. Application Structure
Ideas for structure
Getting to know your application
/overrides
/.sencha
bootstrap.js, bootstrap.json, and bootstrap.css
/packages
/resources and SASS
index.html
/build and build.xml
app.js
app.json
Cultivating your code
I'm a lumberjack – let's go log in
Money can't buy class
Singletons
Mixins
The solution to pollution
A global solution to a local problem
Summary – mind your own beeswax
4. Sencha Cmd
What is Sencha Cmd?
Why is it important?
The act of creation
Setting up your application
The generation game
Develop in style
Here to serve – a website
The Bootstrap process
Care for the environment
The final product
Before the build
Code complete
An application for Ant
Version numbers
From release to production
The best of the rest
Packages
Themes
Compilations
Summary
5. Practical – a CMS Application
A content-managed system
The requirements
Accepting the challenge
Starting at the bottom
Work your way up
The devil is in the detail
Where the wild things are
Spiky and hairy
The real deal
A short interlude on data binding
Creating a structure
Data-driven design
A model store
A room with a view
The tree panel and searching
Pages in detail
The magical page view model
This data is now in session
The glue controlling all
Selecting a page
Adding a page
Deleting a page
Saving a page
Summary
6. Practical – Monitoring Dashboard
Application design
Requirements
Message received and understood
Data structure
Live charts
Historical logs
Log statistics
Model behavior
The view from the top
Flexibility and pragmatism
Does this hurt?
Onwards and upwards
Data first
Storing the data
With a view to a controller
The main view controller
Rootin-Tootin
Back to business
Route to nowhere
The dashboard
Constant evaluation
The dashboard view model
The dashboard view controller
Web logs subpage
A view on the Web
Controlling the Web
More and more subpages
Summary
7. Practical – an E-mail Client
Form factors
Application design
I require to admire
Technically speaking
Responding to the situation
Input required
A view to a thrill
Mainly harmless
Full steam ahead
Threading our way
Send me a message
Stay composed
Design overview
Application state
Home screen/initial load
New thread
Show thread
New message/reply
Routing overview
A binding agreement
An eventful application
Events and you
Coding – it's been a long time
It's under control
Login view
Main force
Main ViewModel
Main ViewController
The head of the family
Header ViewModel
Header ViewController
Unravel the thread
Thread ViewModel
Thread ViewController
I am the best message
Messages ViewModel
Messages ViewController
A composed finish
Deciding on a theme
Summary
8. Practical – Questionnaire Component
Application design – my way
Data structure
Consider carefully
Data flow
A binding trick
A difference of opinion
A means to an end
Sketchy sketching
Get set
The data layer
The payload
The wizard component
Do it yourself
Wizardly tools
One step forward
Making progress
Step by step
Questionnaire command and control
The wizard model
A delightful host
Mixin the night away
Summary
9. A Shopping Application
About the app
The product window
The shopping cart
Login and registration
User account
Design overview
Back to Ext JS
The data layer
Information contemplation
Component interaction
In control
The simplicity of view models
Code, code, and more code
What's in store?
Interface in your face
One step ahead
Under the main control
Categorically speaking
Product placement
A basket case
The account window
Summary
10. Debugging and Performance
In-browser debugging
Stepping in
Breaking point
Black box and cut to the chase
Breaking and busting
Caught in the act
Performance in Ext JS
Network performance
Make fewer requests
Perceived performance
Load less
Optimistic updating
Quick on the draw
Overuse of panels
Overnesting
Deferred rendering
Analyzing performance
Summary
11. Application Testing
Total testing
Unit testing
Assert yourself
Integration testing
Integration and differentiation
Testing tool time with Jasmine
Jasmine – installation and configuration
Make it happen
Testing with robots
Up and running with CasperJS
Testability
Should I or shouldn't I?
Faking it with mocks
Continuous coverage
Summary
Index

Ext JS Application Development Blueprints

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1170415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-530-8
www.packtpub.com

Credits

Author
Colin Ramsay
Reviewers
Govinda Sambamurthy
Vincent Stanislaus
Acquisition Editor
Kevin Colaco
Content Development Editor
Arwa Manasawala
Technical Editor
Shashank Desai
Copy Editor
Relin Hedly
Project Coordinators
Danuta Jones
Purav Motiwalla
Proofreaders
Simran Bhogal
Stephen Copestake
Safis Editing
Indexer
Hemangini Bari
Graphics
Disha Haria
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Colin Ramsay is a software developer and writer with 15 years of coding experience. From .NET to Ruby, JavaScript, and CSS, he has worked with a range of technologies and local and international clients. His company, Go Tripod Ltd., is based in Cornwall, UK. This company work...

Índice