Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has keys validator tweaks #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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