Embedding boxes directly into the object structs exposes too much and can cause breakage. It also has the side effect of the objects fulfilling tomo.Box which can introduce other problems. Objects should encapsulate their box and only expose what they need to.
Embedding boxes directly into the object structs exposes too much and can cause breakage. It also has the side effect of the objects fulfilling tomo.Box which can introduce other problems. Objects should encapsulate their box and only expose what they need to.
As a counter argument: the issues are mainly due to themes setting attributes on boxes that conflict with manually set ones. Once Tomo transitions fully to data-driven theming that is simply overridden by manually set attributes, this will be less of an issue. Additionally, if an attribute needs to be encapsulated/controlled, the objects can override the setter.
As a counter argument: the issues are mainly due to themes setting attributes on boxes that conflict with manually set ones. Once Tomo transitions fully to data-driven theming that is simply overridden by manually set attributes, this will be less of an issue. Additionally, if an attribute needs to be encapsulated/controlled, the objects can override the setter.
sashakoshka
changed title from Stop embedding Tomo boxes to Stop embedding Tomo boxes?2024-06-27 13:00:04 -06:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Embedding boxes directly into the object structs exposes too much and can cause breakage. It also has the side effect of the objects fulfilling tomo.Box which can introduce other problems. Objects should encapsulate their box and only expose what they need to.
As a counter argument: the issues are mainly due to themes setting attributes on boxes that conflict with manually set ones. Once Tomo transitions fully to data-driven theming that is simply overridden by manually set attributes, this will be less of an issue. Additionally, if an attribute needs to be encapsulated/controlled, the objects can override the setter.
Stop embedding Tomo boxesto Stop embedding Tomo boxes?Stop embedding Tomo boxes?to Stop embedding Tomo boxesChanges in Tomo 0.40.0-present have made this both viable and desirable
This took an ENTIRE DAY!!!