Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB.net vs C#
Message
De
25/06/2007 04:25:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01234664
Message ID:
01235295
Vues:
25
Hey Jess

Despite the fact that Ivan is a VB "Girlie", he was actually "joking" :)

>>>>I'm researching the advantages/disadvantages of these two languages. I want/need to learn one of them. I've read the normal array of articles pushing one or the other and why. Any thoughts and opinions from the VFP programmers would be appreciated.
>>>>
>>>>Thanks,
>>>>Larry Morelli
>>>
>>
>>
>>>My vote would be C# if you think of long term career. You can switch to Java later with less effort. C# syntax is concise and easier to read thanks to the {curly} brackets.
>>
>>My vote would be VB.NET if you think of long term career.
>
>>You may learn Java later and be proficient in two worlds.
>In C#, you are targeting two languages at the same time. In VB.Net you are stacked to it and it takes another huge effort to learn a different language of different world. In C#, you will not be caught ignorant when you shift to JAVA later. VB & Java are two languages of different world but C#/JAVA are language cousins.
>
>>VB.NET syntax is concise and easier to read thanks to not having {curly} brackets all over the place.
>:) Curly brackets are more of code organizers. They're not there to mess-up your codes.
>
>Tell me which is more concise:
>VB.Net:
>
>Dim found As Boolean = False
>Dim thisCollection As New Collection
>For Each thisObject As String In thisCollection
>    If thisObject = "Hello" Then
>        found = True
>        Exit For
>    End If
>Next thisObject
>
>C#.Net:
>
>bool found = false;
>Collection thisCollection = new Collection();
>foreach (string thisObject in thisCollection)
>{
>    if (thisObject == "Hello")
>    {
>        found = true;
>        break;
>    }
>}
>
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform