Design Patterns
@pixelknitter is already working on this.
Since Aug 21, 2015.
Assessment
This issue has not been assessed yet.
Description
- require at top (core, package, file) then variables
- sync only during first tick => mark as
Sync - use promises => nodeify(), done(),
return - app as dependency injection
- middleware
- small modules
- export at top (single value) or bottom (multiple values)
- avoid parasitic (monkey patching the environment / runtime) code, except at app (top) level
- use js instead of JSON for configs (for comments)
- don't store state at the module level!!!! (export a constructor and store state in the instance)
- app lifecycle: require, configure, initialize, run (first tick contains: require, configure, start of initialize)
What success looks like: Succinctness and clarity. Less is more.
Reference Wikis: Modules & Packages
Open separate issues for required links to community sources if you're having trouble finding any.
Please assign to yourself before working on this.
- Dominant language
- No language data
- Stars
- 74
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from codepath/nodejs_guides
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
codepath/nodejs_guides#21 · 1 comment ·
-
enhancement
codepath/nodejs_guides#19 · 1 comment · 1 assignee ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
codepath/nodejs_guides#18 · 3 comments ·
-
help wanted
codepath/nodejs_guides#14 · 1 assignee ·
-
help wanted
codepath/nodejs_guides#11 · 3 comments · 1 assignee ·