-
1. Prologo
- 1.1 Referencias
- 1.2 Agradecimientos
-
2. Same-origin policy
- 2.1 JSONP vs CORS
-
3. JSONP
- 3.1 Peticiones JSONP
-
4. CORS
- 4.1 Peticiones CORS sencillas
-
5. El valor de this
- 5.1 En una función global
- 5.2 En un método de un objeto
- 5.3 En un metodo de un prototipo
- 5.4 En una función constructora
- 5.5 Utilizando call o apply
- 5.6 Utilizando bind
- 5.7 En una función asociada a un evento
- 6. Prototype
-
7. Herencia
- 7.1 Encadenamiento de Prototipos (Prototype Chaining)
- 7.2 Moviendo metodos re-utilizables al prototypo
- 7.3 Herencia sólo del prototipo
- 7.4 Función constructora temporal F()
- 7.5 Encapsulando la herencia en una función
- 7.6 Robando el constructor
-
8. Contexto de Ejecución
- 8.1 Objeto Variable (Variable Object)
- 8.2 Fases de Procesamiento del Código
- 8.3 Tipos de Funciones
- 8.4 Hoisting
-
9. Scope
- 9.1 Ciclo de vida de una Función
-
10. Patrones de Código
- 10.1 Separación de capas
- 10.2 Namespaces
- 10.3 Init-time branching
- 10.4 Lazy Definition
- 10.5 Objeto de Configuración
- 10.6 Propiedades y Métodos Privados
- 10.7 Métodos Privilegiados
- 10.8 Funciones Privadas como Métodos Públicos (Revealing Module Pattern )
- 10.9 Funciones Inmediatas
- 10.10 Memoization
- 10.11 Patrón Modulo
- 10.12 Patrón Sandbox
-
11. Patrones de Diseño
- 11.1 Patrón Singleton
- 11.2 Patrón Factory
- 11.3 Patrón Iterator
- 11.4 Patrón Mixins
- 11.5 Patrón Decorator
- 11.6 Patrón Façade
- 11.7 Patrón Observer – Subscriber/Publisher
- 11.8 Patrón Mediator
-
12. Unit Testings en Javascript
- 12.1 Unit Testings (pruebas unitarias)
- 12.2 TDD y BDD
- 12.3 Testing Frameworks
- 12.4 Sinon
Apuntes de Javascript III
Nivel Avanzado
About
About the Book
Este libro contiene la segunda parte de los materiales que he ido realizando para diferentes trainings JAVASCRIPT impartidos desde 2010.
Son unas 80 páginas con conceptos más avanzados de Javascript que incluyen:
- Peticiones de datos a servidores y soluciones (Same-Origin Policy, JSONP, CORS)
- Javascript a fondo (scope, valor de this, prototype, contexto de ejecución)
- Javascript “orientado a objetos” (prototype, herencia)
- Cómo estructurar mejor tu codigo JS (patrones de diseño y de codigo)
- Cómo testear tu codigo js (unit testings)
Los conceptos cubiertos en este libro te permitiran que tu código JS sea orientado a objetos, testado, escalable, más comprensible y más organizado.
Author
About the Author
JuanMa Garrido
Senior Frontend Developer, with more than 8 years of experience in high performance sites like Cyloop and Softonic.
Wide experience in HTML5/CSS3 development and in delivering websites that are accessible, usable, cross-browser compatible and web standards compliant with the highest quality and fully semantic code. Fluid Layouts & Responsive Web Design
Expertise in Javascript, developing code in Agile software environments and applying software engineering like OOP, refactoring, design patterns and TDD.
Mobile Development using technologies such as: SASS/Compass, HAML, jQuery Mobile, Coffeescript, Backbone with RESTful APIs, Jasmine & PhoneGap
More than 300 Hours of experience (since 2000) as Teacher/Manager of different courses related to web development, internet and office applications
Twitter: https://twitter.com/juanmaguitar
LinkedIn: http://es.linkedin.com/in/juanmagarrido
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.