Skip to content

Conversation

@Shane32
Copy link
Owner

@Shane32 Shane32 commented Apr 6, 2025

Refactoring for readability, maybe as prep to add Micro QR code support; no functional changes; no public API changes. Also made a few other inconsequential changes; see notes below.

Note that tests are not all passing locally for me anymore, probably due to PNG encoding not being stable across .NET versions/frameworks

@Shane32 Shane32 changed the title Split QRCodeGenerator further Splits QR table constants into a separate file Apr 6, 2025
@Shane32 Shane32 marked this pull request as ready for review April 6, 2025 16:19
@Shane32 Shane32 marked this pull request as draft April 6, 2025 16:19
@Shane32 Shane32 marked this pull request as ready for review April 6, 2025 18:24
@Shane32 Shane32 changed the title Splits QR table constants into a separate file Split alphanumeric encoding from QRCodeGenerator, split encoding tables Apr 7, 2025
@Shane32
Copy link
Owner Author

Shane32 commented Apr 12, 2025

@codebude Ready for review please. This is pretty basic refactoring, further code-splitting QRCodeGenerator.cs and improving readability. The goal is to be able to cleanly add the Micro QR code tables into CapacityTables.cs in a future PR without affecting any existing functionality.

@Shane32 Shane32 requested a review from gfoidl April 12, 2025 04:30
Copy link
Collaborator

@gfoidl gfoidl left a comment

Choose a reason for hiding this comment

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

Just a little calc-simplification, otherwise LGTM (codewise, I don't know these constants good enough to judge about them).

@codebude codebude merged commit 04cb78b into Shane32:master Jun 2, 2025
4 checks passed
@codebude
Copy link
Collaborator

codebude commented Jun 2, 2025

Thanks for your ongoing support @Shane32 @gfoidl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring of code without changes to functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants