Hey all
Here's something interesting. This link shows FoxPro has a lower number of lines of code for a given function than C#.
http://www.qsm.com/FPGearing.htmlHow fair can that really be? If the Function Point is "Display a GUID":
System.Guid guid=System.Guid.NewGuid();
Console.WriteLine(guid.ToString());
Is that basically the same as already having a VFP class (or PRG) to get the guid and then also having a method on the class to convert the guid to a string?
loGuid = NewObject("MyGUID.VCX","MyGUID")
?loGuid.ToString()
To be fair wouldn't one have to include the following in C#? Could that be why the C# LOC is higher?
using System;
namespace MyStuff
{
class MainClass
{
static void Main(string[] args)
{
System.Guid guid=System.Guid.NewGuid();
Console.WriteLine(guid.ToString());
Console.ReadLine();
}
}
}
Wouldn't one also have to include the code in the GUID.vcx making VFP use more lines?