mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
14 lines
368 B
Markdown
14 lines
368 B
Markdown
|
# Code Design
|
||
|
|
||
|
## Code Organization
|
||
|
|
||
|
1. Every function except `main.ts` should be pure. Pass any stateful information in parameters.
|
||
|
|
||
|
2. `misc.ts` should not depend on any other written code.
|
||
|
|
||
|
3. Each storage code should not depend on `sync.ts`.
|
||
|
|
||
|
## File and Folder Representation
|
||
|
|
||
|
While writing sync codes, folders are always represented by a string ending with `/`.
|