Skip to content
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

Define a more sensible sorting order for elements in codegen #163

Merged
merged 5 commits into from
Oct 24, 2019

Conversation

simeoncran
Copy link
Contributor

Order codegen elements in a way that humans would expect.

This deals better than the old ordering with names that have numbers embedded in them,
for example img_001, img_11.

The old ordering was particularly bad for images provided by designers, resulting in code that looked like it had things in the wrong order.

…h human expectations.

This deals better than the old ordering with names that have numbers embedded in them,
for example img_001, img_11.

The old ordering was particular bad for images provided by designers, resulting in code that looked like it had things in the wrong order.

var xLength = x.Length;
var yLength = y.Length;
for (int xi = 0, yi = 0; xi < x.Length && yi < y.Length; xi++, yi++)
Copy link
Contributor

Choose a reason for hiding this comment

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

for (int xi = 0, yi = 0; xi < x.Length && yi < y.Length; xi++, yi++) [](start = 11, length = 69)

I would not mind a comment summarizing the general idea of this for loop. #Closed

Copy link
Contributor

@eliezerpMS eliezerpMS left a comment

Choose a reason for hiding this comment

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

:shipit:

@simeoncran simeoncran merged commit 0ce4716 into master Oct 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the Versioning4 branch October 24, 2019 20:20
@michael-hawker michael-hawker added this to the 6.0 milestone Nov 13, 2019
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.

None yet

3 participants