On CBSNews.com: Can 365 Nights Of Sex Fix A Marriage?

C# will rule the .NET roost

Tags: Matthew Osborn

  • Save
  • Print
  • 1

Takeaway: Technically speaking, .NET isn't picky--either C# or VB.NET will work just fine. But senior editor Matthew Osborn believes that C# will rule the .NET world. Find out why.


If you’re migrating to .NET but are uncertain about whether to go with VB.NET or C#, go with C#—it will be the lingua franca of .NET. Now, before you flame me, I realize that the Common Language Runtime (CLR) translates languages into the Intermediate Language, so you can use whatever language you prefer to crank out applications. You can even use different languages on the same project.

So why should you go with C#? For several reasons:
  • C# is more like Java. If you already have Java programmers on your team, they should be able to pick up C# relatively easily.
  • C# syntax is fairly easy to digest. Even if you’re not familiar with Java, C# syntax is very straightforward, and it’s cleaner. You can also rely on exception handling as part of the .NET Framework. The nefarious On Error Goto command still lingers in VB.NET, even though you can also take advantage of .NET exceptions in VB.NET.
  • One of the best advantages of C# is the power to support XML documentation. The XML documentation works a lot like Javadoc—you actually maintain your docs while you maintain your code. The VS.NET IDE has a bunch of tools built in for generating HTML documentation from your XML comments, so it's easier to use than Javadoc.

Get sharp
Events are a basic concept in programming. In our continuing series on C# fundamentals, we'll walk you through the process of creating events using Visual Studio .NET. Read "Working with events in C#."

Again, one of the tenets of .NET is that the language doesn’t necessarily matter: It boils down to your syntax preference. In my opinion, C# is more powerful and offers cleaner syntax. If you want more reasons to choose C# over VB.NET, check out the Builder.com article "How I learned to stop worrying and love C#." If you want to get a grasp of the basics, read "The role of the .NET CLR in creating a global development framework."

King for a day, or maybe longer
Will C# become the dominant force in .NET development? Post a comment below, or flame the editors.

 
  • Save
  • Print
  • 1

Print/View all Posts Comments on this article

True to a pointChris.Rogers@...  | 11/21/02
The only VB advantage that C++/C# programmers r...TX Buck  | 11/22/02
vb programmers find vb.net difficultpam@...  | 02/11/03
People and maintenance issues tooken.ross@...  | 11/25/02
C# is also missing features in VB.NETpam@...  | 02/11/03
Right but there is moreJustJP  | 11/22/02
Too many words!bill@...  | 11/22/02
KindaspacelikespacedotdotdotJustJP  | 11/22/02
You shuld have your curly...lelerew@...  | 11/25/02
Dang Job Marketwalt@...  | 11/24/02
Not worth itIMCODN  | 11/24/02
Learn one, you've learned 'em both...mike_maddux@...  | 11/25/02
Viva la diff.../mort la diff...lelerew@...  | 11/25/02
VB has it's placesgrover@...  | 11/25/02
CLR will rule the .Netyzzhongwei@...  | 11/25/02
The main missing point.....srinivasasivakumar@...  | 11/26/02
Where to start with C#?kenbarker@...  | 11/27/02
How to best learn .NET programmingpam@...  | 02/11/03
C# pro and contraSzymonG  | 11/27/02
Managed C++DukeAtreides076@...  | 11/27/02
Neither! I'll stick with DelphiBorlander  | 12/10/02
Borland just licensed .NET Frameworkpam@...  | 02/11/03

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET
advertisement
Click Here