Nicht aus der Schweiz? Besuchen Sie lehmanns.de
CoffeeScript in Action - Patrick Lee

CoffeeScript in Action

*****

(Autor)

Buch | Softcover
432 Seiten
2014
Manning Publications (Verlag)
978-1-61729-062-6 (ISBN)
CHF 61,30 inkl. MwSt
  • Titel ist leider vergriffen;
    keine Neuauflage
  • Artikel merken
  • Full coverage of CoffeeScript's syntax and structure
  • Illustrates CoffeeScript's unique advantages
  • Covers best practices and patterns for web app development

At the heart of JavaScript is a beautiful little language. Unfortunately, that inner beauty is clouded with awkward syntax and structure.

CoffeeScript is a new way to write JavaScript, providing Ruby-like readability and a more expressive syntax. It compiles into standard JavaScript and works on all implementations without modification. CoffeeScript in Action is a tutorial that teaches how, where, and why to use CoffeeScript.

It begins by quickly exposing readers to CoffeeScript's new, but instantly-familiar syntax. Then, it explores programming challenges that illustrate CoffeeScript's unique advantages. Language junkies will especially appreciate how this book takes idioms from other programming languages and shows how CoffeeScript makes them available in JavaScript.

This book is written for developers with exposure to JavaScript. No prior exposure to CoffeeScript is required.

Patrick Lee is a developer, designer and recovering consultant. He works with a startup called Canva.

preface
acknowledgments
about this book
about the cover illustration

Part 1 Foundations

Chapter 1 The road to CoffeeScript
Why CoffeeScript?
Running CoffeeScript
JavaScript
Evolving JavaScript
Creating CoffeeScript
Summary
Chapter 2 Simplified syntax
Your first program
Simple expressions
Operators
Statements
Strings
Arrays
Heres for comments, docs, and regexes
Putting it together
Summary
Chapter 3 First-class functions
Computation
Events
I/O
Higher-order functions
Scope
Closures
Putting it together
Summary
Chapter 4 Dynamic objects
Syntax
Key-value stores
Comprehensions
Structured data
Binding
Prototypes
Behavior
Classes
Putting it together
Summary

Part 2 Composition

Chapter 5 Composing objects
Being classical
Class inheritance
Class variables and properties
Overriding and super
Modifying prototypes
Extending built-ins
Mixins
Putting it together
Summary
Chapter 6 Composing functions
Clarity
State and mutability
Abstraction
Combinators
Summary
Chapter 7 Style and semantics
Rest and spread parameters
Destructuring
No nulls
No types—the duck test
When to use comprehensions (and when not to)
Fluent interfaces
Ambiguity
Summary
Chapter 8 Metaprogramming
Literate CoffeeScript
Domain-specific languages
How the compiler works
Bending code to your ideas
Summary
Chapter 9 Composing the asynchronous
Data processing
Event loops
Event emitters
Event composition
Summary

Part 3 Applications

Chapter 10 Driving with tests
No tests? Disaster awaits
How to write tests
Dependencies
Testing the asynchronous
System tests
Test suites
Summary
Chapter 11 In the browser
Getting started
Communicating with the outside world
Cross-browser compatibility
Creating a user interface
Creating animations
Structuring programs
Summary
Chapter 12 Modules and builds
Server-side modules (on Node.js)
Build automation with Cake
Client-side modules (in a web browser)
Application deployment
The final Cakefile
Summary
Chapter 13 ECMAScript and the future of CoffeeScript
CoffeeScript in the context of JavaScript
ECMAScript 5
ECMAScript 6
Source maps for debugging
Summary


appendix A Reserved words
appendix B Answers to exercises
appendix C Popular libraries
index

Erscheint lt. Verlag 15.5.2014
Verlagsort New York
Sprache englisch
Maße 189 x 234 mm
Gewicht 730 g
Themenwelt Informatik Software Entwicklung Objektorientierung
Informatik Web / Internet JavaScript
Informatik Web / Internet Web Design / Usability
ISBN-10 1-61729-062-9 / 1617290629
ISBN-13 978-1-61729-062-6 / 9781617290626
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
objektorientierte Entwicklung modularer Maschinen für die digitale …

von Thomas Schmertosch; Markus Krabbes; Christian Zinke-Wehlmann

Buch | Hardcover (2024)
Hanser (Verlag)
CHF 62,95
Entwicklung von GUIs für verschiedene Betriebssysteme

von Achim Lingott

Buch (2023)
Hanser, Carl (Verlag)
CHF 55,95
Principles and Practice Using C++

von Bjarne Stroustrup

Buch | Softcover (2024)
Addison Wesley (Verlag)
CHF 119,95