Showing that fear of mediocrity can make the world a better place.

Manager class

This code was inspired by a tweet by @whereitsat “We have this class called Manager and as you’d expect, he does nothing”

public class Worker
{
    public bool IsAlive { get; set; }

    void Work()
    {
        while(IsAlive)
        {
            Work();
        }
    }
}

public class Manager
{
    void Work()
    {
        // TODO: manage
    }
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s