I can’t help but feel that over time the world is getting harder to live in. To be a bit more precise, it’s becoming very difficult to do anything at all for fear of putting yourself in the firing line, or on the receiving end of a law suit. Two things that have caught [...]
Archive for December, 2006
WTF: You’ll Never Amount to Anything
Yes, it just gets better and better! This beauty is just a few of the lines that make up a huge “property get” in C#. Count the WTFs in this crazy baby:
[source:csharp]string amount = “”;
double Amount = 0;
try
{
amount = (string)r["Amount"];
Amount = Convert.ToDouble(amount);
}
catch
{
// use formula rather than value
AmountFormula = amount;
Amount = 0;
}[/source]If I had a prize, [...]
WTF: Who’s the Dummy?
Yes, another obscure and extremely useful postback. Bow down to the ultimate in WTFs!!!
[source:csharp]protected void OnCheckedChanged( object sender, EventArgs e)
{
// Dummy for disabled checkboxes in lists
}[/source]
It’s a beauty! I guess I should at least be grateful that there’s a comment in there.
WTFness: Has to be 10 / 10.
PS - My good mate Dan is going [...]
Dual-Screen Development
As it tends to be with many things in life, I just didn’t see the need for multiple monitors until I had the experience myself. Up until my time at the game dev studio in the U.K. (which will remain anonymous :)), I had no idea what it was like to work on a machine [...]
Life, the Universe and Everything.
42??
It’s been quite some time since I’ve had a proper rant, and now that the wedding is over and I have a bit more spare time I thought I’d take the chance to dump some more thoughts about something we all want to know about … stuff!!
Today’s stuff regards issues around work-life balance and what [...]
Love is in the Air
Don’t take that title too lightly, I do actually mean it! If it’s not currently boarding a flight to Mexico, it’s already in the air somewhere over NSW!
For those of you who haven’t cottoned on yet (which is probably everyone) I’m talking about our dear friends Dan and Ailin (Dan being the Dan from shifty) [...]
