|
Book details / order |
FUNCTIONAL JAVASCRIPT |
How can you overcome javascript language oddities and unsafe features? with this book, you’ll learn how to create code that’s beautiful, safe, and simple to understand and test by using javascript’s functional programming support. author michael fogus shows you how to apply functional-style concepts with underscore.js, a javascript library that facilitates functional programming techniques. sample code is available on github at https://github.com/funjs/book-source.
fogus helps you think in a functional way to help you minimize complexity in the programs you build. if you’re a javascript programmer hoping to learn functional programming techniques, or a functional programmer looking to learn javascript, this book is the ideal introduction.
use applicative programming techniques with first-class functions
understand how and why you might leverage variable scoping and closures
delve into higher-order functions—and learn how they take other functions as arguments for maximum advantage
explore ways to compose new functions from existing functions
get around javascript’s limitations for using recursive functions
reduce, hide, or eliminate the footprint of state change in your programs
practice flow-based programming with chains and functional pipelines
discover how to code without using classes
about the author
michael fogus is software developer with experience in distributedsimulation, machine vision, and expert systems construction. he's actively involved in the clojure and scala communities.
chapter 1 introducing functional javascript
the case for javascript
getting started with functional programming
the case for underscore
summary
chapter 2 first-class functions and applicative programming
functions as first-class things
applicative programming
data thinking
summary
chapter 3 variable scope and closures
global scope
lexical scope
dynamic scope
function scope
closures
summary
chapter 4 higher-order functions
functions that take other functions
functions that return other functions
putting it all together: object validators
summary
chapter 5 function-building functions
the essence of functional composition
currying
partial application
stitching functions end-to-end with compose
summary
chapter 6 recursion
self-absorbed functions (functions that call themselves)
codependent functions (functions calling other functions that call back)
too much recursion!
recursion is a low-level operation
summary
chapter 7 purity, immutability, and policies for change
purity
immutability
policies for controlling change
summary
chapter 8 flow-based programming
chaining
pipelining
data flow versus control flow
summary
chapter 9 programming without class
data orientation
mixins
}).call("finis");
appendix functional javascript in the wild
functional libraries for javascript
functional programming languages targeting javascript
appendix annotated bibliography
papers/books/blog posts/talks
presentations
blog posts
journal articles
colophon
Author : Michael fogus
Publication : Oreilly
Isbn : 9789351101710
Store book number : 105
NRS 760.00
|
|
|
|
|
|
|
|
|
|