Skip to content

Refactor calculated properties #218

@exectails

Description

@exectails

There are properties that are calculated based on other properties, and to make this more efficient, we had decided to only recalculate them when necessary, but I think we need to reevaluate this approach, because it can be difficult to wrap your head around and it's very error prone. It's easy to forget to set up auto-updates, and when you get the value of a property, you kind of expect it to be the correct one, but that just isn't guaranteed currently.

I think we should switch to calculating everything on the fly for now and see where that gets us. If we operate under the assumption that we always get the correct value when requesting it, this won't cause any additional work down the line, even if we decide to cache values once more.

Additionally, there should be a simple way to replace these calculation functions from scripts, since users might want to adjust some of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is about improving the quality of code or a feature.refactoringThis issue relates to the refactoring of the code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions