Developing Backbone.js Applications. Building Better JavaScript Applications

- Autor:
- Addy Osmani
- Promocja Przejdź


- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 374
- Dostępne formaty:
-
ePubMobi
Opis książki: Developing Backbone.js Applications. Building Better JavaScript Applications
If you want to build your site’s frontend with the single-page application (SPA) model, this hands-on book shows you how to get the job done with Backbone.js. You’ll learn how to create structured JavaScript applications, using Backbone’s own flavor of model-view-controller (MVC) architecture.
Start with the basics of MVC, SPA, and Backbone, then get your hands dirty building sample applications—a simple Todo list app, a RESTful book library app, and a modular app with Backbone and RequireJS. Author Addy Osmani, an engineer for Google’s Chrome team, also demonstrates advanced uses of the framework.
- Learn how Backbone.js brings MVC benefits to the client-side
- Write code that can be easily read, structured, and extended
- Work with the Backbone.Marionette and Thorax extension frameworks
- Solve common problems you’ll encounter when using Backbone.js
- Organize your code into modules with AMD and RequireJS
- Paginate data for your Collections with the Backbone.Paginator plugin
- Bootstrap a new Backbone.js application with boilerplate code
- Use Backbone with jQuery Mobile and resolve routing problems between the two
- Unit-test your Backbone apps with Jasmine, QUnit, and SinonJS
Wybrane bestsellery
-
With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by applying classical and modern design patterns to the language. If you want to keep your code efficient, more manageable, and up-to-date with the latest best practices, t...
Learning JavaScript Design Patterns. A JavaScript and jQuery Developer's Guide Learning JavaScript Design Patterns. A JavaScript and jQuery Developer's Guide
(0,00 zł najniższa cena z 30 dni)135.15 zł
159.00 zł(-15%) -
To kolejne wydanie wyczerpującego, kompleksowego przewodnika po języku JavaScript oraz jego najważniejszych klienckich i serwerowych interfejsach API. Książka jest przeznaczona dla programistów, którzy chcą nauczyć się JavaScriptu lub udoskonalić swoje umiejętności tworzenia kodu. Ujęto w niej we...
JavaScript. Przewodnik. Poznaj język mistrzów programowania. Wydanie VII JavaScript. Przewodnik. Poznaj język mistrzów programowania. Wydanie VII
(0,00 zł najniższa cena z 30 dni)83.30 zł
119.00 zł(-30%) -
To kolejne wydanie lubianego samouczka, dzięki któremu w ramach 24 godzinnych lekcji przyswoisz solidne podstawy programowania. Zrozumiesz, jak działają programy, i nauczysz się reguł stosowanych przez profesjonalistów przy ich projektowaniu. Dowiesz się, jak wygląda świat programistów i na czym ...
Programowanie dla początkujących w 24 godziny. Wydanie IV Programowanie dla początkujących w 24 godziny. Wydanie IV
(0,00 zł najniższa cena z 30 dni)41.40 zł
69.00 zł(-40%) -
To książka przeznaczona dla osób, które posługują się językiem JavaScript i chcą wykorzystać jego możliwości do zbudowania kompletnej aplikacji internetowej. Prezentuje język TypeScript i opisuje jego najlepsze cechy, pokazuje także, w jaki sposób za pomocą takich frameworków jak React, Redux, No...
React, TypeScript i Node. Tworzenie aplikacji internetowych typu fullstack React, TypeScript i Node. Tworzenie aplikacji internetowych typu fullstack
(0,00 zł najniższa cena z 30 dni)76.30 zł
109.00 zł(-30%) -
Jeżeli chcesz poznać potencjał tego duetu i zacząć tworzyć atrakcyjne aplikacje internetowe, nie możesz obejść się bez tej książki. Pomoże Ci ona szybko stworzyć pierwszy skrypt. W trakcie lektury poznasz niuanse składni JavaScriptu, sposoby obsługi zdarzeń oraz obiektowy model strony. Dzięki dal...
JavaScript i jQuery. Interaktywne strony WWW dla każdego. Podręcznik Front-End Developera JavaScript i jQuery. Interaktywne strony WWW dla każdego. Podręcznik Front-End Developera
(0,00 zł najniższa cena z 30 dni)69.30 zł
99.00 zł(-30%) -
To książka przeznaczona dla średnio zaawansowanych użytkowników biblioteki React, którzy chcą tworzyć elastyczniejsze i łatwiejsze w utrzymaniu aplikacje. Wyjaśniono tu sposób działania wewnętrznych mechanizmów biblioteki React. Zaprezentowano, jak należy budować komponenty możliwe do wielokrotne...
React 17. Wzorce projektowe i najlepsze praktyki. Projektowanie i rozwijanie nowoczesnych aplikacji internetowych. Wydanie III React 17. Wzorce projektowe i najlepsze praktyki. Projektowanie i rozwijanie nowoczesnych aplikacji internetowych. Wydanie III
(0,00 zł najniższa cena z 30 dni)55.30 zł
79.00 zł(-30%) -
To drugie wydanie cenionego podręcznika dla początkujących programistów. Zawarty w nim materiał - podany jasno i przystępnie - pozwoli Ci w pełni poznać możliwości języka TypeScript 4. Naukę rozpoczniesz od zdobycia solidnych podstaw, a po przeanalizowaniu przejrzystych przykładów poznasz korzyśc...
TypeScript 4. Od początkującego do profesjonalisty. Wydanie II TypeScript 4. Od początkującego do profesjonalisty. Wydanie II
(0,00 zł najniższa cena z 30 dni)76.30 zł
109.00 zł(-30%) -
To kolejne, rozbudowane i uaktualnione wydanie świetnego podręcznika projektowania i programowania stron internetowych, zawierające wiedzę niezbędną do rozpoczęcia samodzielnej pracy. Opisano tu zasady tworzenia witryn WWW oraz przedstawiono język HTML i techniki CSS. Sporo miejsca poświęcono mul...
Projektowanie stron internetowych. Przewodnik dla początkujących webmasterów po HTML5, CSS3 i grafice. Wydanie V Projektowanie stron internetowych. Przewodnik dla początkujących webmasterów po HTML5, CSS3 i grafice. Wydanie V
(0,00 zł najniższa cena z 30 dni)90.30 zł
129.00 zł(-30%) -
W poprzednim tomie Nanonauci, którzy założyli własne Dojo Nano, wymyślili i napisali stronę internetową. Teraz przyszedł czas na grę. Będzie to prosta gra działająca w przeglądarce internetowej. Do kodowania posłuży Ci świetny język JavaScript, którym posługują się najlepsi programiści! W książce...(0,00 zł najniższa cena z 30 dni)
7.90 zł
24.90 zł(-68%) -
Uwaga, uwaga! Proszę państwa, kierujemy się w stronę JavaScriptu! Skoro zdecydowaliście się ruszyć z nami na tę pouczającą wycieczkę, to z pewnością dysponujecie znajomością języka HTML! Jeśli go jeszcze nie znacie, radzimy szybko to zmienić. HTML bowiem stanowi bazę, bez której trudno stworzyć s...
Frontend developer. Kurs video. JavaScript. Poziom podstawowy Frontend developer. Kurs video. JavaScript. Poziom podstawowy
(0,00 zł najniższa cena z 30 dni)32.45 zł
59.00 zł(-45%)
Ebooka przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video zobaczysz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP4 (pliki spakowane w ZIP)
Szczegóły książki
- ISBN Ebooka:
- 978-14-493-2855-9, 9781449328559
- Data wydania ebooka:
-
2013-05-10
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@helion.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 6.0MB
- Rozmiar pliku Mobi:
- 14.4MB
- Kategorie:
Technologie webowe » JavaScript - Programowanie
Spis treści książki
- Developing Backbone.js Applications
- Preface
- Target Audience
- Credits
- Reading
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Introduction
- What Is MVC?
- What Is Backbone.js?
- When Do I Need a JavaScript MVC Framework?
- Why Consider Backbone.js?
- Setting Expectations
- 2. Fundamentals
- MVC
- Smalltalk-80 MVC
- MVC Applied to the Web
- Client-Side MVC and Single-Page Apps
- Client-Side MVC: Backbone Style
- Implementation Specifics
- Models
- Views
- Templating
- Handlebars.js
- Underscore.js microtemplates
- Controllers
- MVC
- What Does MVC Give Us?
- Delving Deeper into MVC
- Summary
- Further Reading
- Fast Facts
- Backbone.js
- Used by
- 3. Backbone Basics
- Getting Set Up
- Models
- Initialization
- Default values
- Initialization
- Getters and Setters
- Model.get()
- Model.set()
- Direct access
- Listening for Changes to Your Model
- Validation
- Views
- Creating New Views
- What Is el?
- $el and $()
- setElement
- Understanding render()
- The events hash
- Collections
- Adding and Removing Models
- Retrieving Models
- Listening for Events
- Resetting/Refreshing Collections
- Underscore Utility Functions
- forEach: Iterate over collections
- sortBy(): Sort a collection on a specific attribute
- map(): Create a new collection by mapping each value in a list through a transformation function
- min()/max(): Retrieve item with the min or max value of an attribute
- pluck(): Extract a specific attribute
- filter(): Filter a collection
- indexOf(): Return the item at a particular index within a collection
- any() : Confirm if any of the values in a collection pass an iterator truth test
- size(): Return the size of a collection
- isEmpty(): Determine whether a collection is empty
- groupBy(): Group a collection into groups like items
- pick(): Extract a set of attributes from a model
- omit(): Extract all attributes from a model except those listed
- keys() and values(): Get lists of attribute names and values
- pairs(): Get list of attributes as [key, value] pairs
- invert(): Create object in which the values are keys and the attributes are values
- Chainable API
- RESTful Persistence
- Fetching Models from the Server
- Saving Models to the Server
- Deleting Models from the Server
- Options
- Events
- on(), off(), and trigger()
- listenTo() and stopListening()
- Events and Views
- Routers
- Backbone.history
- Backbones Sync API
- Overriding Backbone.sync
- Dependencies
- Summary
- 4. Exercise 1: TodosYour First Backbone.js App
- Static HTML
- Header and Scripts
- Application HTML
- Templates
- Static HTML
- Todo Model
- Todo Collection
- Application View
- Individual TodoView
- Startup
- In Action
- Completing and Deleting Todos
- Todo Routing
- Summary
- 5. Exercise 2: Book LibraryYour First RESTful Backbone.js App
- Setting Up
- Creating the Model, Collection, Views, and App
- Setting Up
- Wiring in the Interface
- Adding Models
- Removing Models
- Creating the Backend
- Install Node.js, npm, and MongoDB
- Install Node Modules
- Create a Simple Web Server
- Connect to the Database
- Talking to the Server
- Summary
- 6. Backbone Extensions
- MarionetteJS (Backbone.Marionette)
- Boilerplate Rendering Code
- Reducing Boilerplate with Marionette.ItemView
- Memory Management
- Region Management
- Marionette Todo App
- TodoMVC.js
- TodoMVC.Layout.js
- TodoMVC.TodoList.js
- Controllers
- CompositeView
- TodoMVC.TodoList.Views.js
- Todos.js
- Is the Marionette Implementation of the Todo App More Maintainable?
- Marionette and Flexibility
- And So Much More
- MarionetteJS (Backbone.Marionette)
- Thorax
- Hello World
- Embedding Child Views
- View Helpers
- collection Helper
- Custom HTML Data Attributes
- Thorax Resources
- Summary
- 7. Common Problems and Solutions
- Working with Nested Views
- Problem
- Solution 1
- Solution 2
- Solution 3
- Solution 4
- Working with Nested Views
- Managing Models in Nested Views
- Problem
- Solution
- Rendering a Parent View from a Child View
- Problem
- Solution
- Disposing View Hierarchies
- Problem
- Solution
- Rendering View Hierarchies
- Problem
- Solution
- Working with Nested Models or Collections
- Problem
- Solution
- Better Model Property Validation
- Problem
- Solution
- Backbone.validateAll
- Backbone.Validation
- Form-Specific Validation Classes
- Avoiding Conflicts with Multiple Backbone Versions
- Problem
- Solution
- Building Model and View Hierarchies
- Problem
- Solution
- Calling Overridden Methods
- Backbone-Super
- Event Aggregators and Mediators
- Problem
- Solution
- Event Aggregator
- Backbones event aggregator
- jQuerys event aggregator
- Mediator
- A mediator for Backbone
- Similarities and Differences
- Events
- Third-party objects
- Relationships: When to Use Which
- Event aggregator use
- Mediator use
- Event Aggregator and Mediator Together
- Pattern Language: Semantics
- 8. Modular Development
- Organizing Modules with RequireJS and AMD
- Maintainability Problems with Multiple Script Files
- Need for Better Dependency Management
- Asynchronous Module Definition (AMD)
- Writing AMD Modules with RequireJS
- Alternate syntax
- Getting Started with RequireJS
- RequireJS configuration
- RequireJS Shims
- RequireJS configuration
- Custom paths
- Organizing Modules with RequireJS and AMD
- Require.js and Backbone Examples
- Wrapping models, views, and other components with AMD
- Keeping Your Templates External Using RequireJS and the Text Plug-in
- Optimizing Backbone Apps for Production with the RequireJS Optimizer
- Summary
- 9. Exercise 3: Your First Modular Backbone and RequireJS App
- Overview
- Markup
- Configuration Options
- Modularizing Our Models, Views, and Collections
- Route-Based Module Loading
- JSON-Based Module Configuration
- Module Loader Router
- Using NodeJS to Handle pushState
- An Asset Package Alternative for Dependency Management
- 10. Paginating Backbone.js Requests and Collections
- Backbone.Paginator
- Live Examples
- Backbone.Paginator
- Paginator.requestPager
- Convenience Methods
- Paginator.clientPager
- Convenience Methods
- Implementation Notes
- Plug-ins
- Bootstrapping
- Styling
- Summary
- 11. Backbone Boilerplate and Grunt-BBB
- Getting Started
- Creating a New Project
- index.html
- config.js
- main.js
- app.js
- Creating Backbone Boilerplate Modules
- router.js
- Other Useful Tools and Projects
- Yeoman
- Backbone DevTools
- Summary
- 12. Backbone and jQuery Mobile
- Mobile App Development with jQuery Mobile
- The Principle of Progressive Widget Enhancement by jQMobile
- Understanding jQuery Mobile Navigation
- Mobile App Development with jQuery Mobile
- Basic Backbone App Setup for jQuery Mobile
- Workflow with Backbone and jQueryMobile
- Routing to a Concrete View Page, Inheriting from BasicView
- Management of Mobile Page Templates
- DOM Management and $.mobile.changePage
- Applying Advanced jQM Techniques to Backbone
- Dynamic DOM Scripting
- Intercepting jQuery Mobile Events
- Performance
- Clever Multiplatform Support Management
- 13. Jasmine
- Behavior-Driven Development
- Suites, Specs, and Spies
- beforeEach() and afterEach()
- Shared Scope
- Getting Set Up
- TDD with Backbone
- Models
- Collections
- Views
- View Testing
- Initial setup
- View rendering
- Rendering with a templating system
- View Testing
- Exercise
- Further Reading
- Summary
- 14. QUnit
- Getting Set Up
- Sample HTML with QUnit-Compatible Markup
- Getting Set Up
- Assertions
- Basic Test Case Using test( name, callback )
- Comparing the Actual Output of a Function Against the Expected Output
- Adding Structure to Assertions
- Basic QUnit Modules
- Using setup() and teardown()
- Using setup() and teardown() for Instantiation and Clean Up
- Assertion Examples
- Fixtures
- Fixtures Example
- Asynchronous Code
- 15. SinonJS
- What Is SinonJS?
- Basic Spies
- Spying on Existing Functions
- Inspection Interface
- Matching arguments: Test that a spy was called with a specific set of arguments
- Stricter argument matching: Test that a spy was called at least once with specific arguments and no others
- Testing call order: Test that a spy was called before or after another spy
- Match execution counts: Test that a spy was called a specific number of times
- What Is SinonJS?
- Stubs and Mocks
- Stubs
- Mocks
- Exercise
- Models
- Collections
- Views
- App
- Further Reading and Resources
- 16. Conclusions
- A. Further Learning
- A Simple JavaScript MVC Implementation
- Event System
- Models
- Views
- Controllers
- Practical Usage
- A Simple JavaScript MVC Implementation
- MVP
- Models, Views, and Presenters
- MVP or MVC?
- MVC, MVP, and Backbone.js
- Namespacing
- What Is Namespacing?
- Single global variables
- Object literals
- Nested namespacing
- What Is Namespacing?
- What Does DocumentCloud Use?
- Recommendation
- Backbone Dependency Details
- DOM Manipulation
- Utilities
- RESTful Persistence
- Routing
- Backbone Versus Other Libraries and Frameworks
- B. Resources
- Books and Courses
- Extensions/Libraries
- Index
- About the Author
- Colophon
- Copyright
O'Reilly Media - inne książki
-
FinOps brings financial accountability to the variable spend model of cloud. Used by the majority of global enterprises, this management practice has grown from a fringe activity to the de facto discipline managing cloud spend. In this book, authors J.R. Storment and Mike Fuller outline the proce...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Edge AI is transforming the way computers interact with the real world, allowing IoT devices to make decisions using the 99% of sensor data that was previously discarded due to cost, bandwidth, or power limitations. With techniques like embedded machine learning, developers can capture human intu...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Why is it difficult for so many companies to get digital identity right? If you're still wrestling with even simple identity problems like modern website authentication, this practical book has the answers you need. Author Phil Windley provides conceptual frameworks to help you make sense of all ...(0,00 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
Python was recently ranked as today's most popular programming language on the TIOBE index, thanks to its broad applicability to design and prototyping to testing, deployment, and maintenance. With this updated fourth edition, you'll learn how to get the most out of Python, whether you're a profe...(0,00 zł najniższa cena z 30 dni)
296.65 zł
349.00 zł(-15%) -
With the accelerating speed of business and the increasing dependence on technology, companies today are significantly changing the way they build in-house business solutions. Many now use low-code and no code technologies to help them deal with specific issues, but that's just the beginning. Wit...
Building Solutions with the Microsoft Power Platform Building Solutions with the Microsoft Power Platform
(0,00 zł najniższa cena z 30 dni)262.65 zł
309.00 zł(-15%) -
Companies are scrambling to integrate AI into their systems and operations. But to build truly successful solutions, you need a firm grasp of the underlying mathematics. This accessible guide walks you through the math necessary to thrive in the AI field such as focusing on real-world application...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
DevOps engineers, developers, and security engineers have ever-changing roles to play in today's cloud native world. In order to build secure and resilient applications, you have to be equipped with security knowledge. Enter security as code.In this book, authors BK Sarthak Das and Virginia Chu d...(0,00 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
With the increasing use of AI in high-stakes domains such as medicine, law, and defense, organizations spend a lot of time and money to make ML models trustworthy. Many books on the subject offer deep dives into theories and concepts. This guide provides a practical starting point to help develop...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Why are so many companies adopting GitOps for their DevOps and cloud native strategy? This reliable framework is quickly becoming the standard method for deploying apps to Kubernetes. With this practical, developer-oriented book, DevOps engineers, developers, IT architects, and SREs will learn th...(0,00 zł najniższa cena z 30 dni)
262.65 zł
309.00 zł(-15%) -
Learn the essentials of working with Flutter and Dart to build full stack applications that meet the needs of a cloud-driven world. Together, the Flutter open source UI software development kit and the Dart programming language for client development provide a unified solution to building applica...(0,00 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł(-15%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
W przypadku usługi "Druk na żądanie" termin dostarczenia przesyłki może obejmować także czas potrzebny na dodruk (do 10 dni roboczych)
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.


Oceny i opinie klientów: Developing Backbone.js Applications. Building Better JavaScript Applications Addy Osmani (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.