Sunday, July 12, 2009

If C# is a newer version of C++, why do most colleges and school s still teach C++?

In your option which is better?? Does C# have more syntax than C++? Or is it about the same thing as C and C++?

If C# is a newer version of C++, why do most colleges and school s still teach C++?
Both languages have their place.





Both languages are commonly used.





Syntax is very similar. They are also very similar in syntax to JAVA.





All c-based languages have similiarites. I can copy C# over to JAVA and most likely not have a compile issue. Except, if I started using libraries only avaialble in .NET





Where most people have an issue with one over the other is their familiarity with the base libraries.





Where I work we use JAVA, C#, and C++


There are two-sides of the fence for programming preferences either JAVA or C#


C++ is not preferred for programming, because we're lazy. It just happens to be the ideal langauge for many of the things we need to accomplish.





Why Java or C# - really it doesn't matter. You really just have to know how to write good clean code. My coworkers pick a side between JAVA or C# because they don't know the other languages libraries.





Myself - I'm a C# programmer. I can write a webservice in C# in no time. Ask me to do it in JAVA and I'd have to look at exisitng code or my book. In about 3-5 minutes, I can tell you. I just forget the process. C# I have it engrained in my head.





So why one over the other in education. C++ is a good language to start people on the basic understanding of how to write good, clean, and efficient code. Not to mention - you have to know how to allocate memory - which you forget about in C# or JAVA you can have problems because the garbage collection might not happen quick enough.





I believe C only has 23 commands - the rest are libraries - so I'd also say it's a good building block. Like learning to add before you multiply.





Anyway, don't be dismayed - it's very important to know C++





Don't forget there are many other languages out there too... it's good to know what languages are good for what purpose.
Reply:it is (c#) a microsoft's avtaar of Java.
Reply:C# is not a newer version of C++. It is an object-oriented programming language developed by Microsoft as part of their .NET initiative. Microsoft based C# on C++ and Java.
Reply:If it isn't broken don't try to fix it.
Reply:Answer is simple C is base of C++ and C++ is the Base of C#.





so most of the colleges teach C before C++ and C++ before C#.
Reply:Because C++ is still the best.





Newer isn't always better and Microsoft is always making it's own versions of things that have already been done first by someone else.





They weren't even the first to create the windows style user interface.
Reply:In my opinion, C# is not a new version of C++. The two languagues differ each other significantly, and in my personal opinion, C# is more of a Microsoft version of Java.





So, if you are talking about system level programing, the choice would still remain a hybrid of C and C++, rather then C# (which requires .NET and CLR to run).





Further, I am not sure if C# is truly platform independent, which C++ and C are


No comments:

Post a Comment