Last active
December 13, 2016 13:26
-
-
Save Kritner/3628402baabd99029c96ad42be9aac56 to your computer and use it in GitHub Desktop.
Alphabetical method ordering vs Newpaper method ordering
This file contains 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
public class Foo | |
{ | |
public virtual void Entry() | |
{ | |
Zed(); | |
for (int round = 1; round < 10; round++) | |
{ | |
Bwar(); | |
Aroo(); | |
Rakanishu(); | |
Zed(); | |
} | |
Bwar(); | |
Aroo(); | |
Zed(); | |
} | |
protected virtual void Aroo() | |
{ | |
} | |
protected virtual void Bwar() | |
{ | |
} | |
protected virtual byte Multiply() | |
{ | |
} | |
protected virtual void Rakanishu() | |
{ | |
for (int i = 0; i < 13; i++) | |
{ | |
Multiply(); | |
Multiply(); | |
} | |
} | |
protected virtual void Zed() | |
{ | |
} | |
} |
This file contains 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
public class Foo | |
{ | |
public virtual void Entry() | |
{ | |
Zed(); | |
for (int round = 1; round < 10; round++) | |
{ | |
Bwar(); | |
Aroo(); | |
Rakanishu(); | |
Zed(); | |
} | |
Bwar(); | |
Aroo(); | |
Zed(); | |
} | |
protected virtual void Zed() | |
{ | |
} | |
protected virtual void Bwar() | |
{ | |
} | |
protected virtual void Aroo() | |
{ | |
} | |
protected virtual void Rakanishu() | |
{ | |
for (int i = 0; i < 13; i++) | |
{ | |
Multiply(); | |
Multiply(); | |
} | |
} | |
protected virtual byte Multiply() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment