C# versus C++
I found this funny and quite eloquent. In this MSDN walkthrough article there are alternative samples in different COM-aware languages. This is one of them in C#:
Code:
using System; Quote:
|
C# is great and so much more time efficient. But I'll always have a special place in my heart for C++, there is something that just looks so elegant about how complicated it is. :perv:
Quote:
|
I like C, and it was my first language (well second after QBasic really), but I never really got to learn and use the C++ superset. For a systems programming language with modern features, I think it would be much better if C++ were replaced with D (not gonna happen):
http://www.digitalmars.com/d/ |
I hate 'em both.
BASIC FTW! XD |
Aw man I hate Basic syntax. Dim, Call, Sub, Function, line breaks...? Eew. :P
|
does basic even support objects?
|
Well there are thousands of different little-known languages in the Basic family alive today, they only have the keywords in common.
As for (Microsoft) Visual Basic .NET, it supports objects as per the .NET Framework just like C#, actually in principle you can do with it whatever you can do with C# (except some fringe features), you can really translate between the two line by line most of the time, and MSDN always has samples for both C# and VB on each page. But it was C# that was designed as the main .NET language, VB.NET was made afterwards as a way to accommodate programmers of previous versions of VB into the new platform. As for Microsoft Visual Basic 6.0, it did support objects partially, but without inheritance, only one default constructor that couldn't have any paramters... But most VB programmers never created their own objects besides GUI Forms, unless they needed to author a COM/ActiveX component. And because of the Basic philosophy of "making things easier" for beginners, Forms aren't treated like classes even though they're derived classes under the hood, and an instance is created automatically with the name of the class, so when VB programmers move to .NET they don't even understand the difference between a class and an instance of it. Basic should be killed with fire. :P |
The current time is 11:46 PM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.