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

Philosophy #7

Open
craigspaeth opened this issue Dec 24, 2016 · 0 comments
Open

Philosophy #7

craigspaeth opened this issue Dec 24, 2016 · 0 comments

Comments

@craigspaeth
Copy link
Collaborator

craigspaeth commented Dec 24, 2016

Taking notes on some ideas to reference when making decisions on picking tools and designing APIs...

  • foo.use(() =>) can be a common way to mixin functionality
  • foo.on('bar baz', () =>) can be a way to hook into lifecycle/events/scoped-things
  • Arrow functions all around, avoiding classes and this
  • Async/await over callbacks/generators/plain-promises
  • Middleware as a common composition pattern
  • Standard format linted
  • Stage 4 approved, Node-first universal, JS (e.g. Avoiding transpiled additions like JSX, flow, webpack loaders or browserify transforms)
  • Solve for 80% of use cases with obvious escape hatches for the other 20%
  • minimal > proper
  • obvious > pure
  • pragmatic > the right way
  • composition > inheritence
  • fun > jargon
  • procedural/functionalish > OO
  • explict > implicit
  • wrapping modules > convention > configuration
  • stand on shoulders of tall people > re-invent the wheel

Some articles that feels aligned in some ways:

@craigspaeth craigspaeth changed the title Philosophy Playbook Philosophy Dec 26, 2016
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

No branches or pull requests

1 participant