Leanpub Header

Skip to main content

CoffeeScript

Un pequeño gran libro

Descubre como convertirte en un mejor desarrollador escribiendo JavaScript con CoffeeScript, el lenguaje que ha revolucionado el mundo web y que empresas como AirBnB o Dropbox lo utilizan actualmente en sus productos.
Free With Membership

With Membership

Free!

$7.99

You pay

$7.99

Author earns

$6.39
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
4,450
Readers
5
Pages
0Words
About

About

About the Book

Jeremy Ashkenas comenzó con el proyecto CoffeeScript el 13 de Diciembre del 2009 con un misterioso e intrigante comentario en su primer commit en GitHub "initial commit of the mystery language". Comenzó creando el compilador en Ruby pero en apenas 3 meses cambio de idea e hizo que el compilador estuviese escrito con su propio lenguaje, CoffeeScript. El proyecto pronto fue seguido por multitud de desarrolladores en GitHub, donde tanto Jeremy como el resto de contribuyentes añadían nuevas características cada mes.

Después de publicarse la versión 1.0 en navidades del 2010, CoffeeScript se convirtió en uno de los proyectos más seguidos en GitHub. El lenguaje volvió a tener un empujón en la escena web, cuando en Abril del 2011 David Heinemeier Hansson confirmó los rumores que decían que CoffeeScript iba a estar incluido en la versión 3.1 de Ruby on Rails.

Y yo me pregunto ¿como puede ser que un lenguaje tan pequeño haya captado tanto interés? Tres razones me vienen a la mente: divertido, seguro y fácil de leer.

Share this book

License

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

Author

About the Author

JΛVI

Javi Jiménez es un doer, apasionado por el OpenSource e Internet. Fundó Tapquo en el 2011, ha desarrollado frameworks que usan miles de programadores en todo el mundo, autor de “CoffeeScript” (Leanpub), evangelista de las WWW, miembro de la W3C, conferenciante y mucho más. 

Ahora mismo se encuentra dando la vuelta al mundo en busca de nuevos retos, nuevas formas de creación de software y nuevas experiencias.

Contents

Table of Contents

  • Agradecimientos
  • Prefacio
    • JavaScript, El lenguaje padre
    • CoffeeScript, El hijo bastardo
    • Un libro por el mundo
  • 1. Comenzando
    • 1.1 Entorno necesario
    • 1.2 Instalando NodeJS
    • 1.3 Instalando CoffeeScript
  • 2. Sintaxis
    • 2.1 Valores, variables y comentarios
    • 2.2 Interpolación de cadenas
    • 2.3 Control de flujo
    • 2.4 Loops
    • 2.5 Alias y Operadores
  • 3. Funciones, Ámbito y Contexto
    • 3.1 Funciones
    • 3.2 Funciones y Argumentos
    • 3.3 Llamando a funciones
    • 3.4 Ámbito
    • 3.5 Contexto
    • 3.6 Cambio de contexto en funciones
  • 4. Objetos y Arrays
    • 4.1 Recordando JavaScript y sus Objetos
    • 4.2 Objetos
    • 4.3 Arrays
    • 4.4 Comprensiones
  • 5. Clases
    • 5.1 Prototipos
    • 5.2 Clases
    • 5.3 Herencia
    • 5.4 Polimorfismo
  • 6. Modularización
    • 6.1 Namespacing
    • 6.2 Mixins
    • 6.3 Extendiendo clases
  • 7. Bibliografía

Contributors

About the Contributors

Modesto San Juan

Catalina Oyaneder

Jose Francisco Verdu

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.

Learn more about writing on Leanpub