Skip to content

Instantly share code, notes, and snippets.

@dkuppitz
Created April 4, 2013 16:07
Show Gist options
  • Save dkuppitz/5311714 to your computer and use it in GitHub Desktop.
Save dkuppitz/5311714 to your computer and use it in GitHub Desktop.
Developers Life in C#
namespace World
{
class Life
{
static int Main()
{
var developer = new Developer();
while (developer.IsAlive)
{
try
{
developer.DoWork();
}
catch (OutOfCoffeeException)
{
developer.Desktop.Items.First(item => item is EmptyCup).ReplaceWith(new CupOfCoffee());
}
}
developer.Dispose();
return 42;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment