Book description
A short composition that provides practice material for a particular musical skill is called an étude. In this hands-on book, you’ll find more than 30 études to help you practice ClojureScript skills for specific programming areas, ranging from functions and variables to asynchronous processing. Each of these small projects includes a description of a program that you will compose (write) in ClojureScript.
Though not as difficult as their musical counterparts, these programming études will help you stretch beyond the material and examples that you find in most ClojureScript books or online references. One chapter features études for an open-ended project that will help you put together what you’ve learned. Solutions to each étude are revealed in the appendix.
Programming areas include:
- Working with functions and variables with def and let
- Interacting with JavaScript and web pages, using several libraries
- Lists, vectors, and higher-order map, filter, and reduce functions
- Data mapping with ClojureScript
- Using different ClojureScript libraries to program with React
- Adding, subtracting, multiplying, and dividing rational and complex numbers with defprotocol and defrecord
- Asynchronous processing with core.async
J. David Eisenberg is a programmer and instructor in San Jose, California. He’s developed courses for CSS, JavaScript, CGI, and XML, and teaches Computer Information Technology courses at Evergreen Valley College. David has written Études for Erlang (O’Reilly), Let’s Read Hiragana (Eisenberg Consulting), and SVG Essentials (O’Reilly).
Publisher resources
Table of contents
- Preface
- 1. Functions and Variables
- 2. Interacting with JavaScript and Web Pages
- 3. Lists, Vectors, and Higher-Order Functions
- 4. Maps
- 5. Programming with React
- 6. Interlude: Room Usage Project
- 7. Records and Protocols
- 8. Asynchronous Processing
-
A. Solutions
- Solution 1-2
- Solution 1-3
- Solution 1-4
- Solution 1-5
- Solution 2-1
- Solution 2-2
- Solution 2-3
- Solution 2-4
- Solution 2-5
- Solution 3-1
- Solution 3-2
- Solution 3-3
- Solution 3-4
- Solution 3-5
- Solution 3-6
- Solution 3-7
- Solution 4-1
- Solution 4-2A
- Solution 4-2B
- Solution 4-3
- Solution 4-4
- Solution 4-5
- Solution 5-1
- Solution 5-2
- Solution 6-1
- Solution 6-2
- Solution 6-3
- Solution 7-1
- Solution 7-2
- Solution 7-3
- Sample core.async Program 1
- Sample core.async Program 2
- Solution 8-1
- B. Setting Up Your ClojureScript Environment
- C. Creating a ClojureScript Project with Leiningen
- D. ClojureScript on the Server
Product information
- Title: Etudes for ClojureScript
- Author(s):
- Release date: November 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491934890
You might also like
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
article
Use GitHub Copilot: Additional Tips
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
book
Professional Clojure
Clear, practical Clojure for the professional programmer Professional Clojure is the experienced developer's guide to functional …