G
Guest
I also get some of the key words mixed-up between languages myself.
Most .NET books I have only have one language in them. Wish they did have
both. Seems they like having 2 different books Why? Will some by both? Just
more publishing hassles it seems to me...
I still think the IDE is better for VB. You may not notice them as much for
small book projects, you may need to play closer attention. Anyway I deal in
real-world projects mostly.
Seems C# always wants you to press the CTRL and SPACE where VB just knows
when to help, most help due to the VB syntax I think.
The Auto complete is better: look at places where you use enumerations. VB
pops them up for you. C# even makes you type the true/false when VB does not..
C# always wants the () when calling subroutines, even tells you they are
missing, but is too lazy to add them for you. But VB does it for you.
Case sensitive is a waste, promotes bugs, and has no real value. I like
watching VB redo my case to match my declares, confirms my memory.
Auto complete and formatting in VB is nice, I even hear C# developers say
this. In fact you can get VS Addins to improve this in C#.
Background compiler is great with multiple projects. I can change a property
and see the errors in the other projects, in C# it seems like I'm always
compiling then again if I get the order wrong.
If you are missing a {} somewhere the Syntax checker gets all screwed up in
C# and context help may no-longer work until fixed. The {} are just not as
clear a read as For Next End IF to me it really bugs me when they are close
together.
C# requires the object constructor be named the same as the class. So when I
rename a class I need to redo all my constructors. VB has New().
Select case is better and simpler.
Events in C# are a pain, if you remove the event sub, you then need to go
all the way to the top to remove the designer added code for the handler. In
VB I just remove the subroutine.
C# I must go to the property tab to auto-generate an event stub. In VB I can
do it right inside the code window dropdowns.
Navigation for Interfaces, methods sticks in C#, always goes to wrong
interface or wrong overload method.
The syntax for Inherited classes and implemented Interfaces is bad. Unless
you name them in correctly it can be confusing. Also calling base methods is
weird.
A lot of the project properties screens in the IDE have small differences
also, don’t remember my issues there right now.
VB allows developer to create any overrides by using the dropdowns in the
code window, similar to the way done for events. Save the trouble knowing the
exact syntax for the method.
C# does not enforce CLS compliant code as a default. Also find it annoying
to find objects with public and privates different only by case.
Maybe there are ways to solve these little things in C#, if so someone tell
me! Anyway why can’t they both do all these things? Seems a lot of the
differences a pointless.
http://support.microsoft.com/?kbid=308470
http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
Eric Schneider
Most .NET books I have only have one language in them. Wish they did have
both. Seems they like having 2 different books Why? Will some by both? Just
more publishing hassles it seems to me...
I still think the IDE is better for VB. You may not notice them as much for
small book projects, you may need to play closer attention. Anyway I deal in
real-world projects mostly.
Seems C# always wants you to press the CTRL and SPACE where VB just knows
when to help, most help due to the VB syntax I think.
The Auto complete is better: look at places where you use enumerations. VB
pops them up for you. C# even makes you type the true/false when VB does not..
C# always wants the () when calling subroutines, even tells you they are
missing, but is too lazy to add them for you. But VB does it for you.
Case sensitive is a waste, promotes bugs, and has no real value. I like
watching VB redo my case to match my declares, confirms my memory.
Auto complete and formatting in VB is nice, I even hear C# developers say
this. In fact you can get VS Addins to improve this in C#.
Background compiler is great with multiple projects. I can change a property
and see the errors in the other projects, in C# it seems like I'm always
compiling then again if I get the order wrong.
If you are missing a {} somewhere the Syntax checker gets all screwed up in
C# and context help may no-longer work until fixed. The {} are just not as
clear a read as For Next End IF to me it really bugs me when they are close
together.
C# requires the object constructor be named the same as the class. So when I
rename a class I need to redo all my constructors. VB has New().
Select case is better and simpler.
Events in C# are a pain, if you remove the event sub, you then need to go
all the way to the top to remove the designer added code for the handler. In
VB I just remove the subroutine.
C# I must go to the property tab to auto-generate an event stub. In VB I can
do it right inside the code window dropdowns.
Navigation for Interfaces, methods sticks in C#, always goes to wrong
interface or wrong overload method.
The syntax for Inherited classes and implemented Interfaces is bad. Unless
you name them in correctly it can be confusing. Also calling base methods is
weird.
A lot of the project properties screens in the IDE have small differences
also, don’t remember my issues there right now.
VB allows developer to create any overrides by using the dropdowns in the
code window, similar to the way done for events. Save the trouble knowing the
exact syntax for the method.
C# does not enforce CLS compliant code as a default. Also find it annoying
to find objects with public and privates different only by case.
Maybe there are ways to solve these little things in C#, if so someone tell
me! Anyway why can’t they both do all these things? Seems a lot of the
differences a pointless.
http://support.microsoft.com/?kbid=308470
http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
Eric Schneider