CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs

Code Optimization

Open
#53 0 comments 1 reaction 3 assignees Claimed by @thehabes View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.