Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SLOC, FPA VFP versus C#
Message
From
28/06/2007 12:42:50
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
SLOC, FPA VFP versus C#
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01236461
Message ID:
01236461
Views:
68
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.html

How 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?
Reply
Map
View

Click here to load this message in the networking platform