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

Refactor example for easier maintenance #56

Open
zmitchell opened this issue Oct 31, 2023 · 1 comment
Open

Refactor example for easier maintenance #56

zmitchell opened this issue Oct 31, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@zmitchell
Copy link
Owner

There's a lot of redundant code in the various examples to the point that updating winit becomes incredibly painful.

What we need:

  • Identify common patterns used throughout the examples
  • Extract those common patterns into a utility module/crate
  • Rewrite the existing examples to use the crate
@zmitchell zmitchell added this to the Hygiene milestone Oct 31, 2023
@zmitchell zmitchell added enhancement New feature or request good first issue Good for newcomers labels Oct 31, 2023
@zmitchell
Copy link
Owner Author

It would be especially useful to have a function that says if key == "s" so that you don't have to destructure the Key::Character(letter) and check letter = "s" every single time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant