mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
update readme
This commit is contained in:
parent
3b4490b00d
commit
1627902b8f
1 changed files with 9 additions and 4 deletions
13
README.md
13
README.md
|
|
@ -31,11 +31,16 @@ This guide in process
|
||||||
|
|
||||||
#### `browser`
|
#### `browser`
|
||||||
|
|
||||||
* Composition pattern, using standard `mod.rs` model
|
* Use [modern path pattern](https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-modrs)
|
||||||
* One mod = one widget. Create new mod for new widget implementation
|
* One module implements one GTK widget, it may include additional helper files in same location (like template, CSS or DB API)
|
||||||
* The codebase of module must be as minimal as possible: separate different tasks to sub-modules
|
* For children widget - create children module, located according to it hierarchy
|
||||||
|
* The codebase of module must be as minimal as possible, separate to sub-modules:
|
||||||
|
* different tasks
|
||||||
|
* massive structures
|
||||||
|
* structures with implementation
|
||||||
* Every module must:
|
* Every module must:
|
||||||
* access 1 level of child API, never parents (e.g.`super`)
|
* encapsulate: compose childs and stay composable for parents
|
||||||
|
* access 1 level of child API, never parents (e.g. through `super`)
|
||||||
* implement only one `struct` (same as one file for one class)
|
* implement only one `struct` (same as one file for one class)
|
||||||
* `struct` is public, where members - private
|
* `struct` is public, where members - private
|
||||||
* contain main `struct` implementation:
|
* contain main `struct` implementation:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue