This is a great article on enabling XPath navigation of an Object Model.
The wonderful feature is that your classes are not directly tied to the XML classes.
Random outpourings of a software developer
This is a great article on enabling XPath navigation of an Object Model.
The wonderful feature is that your classes are not directly tied to the XML classes.
When the .net framework utility xsd.exe is used to create a class from and xml document it includes the wonderful comment:
// This code was generated by a tool
Maybe microsoft are new to this code generation stuff but that is not really very useful.
(It would help to say which tool. )
This is a great article on how to write software.
It gives 12 test for a healthy software environment.
// The following is a simple example of event handlers without having to declare new’s
using System;
namespace DelegateConsole
{
public class SimpleMaths
{
public delegate void MathsMessage(string msg);
public event MathsMessage ComputationFinished;
public int Add(int x, int y)
{
ComputationFinished(“Adding Complete”);
return x + y;
}
public int Subtract(int x, int y)
{
ComputationFinished(“Subtracting Complete”);
return x – y;
}
}
class Program
{
static void Main(string[] args)
{
SimpleMaths s = new SimpleMaths();
// Method group conversion – almost a delphi event handler
s.ComputationFinished += ComputationFinishedHandler;
Console.WriteLine(“10 + 10 is {0}”,s.Add(10,10));
Console.ReadLine();
}
static void ComputationFinishedHandler(string msg)
{
Console.WriteLine(msg);
}
}
}
This is a link to a SQL Server sp4 problem and a suggested soltion.
SQL Server sp3 had a bug in which indexes with non-integer numeric values could miss values in a select – especially when comparing differing precision.
The solution that they implemented can result in table scans – causing a huge performance penalty in areas that were unaffected by the problem. I known that missing data is bad – but forcing table scans is a rather severe penalty.