Solved

VB.Net vs C#.Net

Posted on 2012-04-11
6
602 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

752 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