Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verschiedene Optionen mit ENUMS leserlicher machen #11

Closed
AlexanderRitter02 opened this issue Jun 4, 2020 · 0 comments
Closed

Verschiedene Optionen mit ENUMS leserlicher machen #11

AlexanderRitter02 opened this issue Jun 4, 2020 · 0 comments
Labels
config.yml Everything about configuration files Enhancement Suggest a new feature or change
Milestone

Comments

@AlexanderRitter02
Copy link
Owner

Bezieht sich dein Vorschlag auf ein Problem?
Die Option bordermode: hat 0, 1 und 2 als Einstellungsmöglichkeit.
Es ist schwer, zu erkennen, was diese bedeuten. Auch im Code selbst ist das schlecht für die Leserlichkeit.

Der Vorschlag
Verwende sogennante Enums für bestimmte Optionen:

Alternativen

  • Verwende Strings - verbrauchen mehr RAM
  • Erklärung für die Zahlen - trotzdem im Code nicht übersichtlich & nicht auf den ersten Blick
@AlexanderRitter02 AlexanderRitter02 added the Enhancement Suggest a new feature or change label Jun 4, 2020
@AlexanderRitter02 AlexanderRitter02 added this to the 1.9 milestone Jun 4, 2020
@AlexanderRitter02 AlexanderRitter02 added the config.yml Everything about configuration files label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config.yml Everything about configuration files Enhancement Suggest a new feature or change
Projects
None yet
Development

No branches or pull requests

1 participant