CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
Code Optimization
Aperta
enhancement
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 2g 47m
- PR unite (30g)
- 4
Descrizione
- 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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.