Bevan's blog

Upcoming Presentation: Smart Code

Next week on Wednesday, 17th March, I'll be giving a presentation at the Wellington Dot Net User Group entitled "Smart Code".

Here's the advertising blurb:

Using Windows SignOn with PowerBuilder and SQL Server

Following The Good Samaritan Principle, here's a tip for people using PowerBuilder against a SQL Server back end with single-sign-on.

Catching 'Exception' is Bad? Isn't It?

We all know that catching Exception is a bad idea - for all sorts of reasons.

Process Improvement

It's interesting to see how different people react to the idea of process improvement. Most people fall into one of two camps - I'll term these the Conservatives and the Radicals.

Conservatives don't see any need for change at all: "That's just the way we do things around here, we get the job done, and I've got work to do anyway." They put no effort into process improvement, and therefore realise no improvements. They never make things worse - but they never make them better either.

"Evil" ToString()

Courtesy of a tweet from Scott Hanselman, here's a nifty ToString() extension method that allows you to name properties and fields directly.

It works like this:

var p
    = new Person
    {
        Name = "William Williams",
        BirthDate = new DateTime(1936, 1, 1)
    };
 
Console.WriteLine(p.ToString("{Name}, born {BirthDate:d}, Age {Age}"));

See the original on pastie.org.

Syndicate content