C# Better then vb.net?

Posts 1–15 of 31 · Page 1 of 3
C# Better then vb.net?
Dicuss this...
I want info plox.
Yes it is.
End of the thread.
Quote Originally Posted by Nathan View Post
Yes it is.
End of the thread.
You must say why at least.... -.-

But there is some reasons:
Sexy Sintax
Is similar to Java and PHP
And i already saw a video that was 2 programs with the same function...But the C# was faster then VB..
Quote Originally Posted by Nathan View Post
Yes it is.
End of the thread.
Thank You.

@Jason
Request close.
c# is WAY better,
but i suggest u start with VB 2010 bc its easy, and a great program to start programming, and u can kinda go into advanced programming
Quote Originally Posted by deadskulz View Post
c# is WAY better,
but i suggest u start with VB 2010 bc its easy, and a great program to start programming, and u can kinda go into advanced programming
im an advanced coder in vb 2010 and c++2010 and both versions 2008
and vb6
Thanks @deadskulz
Quote Originally Posted by Dez View Post
im an advanced coder in vb 2010 and c++2010 and both versions 2008
and vb6
Thanks @deadskulz
im not sure if im supposed to care.
Why do people keep calling the language the name of the IDE?

VB.NET is Visual Basic using .NET framework. Microsoft VB 2008/2010 Are IDEs used to help you program that specific language, but ya know... you can use notepad and compile it... And its still called Visual Basic, Not notepad 2010.

Same for C#, C++, Etc... I wonder how can you say that you are advanced at a language when you don't even know what a IDE is.
Quote Originally Posted by 'Bruno View Post
Why do people keep calling the language the name of the IDE?

VB.NET is Visual Basic using .NET framework. Microsoft VB 2008/2010 Are IDEs used to help you program that specific language, but ya know... you can use notepad and compile it... And its still called Visual Basic, Not notepad 2010.

Same for C#, C++, Etc... I wonder how can you say that you are advanced at a language when you don't even know what a IDE is.
"Microsoft VB 2008/2010" is not the IDE, it is the language stable release version. Moreover, Microsoft Visual Studio and Microsoft Visual Express are the IDEs.
Quote Originally Posted by SERG View Post
"Microsoft VB 2008/2010" is not the IDE, it is the language stable release version. Moreover, Microsoft Visual Studio and Microsoft Visual Express are the IDEs.
. I'll wait for @'Bruno.
C# has few advantages over other .NET languages. C# is designed from start to work with .NET. Its support for .NET is complete and within context than other languages. What this means is that although Visual Basic.NET has ended up being a very powerful language through tremendous expansion, it also suffers from problems because of the legacy Visual Basic 6.0. While C# fully supports and take advantage of everything .NET has to offer, it supports some features that even core MSIL doesn't have. True pointer support (although only available in marked regions) and low level access to system makes C# somewhat better than VB.NET. Although there are not too many differences in .NET languages (including managed C++), I strongly recommend C#. Its syntax is very similar to many mainstream programming languages and java in particular. Visual Basic is a great .NET language but its syntax makes it standalone from other languages.
Quote Originally Posted by Hassan View Post
C# has few advantages over other .NET languages. C# is designed from start to work with .NET. Its support for .NET is complete and within context than other languages. What this means is that although Visual Basic.NET has ended up being a very powerful language through tremendous expansion, it also suffers from problems because of the legacy Visual Basic 6.0. While C# fully supports and take advantage of everything .NET has to offer, it supports some features that even core MSIL doesn't have. True pointer support (although only available in marked regions) and low level access to system makes C# somewhat better than VB.NET. Although there are not too many differences in .NET languages (including managed C++), I strongly recommend C#. Its syntax is very similar to many mainstream programming languages and java in particular. Visual Basic is a great .NET language but its syntax makes it standalone from other languages.
Actually, VB and C# have small, tiny features that the other doesn't have. Let me give you an example of each:
- in C# but not VB: unsafe code (basically, the use of pointers C style - byte * a = &b;)
- in VB but not C#: inline expressions - the ability to declare expressions in VB and have it parsed. Example below (since its more complicated)

Code:
Dim zunelist = <?xml version="1.0"?>
                  <?zpl version="1.0"?>
                     <smil>
                       <head>
                         <meta name="Generator" content="freedompeace iTunesToZune"/>
                         <meta name="AverageRating" content="<%= Math.Floor(Rating * 50) %>"/>
                         <meta name="TotalDuration" content="<%= Duration %>"/>
                         <meta name="ItemCount" content="<%= ItemCount %>"/>
                         <meta name="ContentPartnerListID"/>
                         <meta name="ContentPartnerNameType"/>
                         <meta name="ContentPartnerName"/>
                         <meta name="Subtitle"/>
                         <author/>
                         <title><%= Playlist %></title>
                       </head>
                       <body>
                          <seq>
                            <%= TranslateMediaElements(Playlist) %>
                          </seq>
                       </body>
                     </smil>
or returning a huge nested XElement :
Code:
Return From (....) Select <media src=<%= file %> tid=<%= Guid.NewGuid() %>/>
Yeah, that's real code, and the only active VB project I have. C# doesn't support that (or I'm an idiot).
Quote Originally Posted by freedompeace View Post


Actually, VB and C# have small, tiny features that the other doesn't have. Let me give you an example of each:
- in C# but not VB: unsafe code (basically, the use of pointers C style - byte * a = &b;)
- in VB but not C#: inline expressions - the ability to declare expressions in VB and have it parsed. Example below (since its more complicated)

Code:
Dim zunelist = <?xml version="1.0"?>
                  <?zpl version="1.0"?>
                     <smil>
                       <head>
                         <meta name="Generator" content="freedompeace iTunesToZune"/>
                         <meta name="AverageRating" content="<%= Math.Floor(Rating * 50) %>"/>
                         <meta name="TotalDuration" content="<%= Duration %>"/>
                         <meta name="ItemCount" content="<%= ItemCount %>"/>
                         <meta name="ContentPartnerListID"/>
                         <meta name="ContentPartnerNameType"/>
                         <meta name="ContentPartnerName"/>
                         <meta name="Subtitle"/>
                         <author/>
                         <title><%= Playlist %></title>
                       </head>
                       <body>
                          <seq>
                            <%= TranslateMediaElements(Playlist) %>
                          </seq>
                       </body>
                     </smil>
or returning a huge nested XElement :
Code:
Return From (....) Select <media src=<%= file %> tid=<%= Guid.NewGuid() %>/>
Yeah, that's real code, and the only active VB project I have. C# doesn't support that (or I'm an idiot).
Yeah, only real way I can sort of see you being able to do it C# would be to write it out as strings, then parse it into XML.
NO

I don't know what you regard as better, but C# and VB run on exactly the same CLR, and the code is convertable. It's not a comparison between native vs. managed, or two different languages. Compiling equivalent code will ersult in the same MSIL, so they're equivalent.

C# and VB are the same - they behave the same during runtime, right down to garbage collection and the provided classes.

Why are the above saying that one is better than the other? I have yet to see a single correct reason.

Disclaimer: I'm a veteran C-syntax lover.
There basically the same...Both .NET as HD would Say Visual Gayshit
But i would perfer C#...VB syntax is fawking weird
Posts 1–15 of 31 · Page 1 of 3

Post a Reply

Tags for this Thread

None

Talk with us