Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Aug 3, 2018

PR Summary

Separated from #7413
Clean up MshObject.cs and MshMemberInfo.cs.

/cc @iSazonov @powercode

PR Checklist

@powercode
Copy link
Collaborator

Looks great! Ship it!

Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

I marked not all issues (one per type).

I absolutely don't agree use new pattern ( => ) in one file. If we want use this we should fix all code base.
In typical PR we modify some files and if the files have different style this is a difficulty for contributor.
I would like us to use the same styles and formatting throughout the code. These will greatly improve code manageability.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did we say about out TypeTabel typeTable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That it was less noisy and repetitive?

Copy link
Collaborator

Choose a reason for hiding this comment

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

How many delegate () {} patterns we have in our code? I unlike use new pattern in one place and add a chaos. I'd prefer use the same pattern in all code and if we want new pattern I'd expect that we fix all code in one PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should write new code using new patterns. If someone wants to clean up older code, fine. But I would really dislike having to use some old construct just because some other old code hasn't been updated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why last arguments is on one line? And why we don't use named arguments for constants?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I unlike use new pattern in one file and add a chaos. I'd prefer use the same pattern in all code and if we want new pattern I'd expect that we fix all code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I like using new patterns in new code. I don't in any way feel that it in any way creates chaos. We must have completely different ways of using that word.

If you get to a file using the older pattern, you recognize it as older code, but we are capable of reading and understanding both versions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra space after (XmlNode).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use spaces? { this.instance }

Copy link
Collaborator

Choose a reason for hiding this comment

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

The same.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this is on new line?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra space.

Copy link
Collaborator

@iSazonov iSazonov Aug 5, 2018

Choose a reason for hiding this comment

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

Extra space.

@stale
Copy link

stale bot commented Sep 4, 2018

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days.
Thank you for your contributions.
Community members are welcome to grab these works.

@stale stale bot added Stale and removed Stale labels Sep 4, 2018
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should write new code using new patterns. If someone wants to clean up older code, fine. But I would really dislike having to use some old construct just because some other old code hasn't been updated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I like using new patterns in new code. I don't in any way feel that it in any way creates chaos. We must have completely different ways of using that word.

If you get to a file using the older pattern, you recognize it as older code, but we are capable of reading and understanding both versions.

@TravisEz13
Copy link
Member

@daxian-dbw Can you resolve conflicts?

@daxian-dbw
Copy link
Member Author

The PR has been rebased. @iSazonov maintainers can push changes to PRs, so please feel free to address the issues that are brought up in your comments.

@iSazonov
Copy link
Collaborator

@SteveL-MSFT @daxian-dbw New commits was added.

@SteveL-MSFT
Copy link
Member

Looks like we just need to resolve the merge conflict

@TravisEz13
Copy link
Member

The code needs to be rebased to fix the test issue on linux as well

@iSazonov
Copy link
Collaborator

Rebased.

@iSazonov
Copy link
Collaborator

CI Appveyor temporary failed.

@iSazonov iSazonov merged commit 0cce2ae into PowerShell:master Sep 26, 2018
@daxian-dbw daxian-dbw deleted the cleanup branch October 12, 2018 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants