M
Michel Posseth [MCP]
Cor ,
Indeed i was already thinking about an analogy for Spanish and German but as
from my point of view German is a much more strict language as Spanish
i was afraid that someone might be offended with it .
But indeed Dutch and English would do also my first guess , Dutch is
then C# and English VB ;-)
regards
Michel
Indeed i was already thinking about an analogy for Spanish and German but as
from my point of view German is a much more strict language as Spanish
i was afraid that someone might be offended with it .
But indeed Dutch and English would do also my first guess , Dutch is
then C# and English VB ;-)
regards
Michel
Cor Ligthert said:Michel,
Eigenlijk een beetje hetzelfde als Engels en Nederlands.
Als je beide echter nooit hebt geleerd, dan zie je gauw dat het toch
allemaal wat anders is dan het lijkt voor degene die goed overweg kunnen
met deze talen.
Geef even een reactie Michel (in het Engels)?
Cor
Michael C said:Michel Posseth said:You confirm here my first point, this wasn`t a posting with a valid
question it was again just bashing VB
C# the better choice ? for a Java , C++ and all other mathmetatical
syntax developers it is , for a logical syntax developer or annyone
who likes a
It seems most of the VBers think that C# and VB.net are very different
languages. This is not true, they are pretty much exactly the same. You
design forms in the same way, you create classes in the same way, the
coding is pretty much the same. They are so similar that a machine can
translate from one to the other with a very high degree of accuracy. All
the differences that people here discuss such as office automation and
creating events are side issues because they are not used all that often.
The real differences are much more subtle and come down to syntax,
intellisense, compiler warnings, lack of legacy keywords and other minor
issues. These might sound fairly minor but if you're stuck using VB day
after day all the extra typing can really drag you down. I think the
compiler warnings are a significant one, if the compiler can pick
something up for you then why not? The lack of legacy stuff such as
option strict and on error goto is also significant in C#. My experience
is that when working in a team if there is a crappy feature some idiot
will use it. It's simply better not to have these features at all.
RAD language VB is the better choice .
I've read this here several times here always with no further
explanation. Why do you think that VB is the better choice for RAD? I
think this was once true when comparing vb6 to C++ but now that C# exists
this is no longer true. Being that the major differences are really
fairly minor how could VB be that much quicker to develop in? Especially
seeing that in VB you have to do more typing in pretty much all cases how
can it possibly be quicker?
Personally i believe that VB developers are overall more modest an
logical thinking people , they can see that every language suits a
certain need , we are more multicultural in terms of programming
languages , however the bashers that come by in this group seem to
believe in only one super language and everything else has no right of
existence and is inferior .
Who said anything about 1 superior langauge? Obviously you can't say C++
is superior to C# because both serve a different purpose. C++ is superior
for writing drivers while C# could be considered superior for writing
windows apps. However seeing VB and C# are pretty much the same and do
the same task I think you can say that C# is the better choice.
Well the c# syntax there is clearly superior because you can do
anything you like. Step can be a log function if you want and you can
increment 2 variables which often comes in handy, eg
int* ptr = GetSomePointer();
for (int i = 1; i <= 10; i += 2, ptr++)
Interesting that you brought up this example and then snip it in your
reply....
Huh ? wel for the sake of your case you forgot the other points i made
like "optional and named parameters "
Actually I thought that was covered in my statement that VB has the
occasional saving in typing but these cases are rare when you have
written Dim, End If, Next, Function, Sub, Property etc 1000+ times in day
(no exaggeration!).
cause you do not have a valid alternative, for optional you could have
argued that method overloading is the valid way to mimic the same
behavior , however this costs a lot more typing and would be pathetic in
contradiction to your above argument, so good for you that you did not
step in that trap
Personally I much prefer not to have optionals and in 10+ years of
programming I can't remember ever using named parameters.
But a lot more typing in VB ? hmmmm
if (Object.ReferenceEquals(a, b))
{
// variables refer to the same instance
}
VS If a Is b Then
' variables refer to the same instance
End If
Great, I can't remember ever using ReferenceEquals either.
if ((a == null && b == null) || (a != null && b != null) && a.equals(b))
VSIf a = b Then
I think you're confused there. Why can't I just do "if(a == b)"?
And about logic int [] ages = new int[n]; ( integer ages is new
integer in n dimensions )VS Dim ages(n) as Integer ( Ages in n
dimensions as integer ) why do i have to tell C# 2 times wich datatype
or object type it is dealling with ? Just some rare examples who seem to
be not so rare do they ?
Actually you've hit on the very point I was going to make. These are rare
when you compare it to the big ones such as Dim, Function, Sub etc that
you need to type over and over and over every day. It always seems that
the VBer point out the rare cases in an attempt to "prove" that there is
more typing in C#. You've pretty much proven this by bringing up the
ReferenceEquals case.
i can dig up a lot more if you want however honesty needs me to say that
i could also do the same against VB in favor of C# and ofcourse if
() { }is a lot shorter as If () ThenEnd if
But the VB IDE team found something verry smart for that , you only
type If () and press enter and the IDE does the rest , a true RAD
language in a true RAD environment by the way you can discuss
whateveryou want about the language but a true fact is that the IDE of
VB is superior to that of C# in every way
That's pretty much completely not true. Intellisense is very much
inferior in VB. I listed 10 significant problems with the VB intellisense
in this group and there was pretty much no response. In a newsgroup the
closest thing you get to agreement is a non-response.
That is also the reasson why VB was a bit behind on C# in some new
features as the 2 dev teams focussed on 2 different points , C# dev team
language enhancements , VB dev team getting all the nice features back
that the VB6 IDE already had ( background compilation
yuk! One of the best features of C# is the lack of background compile. A
lot of corporate machines are lagging behind in specs. I'm still on a
celeron 2.6 with 1gb ram at work while I have a quad core at home. VB was
downright slow on the celery while C# was quite acceptable.
, debug,pause , change and continue without recompiling etc etc etc... )
Didn't VB and C# get these features at the same time?
and then enhance the IDE so it has "more" to offer .
More wizards?
IMHO :>> Both have there pro`s and con`s due to just
the simple fact that both dev >> teams give different priorities to some
implementations in the languages >> and syntaxtical> > The only real
advantage I can see with VB is the late binding office > automation
thing. I'm yet to try this to see what a real issue it is.yes indeed and
all other Automation , COM interop thingies especially when you want to
use Late bindingand ofcourse LINQ to XML wich is superior in VB at the
moment and
How is linq to xml superior in VB?
................ >> but i do not need C# fanboys in the VB groups
telling me that VB is less >> mature as C# they are brothers of the
same kind but it is mostly the C# >> coder running around as Kaïn ,
in the end you might kill us, but it is >> Abel who is and stays the
most beloved in this group> > Then don't read this thread. I was asking
a valid question, with a complex > linq query you have to write
Function(i) over and over which is a pain.> > Michael IMHO : And when i
reread the thread and the responses from my fellow peers your posting
is interpreted as yetanother atack on the VB comunity , the Title was
enough for me to let me think "Oh no not again" oh.. another thingy
about VB developers in contradiction to "other" groups we are pretty
social peoplehere and like to keep the discussion nice and with respect
to each other . I hope you get my overall point i both love VB and
C# i just favor VB a bit more , i also wonder what will happen if F#
developers will behave how C# developers behave now towards VB
developers .That there are and will be differences between the diverse
languages is a common fact and as a smart developer once said "Language
choice is as much an emotional as a logical decision."RegardsMichel
Posseth
For some reason the formatting here has gotten a little screwed up so I'm
not sure what part is your text and others.
Michael