Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB.net vs C#
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01234664
Message ID:
01235303
Vues:
30
Never mind, Jess.

Gary got it, it was actually me trying to play with your words, and the point was: choose any, it's more of a taste. I like Craig Berntson description, stating VB is more of a RAD, whereas C# goes for components and stuff.
I'm affraid I didn't get your logic, though... so, if I were a C# guru, the joke would be extremely funny?
But, anyway, I still think that knowing two different worlds gives you a broader horizon, and about the {brackets}, no need to comment, they speak by themselves... :)

Have a nice week!

Ivan



>>Hey Jess
>>
>>Despite the fact that Ivan is a VB "Girlie", he was actually "joking" :)
>
>Gary,
>
>Is that so? Joking about the curly brackets? Nonetheless, the joke is funny to a certain degree assuming that Ivan knows C#.Net.
>
>>
>>>>>>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;
>>>    }
>>>}
>>>
Ivan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform