This is a collection of books, tools, videos, and other resources for additional background on the topics covered in Refactoring JavaScript .
If any of the links go dead, try them on the Wayback Machine .
For sources without links, try searching the words given (with and without surrounding quotes), and you should be able to find them.
Most resources are free, but some are available only for purchase (or with clever searching). In the cases of nonfree resources, I have not provided a link and have included the author name for easier searching.
Origins of Refactoring
- “Refactoring Object-Oriented Frameworks” by William F. Opdyke
- Refactoring: Improving the Design of Existing Code by Martin Fowler, Kent Beck, John Brant, and William Opdyke (Addison-Wesley)
- Design Patterns: Elements of Reusable Object-Oriented Software (GoF book) by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (Addison-Wesley)
Baseline JavaScript(s)
- Speaking JavaScript: An In-Depth Guide for Programmers by Axel Rauschmayer (O’Reilly)
- Exploring ES6: Upgrade to the Next Version of JavaScript by Axel Rauschmayer (Leanpub)
- List of compiles-to-JS languages
- JavaScript: The Good Parts by Douglas Crockford (O’Reilly)
Keeping Up with JavaScript
JavaScript Reference
Object-Oriented Programs/Patterns (Including Anticlass Stances)
- Wikipedia: Software design pattern
- Refactoring catalog
- Learning JavaScript Design Patterns by Addy Osmani (O’Reilly)
- Game Programming Patterns by Robert Nystrom (Gennever Benning)
- Classes reference
- Wikipedia: Tony Hoare
- Wikipedia: Null Object pattern
- JavaScript Factory Functions vs Constructor Functions vs Classes
- You Don’t Know JS: This & Object Prototypes by Kyle Simpson
- Not Awesome: ES6 Classes
- JavaScript Patterns by Stoyan Stefanov (O’Reilly)
Async
- Continuation passing style
- JavaScript Promises: An Introduction
- Promises Pt. 1
- Promises Pt. 2
- JavaScript with Promises by Daniel Parker (O’Reilly)
Functional
- Hey Underscore, You’re Doing It Wrong
- JavaScript Allongé
- Fantasy Land Specification
- Professor Frisby’s Mostly Adequate Guide to Functional Programming
- Hindley–Milner Type System
- Learn You a Haskell for Great Good!
- Constraints Liberate, Liberties Constrain
- Functors, Applicatives, and Monads in Pictures
- Refactoring Ruby with Monads
- Burritos
- Functional-Light JavaScript by Kyle Simpson
- Functional JavaScript by Michael Fogus (O’Reilly)
Tools
- node (JavaScript outside of the browser)
- git (source/version control management)
- npm (node package manager)
- yarn (npm alternative)
-
node
assertand browserconsole.assert -
wish (
assertalternative) - mocha (big testing library)
- tape (smaller testing library)
- testdouble (mocking/stubbing framework)
- underscore.js (functional library)
- lodash (functional library)
- Ramda (better functional library)
- Sanctuary (FP with objects too)
- jQuery (JavaScript library)
- Trellus (function diagramming)
Non-JS-Specific but Relevant Sources
- Refactoring to Patterns by Joshua Kerievsky (Addison-Wesley)
- Design Patterns in Ruby by Russ Olsen (Addison-Wesley)
- Refactoring: Ruby Edition by Jay Fields, Shane Harvie, Martin Fowler, and Kent Beck (Addison-Wesley)
- The “Therapeutic Refactoring” presentation by Katrina Owen