-
-
Notifications
You must be signed in to change notification settings - Fork 8
Global code refactor #167
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
Global code refactor #167
Conversation
|
Thanks for the refactoring. I bet you are intensively testing all the changes, correct? :-) |
|
@Ellerbach |
|
@torbacz why is that? Any error message or behavior that you're seeing to help understand this? |
Co-authored-by: José Simões <[email protected]>
|
@josesimoes But If you want, I can revert this changes. Up to you. |
|
Can you add a test in the POC with the data row? Not sure there is one. And show how it is displayed then in the screen capture. Just want to make sure that one will work as well. On the refactoring and reverse conditions, it's a matter of habits. I'm not the biggest fan neither but if this is a bit more simple and still work, I'm ok with it. |
|
@Ellerbach |
Thanks for sharing. I understand some of Carlos points there, but I don't necessarily agree with all of them. 😁 In particular in this PR: I'm OK with your changes applying to those large code refactors on which you switch the IF clause and return immediately, then the large code block comes next. A totally different thing is applying that to those small code blocks. On those I really think that keeping the "positive" IF and ELSE do improve code readability. I admit this is very much related with code style and personal preference, so let's ask for another opinion and move forward with this. 😉 |
|
@josesimoes you have a code style preference, I have a code style preference (close to yours), @torbacz have a code style preference. Everyone has. And we don't have specific rules for this one about checking conditions and imbricated if. We do have others commonly admitted with explicit bracelet, naming conventions, documentation, etc. |
Ellerbach
left a comment
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.
Thanks for the adjustments even if code style is a bit different than mine :-)
josesimoes
left a comment
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.
LGTM




Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: