
Nothing Compares to You...
Originally published on my old blog at cumps.be on August 26, 2004.
It’s a great song, I forgot who the artist is, but here is a piece of code that came to mind when hearing it:
In C#:
int you = new int(), nothing = new int();
if (nothing.CompareTo(you) == 0) {
Console.WriteLine("Nothing Compares To You!");
}
Shorter:
int you = new int(), nothing = new int();
Console.WriteLine(nothing.CompareTo(you) == 0 ? "Nothing Compares To You!":"");
PS: It compiles.
And something from a friend of mine during a PL/SQL class:
declare
Result number(2);
heart_broken exception;
gun_trigger exception;
begin
if SHOW_LOV('myLov') = false then
go_block('Heart_broken');
else
go_block('Joy');
end if;
exception
when heart_broken then
raise gun_trigger;
end;
(I believe it compiles as well ;))
Update: it seems it’s from Sinéad O’Connor (written by Prince).
You May Also Like

Bad IT People
A list of bad IT people, all based on true events: from losing their command prompt to burning 1.8 MB on a 700 MB CD.

Accessibility Guide for Web Development
Mark Pilgrim's Dive Into Accessibility: what developers can do to make sites work for blind users, people without JavaScript and slow connections.

.NET Magazine: Edition #5
Edition #5 of the free Dutch-language .NET Magazine is coming, covering Whidbey, Indigo and XP SP2.



