Solved

VB.Net vs C#.Net

Posted on 2012-04-11
6
599 Views
Last Modified: 2012-04-12
Hi Experts,

I was told that the Active Directory was built using the C# language.

What I was wondering was that, VB.Net and C#.Net are equal in the ability to write code.

But are there any small or major differences between that two languages that can do and can not do?

Thanks in advance.
0
Comment
Question by:baabaa_nl
6 Comments
 
LVL 20

Assisted Solution

by:BuggyCoder
BuggyCoder earned 84 total points
ID: 37834686
0
 
LVL 57

Assisted Solution

by:Mike Kline
Mike Kline earned 84 total points
ID: 37834768
Good comparison from Buggy, where did you get the info about C#,  the oldest parts of AD go back over 20 years...before c#

Nice history here   http://blog.joeware.net/2008/08/11/1420/

Thanks

Mike
0
 
LVL 16

Assisted Solution

by:MikeMCSD
MikeMCSD earned 83 total points
ID: 37835106
>> VB.Net and C#.Net are equal in the ability to write code . . .

for the most part in everyday coding, probably not.

But VB.Net is not being used that much anymore and C#.Net has really taken over.
I started with VB and liked it, but had to change over to C#
because everything is in C# now.
If you are going to choose one, choose C#.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 83 total points
ID: 37835193
BuggyCoder's link is good, but it is also a bit dated. There are a few inconsistencies and omissions on the page not to mention a lack of newer features added in the newer versions of the languages (i.e. the stuff that was released around when .NET 4.0 was released). The lack of newer features is only due to the time when the article was written, though, so I don't hold it against the author. It is a solid comparison. Just know that it is not all-encompassing  = )
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 83 total points
ID: 37835279
Recently, both VB.NET and C# teams have been moved into a same management and all new features will be added to both C# and VB.NET concurrently.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 83 total points
ID: 37836475
Active Directory was probably written in C++, that was the language used the most at that time, specially for anything close to the system in those times. It is still the case. Although C# and C++ are similar at first sight, there is a big difference between them, and that is the fact that C++ has pointers and enables the programmer to manipulate memory directly. This is why C++ is still the preferred way to code for system applications.

In .NET, it's not the language that does the job, it's the framework. The language is just a way to declare variables, constants, classes, methods and properties. Once the program is compiled, you could not tell which language was used.

There were little differences in the past (VB had optional parameters but C# did not C#, C# had anonymous types but VB did not). As CodeCruiser pointed out, Microsoft was tired of having people complaining about those little differences, and have decided to bring similar features to both from now on.

Your choice between them is purely a question of preference, usually based on your background as a programmer.

MikeMCSD is wrong when he says that VB "is not being used that much anymore". It is true that recently, we have started to see more C# than VB. But it is not because VB is not used. It is simply because programmers coming from C, C++ and Java are attracted to C# because it is their experience. These languages share a lot of syntax features. On the other hand, VB.NET attracts mostly VB classic (VB6) and VBA programmers. Anybody coming from a platform other than Microsoft will automatically select C#, because there is no VB on other platforms.

In my experience as an in-house trainer in VB.NET, and you can see it by the questions here on Expert-Exchange, VB is still very alive.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now