Skip to content

General deduplication of function arguments#5

Merged
johannes-graner merged 6 commits into
mainfrom
refactor/better-internal-config
Sep 1, 2025
Merged

General deduplication of function arguments#5
johannes-graner merged 6 commits into
mainfrom
refactor/better-internal-config

Conversation

@johannes-graner

Copy link
Copy Markdown
Contributor

A large number of the functions are thin wrappers around other functions, so when they have a large number of arguments, very little logic is spread over many lines.

To make the codebase more readable, most arguments have been condensed into a couple of configuration objects that are passed instead. The result is a large reduction in the number of lines, without making the code more complex. Several functions were also removed altogether since it became clear that they were too thin wrappers to justify.

@johannes-graner johannes-graner changed the title General deduplication of mainly function arguments General deduplication of function arguments Aug 28, 2025

@haakanpersson haakanpersson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@johannes-graner
johannes-graner merged commit 0a03d57 into main Sep 1, 2025
@johannes-graner
johannes-graner deleted the refactor/better-internal-config branch September 1, 2025 07:11
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