Skip to content

Conversation

@eschwartz
Copy link

Not sure if you're accepting pull requests which change example code from the book... just a couple of things I noticed while reading through Ch4, which I think would make the example code easier to grok.

Thank you for the great content in this book! I'm almost to the point where I think functional programming isn't crazy :)

Edan Schwartz added 2 commits September 22, 2014 08:35
- We just talked about abstracting the
  creation of validator functions. Why go
  back to using the clunky `fn.message` assignment
  now?
- It seems as though there is a de-facto naming
  standard in "Functional Javascript"
  of using nouns for functions which return functions.
  eg. `checker` returns a function, while `checkCommand` returns
  an array.
  If this is correct, it would follow that `hasKeys` would return a
  boolean, while in fact, if returns a validator function.
  Renaming the function to `hasKeysValidator` makes it clear
  that the function returns a validator function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants