Pros and Cons of C#.....

CP

Senior member
Oct 12, 1999
229
0
0
C# looks cool and promising. C# seems like (C/C++)+(Java) but I'm sure nothing is perfect so does anyone has any idea about the pros and cons of C# over C/C++ and Java?

Thanks
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
M$ failed to control Java on their platforms, so they need to come up with another option.
 

BlackOmen

Senior member
Aug 23, 2001
526
0
0
I'm not a big Java fan, so I'm going to go ahead and assume to say that C# won't be my thing either.
 

bevancoleman

Golden Member
Jun 24, 2001
1,080
0
0
C# vs C/C++
* C/C++ will probably be a faster as it dosn't run under a VM/CLI.
* C# is much more OO, some people will like it, others will hate it :)
* C# should come with a nice set of support libaries. Should be able to do most things without 3rd party libs.
* C# is platform portable in a compiled form (Linux and FreeBSB currently).
* C/C++ is platform portable in a source format to nearly anything.

C# vs Java
I would consider it unfair to consider C# as a clone of Java. Java is a C++ dirivative with OO and C# is C++ with OO, so who cloned who??
* Java currently has the advantage over C# in platform portability, C#'s support for Linux is currently beta and is only console.
* C# has the advantage of being better intergrated into Windows, so it sould be much better at GUI under than platform (only console support for linux currently)
* The libaries between C# and java seem to be both fairly compleate. I havn't noticed much lacking.
* Suns apparent lack of intrest in optomising Java VM (EVERYBODY makes faster VMs than Sun, IBM is often 50% to 100% faster) will probably leave C# as faster alternative.
 

joohang

Lifer
Oct 22, 2000
12,340
1
0
bevancoleman,

Good to see another intelligent post about .NET around here. :)

Just to add some more stuff:
- C# is an ECMA-standardized programming language.
- Microsoft's implementation of C# is Visual C#.
- For a while, Microsoft tried to shift away from tying programming (or scripting) abilities to programming languages. So many people just don't seem to get that one could write ASP pages in VBScript, JScript or PerlScript. They had minor differences but almost equal in power generally speaking. Same holds true for .NET and this "language independence" is even more apparent.
- C# is a language. The .NET base class libraries (or 3rd party libraries) provide most of the power.

So one should compare .NET vs. Java vs. "legacy" apps written in C/C++. C# vs. Java implies purely a debate over the language itself. Also, it's a good idea to narrow down the comparison. .NET is huge. Compare what? Win32 UI? Web Services? Web applications? Data access? XML? It'll take an encyclopedia to compare all possibilities. :)