Browse Source

update readme

master
yggverse 2 months ago
parent
commit
1627902b8f
  1. 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…
Cancel
Save