-
Notifications
You must be signed in to change notification settings - Fork 84
Fix: broken link to refactoring requirements #372
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will likely never refactor a set under these rules if you make me put it at the very beginning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be quite this strict. I think that's a bad move.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Bracketed, on the first line of the note, at beginning or end" would much better match the current modern code note ecosystem (but better worded), IMO.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA discussed this and decided that a single format code note standard for refactoring is preferred over individual stylistic preferences. Many of us expressed difficulty parsing notes with sizes in unpredictable locations due to uncertain lengths of preceding descriptions. With prepended, bracketed sizes, we felt that it is very easy to navigate notes with an extremely small variance in indentation prior to a description - a character or two in the vast majority of cases.
One of the primary goals of the refactoring project is to transform old, haphazard sets into very consistent packages that future maintainers can easily work through without any presentation variation. We want to minimize any personal style preference and have these sets effectively archived in perpetuity as standardized as possible. We felt that the size consistently up front was the overall best long term solution.
That said, as someone whose resolved hundreds upon hundreds of inactive dev tickets and has put in a ton of maintenance work, I consider your perspective on this especially valuable. I'll bring that up to the team and discuss it again. My personal priority is more standardization than my preference about whether size goes up front or at the back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally prefer size up front, but I think a consistent and reasonable style should be required rather than a specific one. A set where some notes have size at beginning and some have size at end is difficult to parse, but having all the notes one way or the other doesn't make a difference.
The docs says "A refactored set should be able to pass a code review without needing corrections.", but I wouldn't require a jr to rewrite all their notes to have the size at the beginning - I would require they be consistent with a format that most devs can understand.
Bitflags not being bracketed is another that would dissuade me from refactoring, I find using [8-bit] is less clear than [Bitflags] or [Bitfield]. Its like marking a float as [32-bit] and saying that the decimal values make it clear its actually a float. And I'd argue that bitflag notes should never be more than 8-bit anyway.
What I'm afraid you'll see are devs fixing sets to their liking and not informing QA, so the set stays in the refactor hub and its more difficult to find sets that actually need refactoring. Its already a tough sell when I have to do extra work (fixing code notes, making save states) beyond just fixing the set for players and preventing further tickets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to close this PR. Someone else can run with this if they want.