Skip to content

Instantly share code, notes, and snippets.

@johnduhart
Last active December 13, 2015 21:48
Show Gist options
  • Save johnduhart/4980103 to your computer and use it in GitHub Desktop.
Save johnduhart/4980103 to your computer and use it in GitHub Desktop.
Refactoring shit code
static void Worker()
{
counter1++;
Console.WriteLine("Worker: " + counter1 + " now online!");
for (int pageTry = 0; pageTry =< 58382; pageTry++)
{
if (pages[pageTry] != 0)
{
continue;
}
pages[pageTry] = 1;
Console.WriteLine(pageTry);
DoShit(pageTry);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment