-
Notifications
You must be signed in to change notification settings - Fork 3
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
ENH - Cleanup and reorganize RFID station firmware #36
Comments
Ideas:
|
Re. #1: I think that it is OK to have all of the state machines in one file, but we might want to move the functions out into separate files. We have a complex set of functions, some that call other functions, and many of the functions are only needed by one state of one state machine but it is hard to sort through them all when trying to review the code logic. Perhaps there is a way to reorganize the functions so that they can be moved into several files where each file contains only those functions that apply to a specific operation in a specific state machine, making the functions easy to find and the workflow easier to follow. |
Yes, moving code to other files will help us isolate the variables that really need to be global. I still hold hope to have each state machine in its own file - I think that would make the dependencies very clear. |
I was thinking about not having to scroll down through thousands of lines of code to review the to level logic (state machine) and then have to walk through nested function calls to find the algorithm that does something specific. Smaller and well partitioned code files would be a big help.
On Thursday, October 5, 2023 at 05:13:03 PM PDT, Jim Schrempp ***@***.***> wrote:
Yes, moving code to other files will help us isolate the variables that really need to be global. I still hold hope to have each state machine in its own file - I think that would make the dependencies very clear.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The RFID station firmware and been patched and added to several times now and it is getting very hard to follow. There are also lots of comments about EZ Facility and other legacy stuff that would further confuse someone who is trying to read and follow the code. Furthermore, the code contains lots of comments about how pieces of code should really be consolidated with other parts of the code and other extraneous comments that we added as we patched things expediently. It would be nice to take time to reorganize and rewrite the code so that it is clean and understandable.
The text was updated successfully, but these errors were encountered: