Replies: 1 comment
-
planning to make the code cleaner, lets start from somewhere and fix one at a time |
Beta Was this translation helpful? Give feedback.
-
planning to make the code cleaner, lets start from somewhere and fix one at a time |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Dev,
What do you think about modeling the keyboard parameters?
I feel like the codebase is growing and becoming increasingly tangled and messy.
I think it might be better to replace the old way of handling the keyboard , with different
data classesandsealed classes.For example, there are some files that currently hold the keyboard parameters using the old Java approach, such as:
java/helium314/keyboard/keyboard/internal/KeyboardParams.javajava/helium314/keyboard/keyboard/internal/KeyDrawParams.javaOf course, switching to
data classesandsealed classeswould likely require a major refactor, but it would prevent the code from becoming a mess and make future development much easierBeta Was this translation helpful? Give feedback.
All reactions