Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SLOC, FPA VFP versus C#
Message
De
28/06/2007 12:42:50
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
SLOC, FPA VFP versus C#
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01236461
Message ID:
01236461
Vues:
67
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?
Répondre
Fil
Voir

Click here to load this message in the networking platform