Skip to content

Comments

Code readability improvements#740

Merged
yannickwurm merged 2 commits intowurmlab:masterfrom
tadast:tt/readability
May 1, 2024
Merged

Code readability improvements#740
yannickwurm merged 2 commits intowurmlab:masterfrom
tadast:tt/readability

Conversation

@tadast
Copy link
Collaborator

@tadast tadast commented May 1, 2024

I was looking at this code for debugging reasons and made a few improvements to make the code easier to understand. No changes in behaviour. See each commit not for rationale.

tadast added 2 commits April 30, 2024 10:44
Extract large result warning logic to dedicated methods so that the
controller action is not so long.
1) the name is misleading, as of a recent refactoring the
generation activity is "lazy", meaning the report generation is not
triggered until it's being accessed. This allows to instantiate
and object and do other opeations on it.

2) The abstraction is not used and just makes the code harder to reason
about. If a different report type is needed, an abstraction can be
added knowing all the context about it, not prematurely...
@tadast tadast force-pushed the tt/readability branch from 556d736 to fce0c44 Compare May 1, 2024 10:10
@yannickwurm yannickwurm merged commit db803cd into wurmlab:master May 1, 2024
@tadast tadast deleted the tt/readability branch May 7, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants