Functional-Light JavaScript
Balanced, Pragmatic FP in JavaScript
A uniquely pragmatic approach to explaining core functional programming concepts WITHOUT wading through mathematical notation or heavy terminology.
About
About the Book
This book explores the core principles of functional programming (FP) as they are applied to JavaScript. But what makes this book different is that we approach these principles without drowning in all the heavy terminology. We look at a subset of FP foundational concepts that I call "Functional-Light Programming" (FLP) and apply it to JavaScript.
Categories
Feedback
Packages
Pick Your Package
All packages include the ebook in the following formats: PDF, EPUB, and Web
Book & Code
Minimum price
Suggested price$29.95Includes the ebook and the code for Chapter 11 "Stock Ticker" example.
$26.95
- Chapter 11 Example CodeCode for the Chapter 11 "Stock Ticker" example project
5 Ebook License
Minimum price
Suggested price$124.955 licenses for the ebook, plus the Chapter 11 example code.
$109.95
- Chapter 11 Example CodeCode for the Chapter 11 "Stock Ticker" example project
This book is also available in the following packages:
10 Ebook License
10 licenses for the ebook, plus the Chapter 11 example code.
- Chapter 11 Example CodeCode for the Chapter 11 "Stock Ticker" example project
- Minimum price
- $199.95
- Suggested price
- $229.95
- Chapter 11 Example Code
Author
About the Author
Kyle Simpson
Kyle Simpson is a web-oriented software engineer, widely acclaimed for his "You Don't Know JS" book series and nearly 1M hours viewed of his online courses. Kyle's superpower is asking better questions, who deeply believes in maximally using the minimally-necessary tools for any task. As a "human-centric technologist", he's passionate about bringing humans and technology together, evolving engineering organizations towards solving the right problems, in simpler ways. Kyle will always fight for the people behind the pixels.

Episode 166
An Interview with Kyle Simpson
Contents
Table of Contents
Foreword
Preface
- Mission
Chapter 1: Why Functional Programming?
- At a Glance
- Confidence
- Communication
- Readability
- Perspective
- How to Find Balance
- Resources
- Summary
Chapter 2: The Nature Of Functions
- What Is a Function?
- Function Input
- Note
- Tip
- Tip
- Named Arguments
- Tip
- Function Output
- Tip
- Note
- Functions of Functions
- Warning
- Note
- Tip
- Syntax
- Note
- What’s This?
- Note
- Note
- Summary
Chapter 3: Managing Function Inputs
- All for One
- Note
- Tip
- Warning
- Adapting Arguments to Parameters
- Note
- Note
- Some Now, Some Later
- Tip
- Note
- One at a Time
- Note
- Note
- Warning
- Order Matters
- Tip
- Tip
- Note
- No Points
- Warning
- Warning
- Note
- Summary
Chapter 4: Composing Functions
- Output to Input
- Note
- Note
- General Composition
- Warning
- Note
- Note
- Note
- Reordered Composition
- Abstraction
- Revisiting Points
- Note
- Tip
- Summary
Chapter 5: Reducing Side Effects
- Effects on the Side, Please
- Note
- Note
- Note
- Once Is Enough, Thanks
- Pure Bliss
- Note
- Note
- Note
- Note
- There or Not
- Purifying
- Note
- Warning
- Note
- Summary
Chapter 6: Value Immutability
- Primitive Immutability
- Value to Value
- Reassignment
- Performance
- Treatment
- Summary
Chapter 7: Closure vs. Object
- The Same Page
- Look Alike
- Note
- Two Roads Diverged in a Wood…
- Note
- Note
- Note
- Summary
Chapter 8: Recursion
- Definition
- Warning
- Note
- Note
- Declarative Recursion
- Tip
- Stack
- Note
- Note
- Rearranging Recursion
- Note
- Warning
- Summary
Chapter 9: List Operations
- Note
- Non-FP List Processing
- Map
- Note
- Note
- Filter
- Reduce
- Warning
- Note
- Note
- Advanced List Operations
- Note
- Note
- Note
- Note
- Note
- Tip
- Method vs. Standalone
- Note
- Note
- Looking for Lists
- Fusion
- Beyond Lists
- Note
- Note
- Note
- Summary
Chapter 10: Functional Async
- Time as State
- Eager vs. Lazy
- Note
- Reactive FP
- Note
- Note
- Note
- Summary
- Tip
Chapter 11: Putting It All Together
- Setup
- Note
- Note
- Stock Events
- Stock Ticker UI
- Note
- Summary
Appendix A: Transducing
- Why, First
- How, Next
- Note
- What, Finally
- Note
- Summary
Appendix B: The Humble Monad
- Type
- Loose Interface
- Just a Monad
- Note
- Maybe
- Note
- Humble
- Summary
Appendix C: FP Libraries
- Stuff to Investigate
- Ramda (0.23.0)
- Lodash/fp (4.17.4)
- Mori (0.3.2)
- Bonus: FPO
- Bonus #2: fasy
- Summary
Contributors
About the Contributors
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
About the Publisher
About the Publisher
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.
