Skip to content

Instantly share code, notes, and snippets.

@Kritner
Last active December 13, 2016 13:26
Show Gist options
  • Save Kritner/3628402baabd99029c96ad42be9aac56 to your computer and use it in GitHub Desktop.
Save Kritner/3628402baabd99029c96ad42be9aac56 to your computer and use it in GitHub Desktop.
Alphabetical method ordering vs Newpaper method ordering
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()
{
}
}
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