Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Webmastering
- JavaScript
- Backbone.js Patterns and Best Practices. Improve your Backbone.js skills with this step-by-step guide to patterns and best practice. It will help you reduce boilerplate in your code and provide plenty of open source plugin solutions to common problems along the way
E-book details
Log in, If you're interested in the contents of the item.
Backbone.js Patterns and Best Practices. Improve your Backbone.js skills with this step-by-step guide to patterns and best practice. It will help you reduce boilerplate in your code and provide plenty of open source plugin solutions to common problems along the way
Ebook
- Backbone.js Patterns and Best Practices
- Table of Contents
- Backbone.js Patterns and Best Practices
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers and more
- 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. Reducing Boilerplate with Plugin Development
- Basic components of Backbone.js
- Using Underscore.js
- Re-using code with extensions
- Creating a base class
- Developing plugins without extending base classes
- Understanding JavaScript mixins
- What is a mixin?
- Creating classic mixins
- Creating functional mixins
- Caching mixin functions
- Using curry to combine a function and arguments
- Summary
- 2. Working with Views
- Basic usage of views
- Understanding the el property
- Listening to view events
- Displaying model data with templates
- Partially updating a view
- Understanding nested views
- Knowing when to use subviews
- Avoiding multiple DOM reflow
- Re-rendering parent views
- Removing parent views
- Working with templates
- Storing templates in an HTML file
- Storing templates in a JavaScript file
- Precompiling templates
- Avoiding evaluation in templates
- Using template helper functions
- Understanding automatic model-view data binding
- Using Marionettes ItemView, CollectionView, and CompositeView
- ItemView
- CollectionView
- Working with CompositeView
- Using Layout Manager
- Summary
- Basic usage of views
- 3. Working with Models
- Basic usage of models
- Using the defaults property
- Avoiding object references in the defaults property
- Data interaction with the server
- Creating a model
- Updating a model
- Fetching a model
- Deleting a model
- Using the defaults property
- Validating the data
- Using the Backbone.Validation plugin
- Configuring validation rules
- Prevalidating a model with the preValidate() method
- Using the Backbone.Validation plugin
- Serializing models
- Understanding the relational data model
- Summary
- Basic usage of models
- 4. Working with Collections
- Basic usage of collections
- Performing data operations with collections
- Fetching data from the server
- Saving data to the server
- Performing data operations with collections
- Sorting a collection
- Sorting a collection with multiple attributes
- Filtering a collection
- Performing basic filtering
- Filtering a collection with a duplicate collection
- Self-filtering with full data pointers
- Understanding the collection of multiple model types
- Summary
- Basic usage of collections
- 5. Routing Best Practices and Subrouting
- Working with routers
- Best practices for working with routers
- Avoiding large functional code in route methods
- Instantiating views in router methods
- Using regular expressions for selective routing
- Subrouting a key to organizing complex apps
- The all-in-one router
- The base router
- The Users module router
- Summary
- 6. Working with Events, Sync, and Storage
- Understanding custom events
- A simple case study on custom events
- Using an event dispatcher
- Creating multiple event dispatchers
- Using different event namespaces
- Avoiding memory leaks with the listenTo() method
- Overriding the Backbone.sync() method
- Offline storage using the Backbone.LocalStorage adapter
- Summary
- Understanding custom events
- 7. Organizing Backbone Applications Structure, Optimize, and Deploy
- Understanding the application directory structure
- Working with Asynchronous Module Definition
- Adding Require.js to your project
- Configuring dependencies
- Defining a module
- Creating application architecture
- Managing a project directory
- Organizing code with AMD
- Setting up an application
- Using the module pattern
- Managing objects and module communication
- Using the observer/PubSub pattern
- Using the mediator pattern
- Understanding view management
- Understanding other important features
- Summary
- 8. Unit Test, Stub, Spy, and Mock Your App
- Understanding why unit testing is important
- Testing with QUnit
- Performing a basic test case
- Understanding the QUnit module (), setup (), and teardown () methods
- Testing Backbone.js components with QUnit
- Using test spies, stubs, and mocks with SinonJS
- Testing with spies
- Testing with stubs
- Testing with mocks
- Difference between mocks and stubs
- Summary
- A. Books, Tutorials, and References
- Books for reference
- Tutorials
- Unit testing
- Other plugins and tutorials
- B. Precompiling Templates on the Server Side
- C. Organizing Templates with AMD and Require.js
- Precompiling with the requirejs-tpl plugin
- Index
- Title: Backbone.js Patterns and Best Practices. Improve your Backbone.js skills with this step-by-step guide to patterns and best practice. It will help you reduce boilerplate in your code and provide plenty of open source plugin solutions to common problems along the way
- Author: Swarnendu De
- Original title: Backbone.js Patterns and Best Practices. Improve your Backbone.js skills with this step-by-step guide to patterns and best practice. It will help you reduce boilerplate in your code and provide plenty of open source plugin solutions to common problems along the way.
- ISBN: 9781783283583, 9781783283583
- Date of issue: 2014-01-24
- Format: Ebook
- Item ID: e_3co5
- Publisher: Packt Publishing