CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
Code Optimization
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 6
- Avg merge
- 1h 25m
- Merged PRs (30d)
- 3
Description
- Conditional assignments
- conditional and logical chains
- `a ? yay : boo` and `??`
- `hey["horse"]` and `hey.horse`
- `obj.hasOwnProperty("__rerum")` and `obj?.__rerum`
- tic, single, and double quote string after `=` and in foo("param", 'parame', \`paramete\`)
- `const` and `let`
- semicolon that ends a line of code
- #82
- pass `db.collection` into controllers
- separate controller actions from the database manager
- etc.
Line it up. Be consistent. Test what you change, don't break anything.
Contributor guide
Assessment
This issue has not been assessed yet.