
ClojureScript: Up and Running
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Who Should Read This Book
- How to Use This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Introduction: Why ClojureScript?
- The Rise of Browser Applications
- The Rise of JavaScript
- The Need for a Better Language
- Introducing ClojureScript
- Chapter 2. Hello World
- Leiningen
- Installing Leiningen on OS X and Linux
- Installing Leiningen on Windows
- Using lein-cljsbuild
- Getting Started with the REPL
- Compiling a ClojureScript File to JavaScript
- Running ClojureScript in the Browser
- Other Capabilities of lein-cljsbuild
- Chapter 3. The Compilation Process
- Architecture
- Google Closure Compiler
- The Google Closure Library
- ClojureScript and Google Closure
- The Compilation Pipeline
- How to Compile
- Compiling ClojureScript
- Compilation in Depth
- Compilation Sources
- Compilation and Optimization Options
- Other Compilation Options
- Summary
- Chapter 4. ClojureScript Basics
- ClojureScript versus Clojure
- Expressions and Side Effects
- Syntax and Data Structures
- Symbols and Keywords
- Data Structures
- Special Forms and Definitions
- Functions
- Multi-Arity Functions
- Variadic Functions
- Local Bindings
- Destructuring
- Closures
- Flow Control
- Conditional Branching
- JavaScript Interop
- The js Namespace
- Methods and Fields
- Constructor Functions
- Scope of this
- Exceptions
- Summary
- Chapter 5. Data and State
- Primitives
- Strings
- Keywords
- Symbols
- Characters
- Numbers
- Booleans
- Functions
- nil
- Data Structures
- Collection Types
- Immutability
- Persistence
- Identity and State
- Atoms
- Chapter 6. Sequences
- The Sequence Abstraction
- Lazy Sequences
- Letting Go of the Head
- The Sequence API
- map
- reduce
- filter
- Other Useful Sequence Functions
- Chapter 7. Namespaces, Libraries, and Google Closure
- Namespaces
- Using Namespaces
- Using Namespaces Effectively
- The Implementation of Namespaces
- Advanced Compilation Mode
- Consuming Libraries
- ClojureScript Libraries
- JavaScript Libraries
- Creating Libraries
- For Consumption by ClojureScript
- For Consumption by JavaScript
- Chapter 8. Macros
- Code as Data
- Writing Macros
- Syntax-Quote
- Auto-Gensyms
- Using Macros
- When to Write Macros
- Summary
- Chapter 9. Development Process and Workflow
- Installing ClojureScript
- Checking Out from Source Control
- Downloading a Compressed Archive
- Installing Dependencies
- The Built-In Tools
- Command-Line Compilation
- Clojure REPL
- ClojureScript REPL
- The Browser REPL
- Setting Up the Browser REPL
- Additional lein-cljsbuild Features
- Launching a Browser REPL
- Custom bREPL Launch Commands
- Hooking Into Default Leiningen Tasks
- Testing ClojureScript Code
- Including ClojureScript in JAR Files
- Compiling the Same Code as Clojure and ClojureScript
- Chapter 10. Integration with Clojure
- AJAX
- The Reader and Printer
- Example Client-Server Application
- Extending the Reader
- User-Defined Tagged Literals
- Sharing Code
- Summary
- Appendix A. Libraries
- ClojureScript's Standard Library
- Google Closure Library
- Domina
- Enfocus
- Jayq
- C2
- core.logic
- About the Authors
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.