mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-12 16:03:31 -07:00
31 lines
553 B
Markdown
31 lines
553 B
Markdown
# Rule
|
|
|
|
before editing a file, always explain why that code, why it's the most optimal one and wait for my feedback
|
|
|
|
# Types
|
|
|
|
To check types run:
|
|
|
|
```sh
|
|
npx --package typescript tsc --noEmit --pretty false | grep -v "modules/"
|
|
```
|
|
|
|
# Code
|
|
|
|
ALWAYS
|
|
|
|
- very fast
|
|
- light (memory)
|
|
- KISS
|
|
- DRY
|
|
- very well organized
|
|
- contained
|
|
- colocated
|
|
- composed
|
|
- prefer one concept per file
|
|
- prefer more files and folders than big files
|
|
- reads like english
|
|
- easy to understand
|
|
- maintainability
|
|
- avoid defensive checks when the code itself guarantees correctness
|