I have a habit of reading pull requests, issues, and discussions in some interesting open-source projects. It's fun sometimes and informative. You can learn in such a way. Especially when you don't have enough time to do actual open-source contributions.
Take, for example, this pull request: https://github.com/Devolutions/IronRDP/pull/192
What we can learn from it?
🔘 System boundaries: the focus of design.
🔴 Architectural Invariants.
🔘 When enums can be bad (see code example below) and how we can avoid it.
// can be bad somewhy
#[repr(u32)]
pub enum MyNetworkCode {
FirstValue = 0,
SecondValue = 1,
}
🟣 Examples of the in-repo documentation. Examples of the in-repo documentation.
🟡 And other interesting and useful stuff. (If you are interested, explore the rest by yourself 😏)
#rust
Take, for example, this pull request: https://github.com/Devolutions/IronRDP/pull/192
What we can learn from it?
🔘 System boundaries: the focus of design.
🔴 Architectural Invariants.
🔘 When enums can be bad (see code example below) and how we can avoid it.
// can be bad somewhy
#[repr(u32)]
pub enum MyNetworkCode {
FirstValue = 0,
SecondValue = 1,
}
🟣 Examples of the in-repo documentation. Examples of the in-repo documentation.
🟡 And other interesting and useful stuff. (If you are interested, explore the rest by yourself 😏)
#rust