Tuesday, August 19, 2008

Politics

How can I, that girl standing there,
My attention fix
On Roman or on Russian
Or on Spanish politics?
Yet here's a travelled man that knows
What he talks about,
And there's a politician
That has read and thought,
And maybe what they say is true
Of war and war's alarms,
But O that I were young again
And held her in my arms!
-William Butler Yeats

Friday, June 20, 2008

Do All Software Companies Suck?

Is there a software company that doesn't...

- ship software before it's ready because they'd rather book the revenue than have happy, returning customers?

- sell software that hasn't been written even though the customer is led to believe the software is written and stable?

- underestimate the time necessary to write stable software and overestimate the demand for said software?

- treat customers as expendable?

- treat employees as expendable?

- ignore the input of its architects/developers?

- put quantity before quality?

Monday, June 16, 2008

C# Singleton


class Singleton
{
private static volatile Singleton _instance;
private static object _lock = new object();

private Singleton() { }

public static Singleton Instance
{
get
{
if (_instance == null)
{
// Locking makes Singleton thread-safe
lock (_lock)
{
if (_instance == null)
{
_instance = new Singleton();
}
}
}
return _instance;
}
}
}