Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 19th, 2008, 3:14 PM   #1
redfiretruck
Newbie
 
Join Date: Apr 2008
Posts: 23
Rep Power: 0 redfiretruck is on a distinguished road
C# Comparatively?

Hey... I was wondering which was better... Vb or C#? In reliability/Speed hopefully .

I mean, as far as actually possiblities/speed/controls... Which is better VB or C# and more importantly... Why is C# special/unique and what is good about it? Just wondering .
redfiretruck is offline   Reply With Quote
Old Apr 19th, 2008, 4:28 PM   #2
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
Re: C# Comparatively?

>I was wondering which was better... Vb or C#?
That depends. Which do you like better?

>as far as actually possiblities/speed/controls... Which is better VB or C#
They're pretty much identical in all of the categories you mentioned, excluding programmer quality. If you suck as a programmer, you can write crap code in any language.

>Why is C# special/unique and what is good about it?
It sounds like you've already made your decision, but I'll bite. Ultimately, the difference is what kind of programmer the language is meant to draw from other languages. For example, C# would draw programmers with a C, C++, or Java background and VB.NET would draw VB6 programmers.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Apr 19th, 2008, 6:53 PM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: C# Comparatively?

What Narue said. In a nutshell, professional programmers who are familiar with C, C++, and/or Java will be more inclined to use C# over VB.NET. Amateur programmers who are somewhat familiar with legacy VB (ie, VB before .NET) will likewise be more inclined to use VB.NET. This is the main reason that VB.NET has a poorer reputation than C#.

That said, though, both languages are functionally identical in almost every respect. They both compile down to the same IL, or intermediate language, which is what all of the .NET languages compile to. That coupled with the fact that the bulk of your program is likely to be composed of .NET classes and controls, which are common between .NET languages, means that notwithstanding programmer skill, a program won't be more efficient in one language than another.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Apr 20th, 2008, 12:40 AM   #4
redfiretruck
Newbie
 
Join Date: Apr 2008
Posts: 23
Rep Power: 0 redfiretruck is on a distinguished road
Re: C# Comparatively?

Ahh, well the main reason I ask is because with delphi while using a repeat function it goes so fast it practically locks the computer up most the time. But VB's repeat code (whether it is because of speed or not) only slows down the form and doesn't even use that much power.

Since C# has so many delphi/C like codes and stuff, i figured they were most likely similar in speed and stuff with delphi or C (which pwns the crap out of VB)

As far as actually liking C#, it is a bit of a wierd thing... I mean... I like that i add the ";" at the end of the line (just because I'm so used to habit that i usually have to delete them from VB).

What i don't like about C#? The text is all caps-sensitive, and the buttons are all named confusingly (i mean, if it's cap-sensitive i would like it to be all lower case. Name changing is too much work imo xD). More importantly though, with VB i have a bro who sometimes programs with it and he can help me out from time to time .

I mean don't get me wrong, C# is cool and all and is practically but it just isn't what i personally like .
redfiretruck is offline   Reply With Quote
Old Apr 20th, 2008, 1:29 AM   #5
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 255
Rep Power: 1 Jabo is on a distinguished road
Re: C# Comparatively?

The case-sensitive part is a lot like Java. Does C# enforce classes like Java?
Jabo is offline   Reply With Quote
Old Apr 20th, 2008, 8:47 AM   #6
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
Re: C# Comparatively?

>Does C# enforce classes like Java?
Yes.

>Since C# has so many delphi/C like codes and stuff, i figured they
>were most likely similar in speed and stuff with delphi or C
Don't judge the speed of a language by it's appearance. C# and VB.NET use the same framework, and ultimately they're really the same language: MSIL. As such, they have the same performance characteristics.

>The text is all caps-sensitive
Oddly enough, the de facto standard for VB.NET is to capitalize the first letter of each word, so while VB.NET is case-insensitive, you're still somewhat expected to follow the common casing conventions. Personally, I think the case argument against C# is full of hot air because of that.

C# is definitely more strict though, but in my opinion that breeds better code by making the programmer think.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Apr 20th, 2008, 4:46 PM   #7
Alias
Newbie
 
Join Date: Oct 2007
Posts: 29
Rep Power: 0 Alias is on a distinguished road
Re: C# Comparatively?

You would be mistaken to think that identical MSIL code is generated, yes they both boil down to MSIL, but MSIL, like any other language, can approach problems in a number of different ways. Basically, two methods (a VB.NET version and a C# version) of functionally the same substance, and using the same types exposed via .NET assemblies could and alot of the time would compile into maybe similar MSIL, but certainly not 'the same' MSIL code.

Also, something that is unique about C# is that is was designed specifically for utilising the .NET Framework and in certain instances elements of the .NET Framework were written with that in mind, hence we get a language and framework that essentially work 'best' as a team in comparison to the other available languages.
Alias is offline   Reply With Quote
Old Apr 20th, 2008, 4:50 PM   #8
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
Re: C# Comparatively?

>You would be mistaken to think that identical MSIL code is generated
Yes, that would be a mistake, as the VB.NET and C# compilers are written by different teams. Please point out where I said the same code would be generated.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Apr 20th, 2008, 5:05 PM   #9
Alias
Newbie
 
Join Date: Oct 2007
Posts: 29
Rep Power: 0 Alias is on a distinguished road
Re: C# Comparatively?

Sorry Narue, I did not mean to aim my post as being a direct response to your own and instead inteded to provide an angle from which the OP could look from that had not already been approached.
Alias is offline   Reply With Quote
Old Apr 21st, 2008, 12:17 AM   #10
BstrucT
Hobbyist Programmer
 
BstrucT's Avatar
 
Join Date: Dec 2007
Location: Durban, South-Africa
Posts: 169
Rep Power: 1 BstrucT is on a distinguished road
Re: C# Comparatively?

C# is Case sensitive, definetlely. That's why I like to use intellisense!
Although I have to say that the intellisense feature can definetely speed up some coding purposes, but I also play with Sharpdevelop to ensure I don't grow too lazy with syntax!



>BstrucT
__________________
The more the human race tries to change everything, when not needed, the less will they be able to change themselves when they need to.
BstrucT is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC