Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refactoring Pipelines

This repo is for people who are mostly familiar with JavaScript to work through the Martin Fowler article Refactoring with Loops and Collection Pipelines. The problems.js file contains the initial code before each refactor. The solutions.js contains my solutions to the problems for comparison. The tests.js file contains tests that ensure that refactors do not break the public interface of the functions.

How to play

  1. npm install
  2. npm test (or npm run test:watch if you want tests to automatically run after every save)
  3. Following the article, making changes to problems.js
  4. If you get stuck, refer to solutions.js
    1. For "Identifiers" section, underscore.js will be your friend

Acknowledgements

About

Porting of refactorings to JS from Martin Folwer article "Refactor with Loops and Collection Pipelines": https://martinfowler.com/articles/refactoring-pipelines.html

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages