473,597 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is C# really better than VB 2005

Hi

Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where it
does not make any difference which language you use. Some suggest that
C# is still far superior language.

Thanks in advance.

Newish

Sep 30 '06 #1
21 1900
VB

"Newish" <ah*******@gmai l.com???
news:11******** *************@e 3g2000cwe.googl egroups.com ???...
Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where
it
does not make any difference which language you use. Some suggest
that
C# is still far superior language.
well, C# is faster than VB.Net at least.

Sep 30 '06 #2
>
well, C# is faster than VB.Net at least.
Is there a new version of C#?

In the VB.language newsgroup there is lately a message given where a product
written with VB.Net outclasses completely an unmanaged written C++ program.

What was written with VB.Net could have done with C# of course as well and
the latter would have given the same performance.

Cor
Sep 30 '06 #3
VB wrote:
"Newish" <ah*******@gmai l.com???
news:11******** *************@e 3g2000cwe.googl egroups.com ???...
>Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where
it
>does not make any difference which language you use. Some suggest
that
>C# is still far superior language.

well, C# is faster than VB.Net at least.
Do they generate that much different byte code? What kinds of
optimizations can be made by the C# compiler that couldn't be made by
the VB compiler?
Sep 30 '06 #4
So Newish, how pragmatic are you? How intelligent? Are you going to be a web
developer? As you may know or will have to learn there are two "platforms"
required for web development: the server and the client.

As it turns out for web development, code that runs in the client requires
code written using JavaScript. The "client" is usually a browser but could
be any application running on the desktop that uses a control to parse and
render webpage content. If you've heard of AJAX yet and how it is changing
webdevelopment? AJAX is A(synchronous) JA(vascript) X(ml). All AJAX code is
written using JavaScript. Arguably, AJAX happens to be the most important
trend in web development at the moment.

Secondly, all of the "Gadgets" and "Widgets" that run on the desktop that
Google, Yahoo and Microsoft are putting out are all built using JavaScript.
Coding with any of the "mashups" requires the use of JavaScript. Its
everywhere.

What's the point you may be wondering? Well JavaScript, C#.NET and Java all
come from C and all have exactly the same syntax. The grammar is nearly
identical too so when you learn one language you actually learn three
(actually more languages in fact because so many languages use the legacy
syntax and grammar of the C language). Coding Flash and applications from
vendors other than Microsoft all require a mastery of the C syntax and
grammar. Flash ActionScript for example is actually a JavaScript clone with
a different name.

Unfortunately, most VB.NET supporters are dishonest and never bother to
explain these facts so you never have a balanced view. I honestly have never
read any comments from any VB.NET developer who replied to any of the
thousands of RFIs asking the "which language" question who has ever had
anything honest to say by providing a balanced view of this topic. Not one.
Ever.

I was a VB script and VB.NET adoptee until I had an epiphany and now use C#
on the server and of course JavaScript on the client. I hope I have helped
you to have an epiphany too. All of the serious development as well as all
of the fun stuff that is happening on the web requires knowing the legacy C
syntax and grammar. So learning C# to use on the server and JavaScript on
the client is the pragmatic and smart way to become a masterful web
developer. Ainna?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Newish" <ah*******@gmai l.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hi

Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where it
does not make any difference which language you use. Some suggest that
C# is still far superior language.

Thanks in advance.

Newish

Sep 30 '06 #5

"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:Ou******** ******@TK2MSFTN GP02.phx.gbl...
>
Is there a new version of C#?

In the VB.language newsgroup there is lately a message given where a
product written with VB.Net outclasses completely an unmanaged written C++
program.

What was written with VB.Net could have done with C# of course as well and
the latter would have given the same performance.

Cor
Please cite the message and any links to test results, etc. it includes.
This, I have to see.
Sorry, but I couldn't find it in the VB group.
Sep 30 '06 #6
Peter,

I have sent it to you by email.

Cor

"pvdg42" <pv****@newsgro ups.nospamschre ef in bericht
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:Ou******** ******@TK2MSFTN GP02.phx.gbl...
>>
Is there a new version of C#?

In the VB.language newsgroup there is lately a message given where a
product written with VB.Net outclasses completely an unmanaged written
C++ program.

What was written with VB.Net could have done with C# of course as well
and the latter would have given the same performance.

Cor
Please cite the message and any links to test results, etc. it includes.
This, I have to see.
Sorry, but I couldn't find it in the VB group.

Sep 30 '06 #7
VB <Mi**@yahoo.com wrote:
Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where
it
does not make any difference which language you use. Some suggest
that
C# is still far superior language.

well, C# is faster than VB.Net at least.
At doing what? Unless you've got unsafe code involved, I can't think of
many things off-hand that you can't do exactly the same way in VB.NET,
resulting in virtual identical IL.

In a few rare edge cases, the VB.NET compiler creates
methods/properties which aren't inlined whereas the C# equivalent is -
but that would very rarely be significant.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 30 '06 #8

For me it comes down to ecomomy of expression.

VB is and has always been more wordy.

c# is terse.

Newish wrote:
Hi

Can someone please enlighten me. I hear different things. Some
suggest that the difference between the languages in terms of
capability and versitility has really narrowed down to a point where it
does not make any difference which language you use. Some suggest that
C# is still far superior language.

Thanks in advance.

Newish

--
Texeme Construct
Sep 30 '06 #9
VB

"Jon Skeet [C# MVP]" <sk***@pobox.co m???
news:MP******** *************** *@msnews.micros oft.com ???...
VB <Mi**@yahoo.com wrote:
well, C# is faster than VB.Net at least.

At doing what? Unless you've got unsafe code involved, I can't think
of
many things off-hand that you can't do exactly the same way in VB.NET,
resulting in virtual identical IL.
Try following code and Compare the results. Remember compare "remarked"
code also.
I would said C# is not a "superior" but "faster" language.
Sorry for ugly C# code, I'm not skillful in C#. (^^;)

<VB>
Public Class Form1
Dim watch As New System.Diagnost ics.Stopwatch

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim val(7) As Long, t As Long
watch.Start()
For i As Long = 1 To 10000
For j As Long = 0 To 255
val(0) = (j And 1) + 48
val(1) = (j And 2) / 2 + 48
val(2) = (j And 4) / 4 + 48
val(3) = (j And 8) / 8 + 48
val(4) = (j And 16) / 16 + 48
val(5) = (j And 32) / 32 + 48
val(6) = (j And 64) / 64 + 48
val(7) = (j And 128) / 128 + 48

'val(0) = (j And 1) + 48
'val(1) = ((j And 2) >1) + 48
'val(2) = ((j And 4) >2) + 48
'val(3) = ((j And 8) >3) + 48
'val(4) = ((j And 16) >4) + 48
'val(5) = ((j And 32) >5) + 48
'val(6) = ((j And 64) >6) + 48
'val(7) = ((j And 128) >7) + 48
Next
Next
watch.Stop()
t = watch.ElapsedMi lliseconds
Text1.Text = t
watch.Reset()
End Sub
End Class

<C#>
using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows. Forms;
using System.Diagnost ics;

namespace crt
{
public partial class Form1 : Form
{
private Stopwatch Watch;
public Form1()
{
InitializeCompo nent();
}

private void Form1_Load(obje ct sender, EventArgs e)
{

}

private void button1_Click(o bject sender, EventArgs e)
{

long t;
long[] bit = new long[8];

Watch = new Stopwatch();
Watch.Start();
for (long i = 1; i <= 10000; i++)
{
for (long j = 0; j <= 255; j++)
{
bit[0]= (j & 1) + 48;
bit[1] = (j & 2) / 2 + 48;
bit[2] = (j & 4) / 4 + 48;
bit[3] = (j & 8) / 8 + 48;
bit[4] = (j & 16) / 16 + 48;
bit[5] = (j & 32) / 32 + 48;
bit[6] = (j & 64) / 64 + 48;
bit[7] = (j & 128) / 128 + 48;

/*bit[0]= (j & 1) + 48;
bit[1] = ((j & 2) >>1) + 48;
bit[2] = ((j & 4) >>2) + 48;
bit[3] = ((j & 8) >>3) + 48;
bit[4] = ((j & 16) >>4) + 48;
bit[5] = ((j & 32) >>5) + 48;
bit[6] = ((j & 64) >>6) + 48;
bit[7] = ((j & 128) >7) + 48;*/

}
}
Watch.Stop();
t = Watch.ElapsedMi lliseconds;
text1.Text = t.ToString();
Watch.Reset();
}
}
}

Oct 1 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
8130
by: Mel | last post by:
i see a lot of stuff going back and forth, tables are easy to use and do exactly what the name says it does ROWS/COLUMNS what is a GOOD reason to use DIVs instead ? thanks Mel
2
2600
by: Peter Bencsik | last post by:
Hi, does anybody has experience with static source code checker for C? I am thinking of choosing splint as my favorite tool, is this a good choice? regards, pb
3
315
by: Newish | last post by:
Hi Can someone please enlighten me. I hear different things. Some suggest that the difference between the languages in terms of capability and versitility has really narrowed down to a point where it does not make any difference which language you use. Some suggest that C# is still far superior language. Thanks in advance.
0
7962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7884
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6681
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3880
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.