mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +00:00
update readme
This commit is contained in:
parent
ada426aae6
commit
814642ff2f
15
README.md
15
README.md
@ -25,22 +25,25 @@ cargo run
|
||||
|
||||
## Development
|
||||
|
||||
This guide in process
|
||||
Guide and protocol draft
|
||||
|
||||
### Modules
|
||||
### `browser`
|
||||
|
||||
#### `browser`
|
||||
#### Filesystem
|
||||
|
||||
* Use [modern path pattern](https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-modrs)
|
||||
* One module implements one GTK widget, it may include additional helper files in same location (like template, CSS or DB API)
|
||||
* For children widget - create children module, located according to hierarchy
|
||||
* The codebase of module must be as minimal as possible, separate to sub-modules:
|
||||
|
||||
#### Codebase
|
||||
|
||||
* The codebase must be as minimal as possible, separate:
|
||||
* different tasks
|
||||
* massive structures
|
||||
* structures with implementation
|
||||
* Every module must:
|
||||
* encapsulate: compose childs and stay composable for parents
|
||||
* access 1 level of child API, never parents (e.g. through `super`)
|
||||
* encapsulate it members: compose childs and stay composable for parents
|
||||
* access 1 level of childs, never parents (e.g. through `super`)
|
||||
* implement only one `struct` (same as one file for one class)
|
||||
* implementable `struct` is public, where members - private
|
||||
* contain main `struct` implementation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user