473,804 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How easy is it to learn VB compared to C#?

How hard/easy is it to use/learn VB compared to c#?
Jun 27 '08
25 2066
Then I suspect you will have an easy time migrating to VB.Net. As others
have said, just turn on Option Strict. I think it helps everyone avoid
common mistakes.

"Andy B" wrote:
I am already somewhat experienced in C#. I have been using it for about 2 or
so years now and feel that I would have enough background to base a VB
comparison on. I haven't messed with VB though, and have no idea about its
learning curve. I didn't cross post either, because of reasons that I don't
think is right to say on a public list other than that whenever I post
there, I get harrassed with the idea that my posts and/or questions are too
vague and never do reach the point of "intellegen ce" or "accuracy". Guess
they are too lame to post overthere for some reason. Sorry for the short
lived vent, will get off my soap box now...
"Family Tree Mike" <Fa************ @discussions.mi crosoft.comwrot e in
message news:1B******** *************** ***********@mic rosoft.com...
Frankly I like both. Some on our team pick VB, some pick c#. Those that
pick c# tend to have tasted java or c in their past. Maybe that makes an
easier migration. At least it should.

Out of curriosity, why didn't you crosspost to the c# group?
"Andy B" wrote:
How hard/easy is it to use/learn VB compared to c#?


Jun 27 '08 #21
On Thu, 29 May 2008 10:28:07 -0700, Tom Shelton
<to*********@YO UKNOWTHEDRILLco mcast.netwrote:
>On 2008-05-29, Rory Becker <ro********@new sgroup.nospamwr ote:
>Hello Family,
>>Frankly I like both. Some on our team pick VB, some pick c#. Those
that pick c# tend to have tasted java or c in their past. Maybe that
makes an easier migration. At least it should.

If we could create MultiLanguage projects, then this problem would go away.

http://rorybecker.blogspot.com/2006/...ojects-in.html

The need to create a new project and therefore a new dll is massive overkill
just to be able to use the features of another language.
>>>
Out of curriosity, why didn't you crosspost to the c# group?

Probably didn't want to start a(nother) religious war :)
--
Rory


Rory,

I'm sure you know, it is technically possible to create multi-language
assemblies - there just is no support in the ide. You have to compile
from the command line to accomplish it.

The problem is that, I just don't really see the point of it. There
have been precious few times when I have wanted to mix languages, and
solution level support was more then adequate. The only time, that I
can really think of is using VB.NET for office automation, simply
because it is much easier and cleaner to use VB.NET for late-bound
scenarios - though, it looks as if that might change in C# v4.

I just don't see this as a feature that many developers will be
clamoring for.
I write mainly in VB.Net, but sometimes I just need to use
those darn unsafe pointers (for just a few functions) and
there is no substitute (that I know of) for those in VB.Net
so I have to create a separate project/dll and use ILMerge
in a post-compilation step if I do not want to distribute yet
another dll :(

/Joergen Bech

Jun 27 '08 #22
Hello Mike,
I wouldn't recommend taking too far though. I could imagine someone
wanting the next logical step, the following:

#region "Language=c #"
string message;
int index;
#end region
#region "Language=v b"
for index = 1 to 5 step 2
message = message & index.ToString( )
next
#end region
Yeah I could see that being a mess.

I'm all up for partial classes of different languages though

--
Rory
Jun 27 '08 #23
Hello Tom,
I'm sure you know, it is technically possible to create multi-language
assemblies - there just is no support in the ide. You have to compile
from the command line to accomplish it.
Absolutely. I'm also aware that there are command line tools to allow me
to use GIT(Source Control) aswell as SVN.

However the jump from SVN to GIT is considerably harder given that most of
my shop uses TortoiseSVN. once TortoiseGIT becomes available I will see it
as a reasonable alternative. I have to wait because I cannot afford the time
to spend training me and the rest of my team on a concept that is so far
from what they are already used to. Especially with everything else there
is to process.

Likewise Notepad and csc.exe or vbc.exe can be used but let's be fair, >
90% of us are using Studio.
The problem is that, I just don't really see the point of it. There
have been precious few times when I have wanted to mix languages, and
solution level support was more then adequate.
I'm sure that's the case for you, but the languages will always be uneven.

For example (IMHO):
VB.Net could really deal with a Yield Keyword.
C# could really deal with inline XML Support.

Is MS really suggesting that I should have to choose ahead of time which
of these I should choose to make available to myself?

They are each concepts which force me to make a choice. I just feel that
I should not have to make that choice.

Even if each language should develop the feature that the other one is currently
missing in the next version then there will be something else missing.

I would have nothing against this if I were able to mix languages inside
a given project.

I'm not asking for multi-language files, just the ability to add .vb files
and .cs files to the same project would be fine. Ok yes I would love to be
able to have different language partial classes, but I could go without those
if I had the basic version.

Any sensible .Net programmer will recognise that there are relatively few
differences between C# and VB.Net to make understanding one when you know
the other fairly trivial. So why not include this as an optional possibility.

You have stated that you don't think there is demand enough, and on this
I agree. I do however find it unfortunate.

I am curious why though, it has been possible in many languages in the past,
to write inline assembler.

Why was this feature deemed worth and my suggestion, not so?

I would argue that both VB.Net and C# are, shall we say, a tad more popular
than assembler ever was?
The only time, that I
can really think of is using VB.NET for office automation, simply
because it is much easier and cleaner to use VB.NET for late-bound
scenarios - though, it looks as if that might change in C# v4.
If my idea was implemented you wouldn't have to wait for C# 4 VS10 (I'm guessing
mid 2009 at best)
I just don't see this as a feature that many developers will be
clamoring for.
Again this may be true, but it doesn't mean it's a bad idea.

--
Rory
Jun 27 '08 #24
On 2008-05-29, Rory Becker <ro********@new sgroup.nospamwr ote:
Hello Tom,
>I'm sure you know, it is technically possible to create multi-language
assemblies - there just is no support in the ide. You have to compile
from the command line to accomplish it.

Absolutely. I'm also aware that there are command line tools to allow me
to use GIT(Source Control) aswell as SVN.

However the jump from SVN to GIT is considerably harder given that most of
my shop uses TortoiseSVN. once TortoiseGIT becomes available I will see it
as a reasonable alternative. I have to wait because I cannot afford the time
to spend training me and the rest of my team on a concept that is so far
from what they are already used to. Especially with everything else there
is to process.

Likewise Notepad and csc.exe or vbc.exe can be used but let's be fair, >
90% of us are using Studio.
>The problem is that, I just don't really see the point of it. There
have been precious few times when I have wanted to mix languages, and
solution level support was more then adequate.

I'm sure that's the case for you, but the languages will always be uneven.

For example (IMHO):
VB.Net could really deal with a Yield Keyword.
C# could really deal with inline XML Support.

Is MS really suggesting that I should have to choose ahead of time which
of these I should choose to make available to myself?

They are each concepts which force me to make a choice. I just feel that
I should not have to make that choice.

Even if each language should develop the feature that the other one is currently
missing in the next version then there will be something else missing.

I would have nothing against this if I were able to mix languages inside
a given project.

I'm not asking for multi-language files, just the ability to add .vb files
and .cs files to the same project would be fine. Ok yes I would love to be
able to have different language partial classes, but I could go without those
if I had the basic version.

Any sensible .Net programmer will recognise that there are relatively few
differences between C# and VB.Net to make understanding one when you know
the other fairly trivial. So why not include this as an optional possibility.

You have stated that you don't think there is demand enough, and on this
I agree. I do however find it unfortunate.

I am curious why though, it has been possible in many languages in the past,
to write inline assembler.

Why was this feature deemed worth and my suggestion, not so?
I don't think it is an unworthy suggestion... Especially since it is
supported at the platform level. I just don't think that there has been
enough user demand for MS to develop this feature.
I would argue that both VB.Net and C# are, shall we say, a tad more popular
than assembler ever was?
>The only time, that I
can really think of is using VB.NET for office automation, simply
because it is much easier and cleaner to use VB.NET for late-bound
scenarios - though, it looks as if that might change in C# v4.

If my idea was implemented you wouldn't have to wait for C# 4 VS10 (I'm guessing
mid 2009 at best)
At best...
>I just don't see this as a feature that many developers will be
clamoring for.

Again this may be true, but it doesn't mean it's a bad idea.
Don't get me wrong, I'm not down on the idea. I might use it if it was
offered. I just don't think that there is enough demand for MS to spend
the resources on developing the feature.

--
Tom Shelton
Jun 27 '08 #25
On Thu, 29 May 2008 19:37:00 +0000 (UTC), Rory Becker
<ro********@new sgroup.nospamwr ote:
>Hello Joergen,
>I write mainly in VB.Net, but sometimes I just need to use
those darn unsafe pointers (for just a few functions) and
there is no substitute (that I know of) for those in VB.Net
so I have to create a separate project/dll and use ILMerge
in a post-compilation step if I do not want to distribute yet
another dll :(
/Joergen Bech

Annoying isn't it.

Someone correct me if I'm wrong....

Isn't XAML another language whose forms are compiled into the dll along with
C# Or VB.Net?

Surely XAML compilation isn't done by both CSC and VBC?

Isn't there a middle tier to the compilation already somewhere?
XAML is compiled into BAML using xamlc.exe. At the same
time, this compiler generates a partial class using your favorite
language. This partial class includes fields for the window,
code loading the BAML, code that connects handlers, etc.
After that, the csc or vbc takes over.

Well, at least that was how it used to be. I believe it is
all handled by MSBuild nowadays, but similar stuff happens
behind the scenes.

Regards,

Joergen Bech

Jun 27 '08 #26

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

Similar topics

30
9433
by: Rhino | last post by:
I am giving some thought to applying for some jobs that want people with Java and C++ experience. I have been writing Java for several years and am fluent enough that I don't have to get help with Java very often. I have no real C++ experience and not much C experience for that matter. However, the core Java statements are "borrowed" from C and C++ has often been called "C with classes". It seems to me that it shouldn't take very long to...
16
1725
by: Ding Lei | last post by:
Dear fellows, I am currently a Java programmer, using it for around 3 years, & felt quite bored with it. IMHO, Java is too strict on lots of things, unlike Perl, There is usually only one or two way to do one thing with Java. Kinda of language I prefer is, elegant syntax, high-speed, wide usage, robust, great degree of freedom. I did learned C quite a long time ago, only a bit though. Not really sure is C the really language approriate?...
36
6580
by: No Spam | last post by:
Dear fellow Access 2003 Users, Is there a way to trim all of the fields in a table in one swoop using VBA (preferred) or a query? Right now, I am using an update query and updating EACH field to it's trimmed counterpart. Any ideas? Thanks! Kevin
8
1940
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the folders are actually created in the Solution Explorer so that I can find things easily. Its easy to select multiple files out of a single folder, but not recursively into subfolders. Any ideas? -- Adam Clauss
4
6704
by: James Thompson | last post by:
I'm sure this question has been asked a hundred times. I did a google search and found some older post and some mixed reviews. I am looking for an updated opinion on which book is the best for learning Visual C++ .NET. A little background, I have been programming C# for the past year and I was a Visual Basic programmer for about 5 years before that. I created a new project in C++ .NET and it is like night and day compared to C#. I was...
2
1308
by: Jensen bredal | last post by:
Hello, I'm quiet confuse after i attended a CMS course. I'm building web apps using asp.net and having looked at the version 2 of asp.net , i doubt wehter it is stil necessary to learn cms. The features in asp.net 2.0 are very very closed (in my opinion) to what you get through a cms system. And you don have to learn any new language . Can someone tell me if i misunderstood something about CMS? Many thanks in advance
34
3164
by: pandit | last post by:
hai all, i want to become a good programmer. one of my friends ( named "arnuld", he posts here infrequently), taught me Lisp. so i am not a programming beginner. i have heard these 2 points. i want to know how : 1. C gives you a strong base of Procedural style of programming which forms the basis of learning other paradigms e.g OOP
12
4039
by: kostas | last post by:
Hi I was asked to propose an interview question for C/C++ programmers (CAD/CAE software) I came up with the following ---------------------------------------------------------------------------------------- float fun(float value) { float f1 =0., f2 = value; float tol = value/1000.; float result,tmp;
0
991
by: yingyu1107 | last post by:
Learn chinese kung fu is so easy! click :www.kungfuer.com/ Secondly, the martial arts is sports, it clearly distinguishes it from the practical people injured and maimed combative techniques. Routine movement despite contains rich combative approach, but its purpose is to drill through to the physical and businessmen offensive and defensive capacity, ability and skills contest, the technical requirements and practical techniques to a...
0
9704
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
9571
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,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
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
10069
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
9132
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
7608
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
6845
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.