C# as I understand it is more geared to .NET and network programming C++ is more of an Object Oriented language, what sort of practical differences would I be seeing if I tried to program in C#? I'm pretty well acquinted with C++ just not quite with C#.
Posted by Mucus (Member # 9735) on :
#, VM, M$
Posted by Blayne Bradley (Member # 8565) on :
Okay asked my teacher(s) to sum it up in a word: Huge.
Time to visit Chapters for a new C reference book.
Posted by fugu13 (Member # 2859) on :
C# is not very much like C++, besides being an imperative, object-oriented language that is in the same syntax family (C-like languages).
It is definitely "more geared" to .NET, in the sense of being written to be part of .NET, while managed C++ is C++ mangled to fit in .NET. Is is not any more 'geared to' network programming than C++, though, and is definitely not less object oriented.
The main practical differences are, better built in libraries for C# (though the collections library is bad; there's a better 3rd party open source one), some interesting language mechanisms (type inference and LINQ, to name a couple), and garbage collection (not that you can't have garbage-collected objects in C++).
Posted by King of Men (Member # 6684) on :
They're both Turing-complete (modulo memory limits, of course) programming languages for von Neumann architectures. So the differences are really quite tiny in the big picture.
Posted by fugu13 (Member # 2859) on :
Of course, so are prolog, haskell, befunge, and regular expressions with the perl extensions, so having those qualities is, for almost all practical purposes, nearly useless for determining if a language is similar.
Posted by BandoCommando (Member # 7746) on :
I think the real question should be, "How is C# different from Db?"
It's a question that often confounds even my brightest students...
Posted by King of Men (Member # 6684) on :
Big picture, fugu. Big picture! I think Blayne ought to take a look at Brainf*ck.
Posted by fugu13 (Member # 2859) on :
Ook! is the superior dialect of that.
I think my favorite esolang is Homespring, though, one of the metaphor-oriented languages: http://xeny.net/HOtMEfSPRIbNG Posted by Shmuel (Member # 7586) on :
LOLCODE FTW. Posted by Hedwig (Member # 2315) on :
quote:Originally posted by Blayne Bradley: C# as I understand it is more geared to .NET and network programming C++ is more of an Object Oriented language, what sort of practical differences would I be seeing if I tried to program in C#? I'm pretty well acquinted with C++ just not quite with C#.
It would be a disaster. Of course I pretty much assume that would be true if you tried to do [i]anything[i] in [i]anything[i].
Posted by HollowEarth (Member # 2586) on :
Sorta like when you try to use UBB code?
Posted by Orincoro (Member # 8854) on :
quote:Originally posted by BandoCommando: I think the real question should be, "How is C# different from Db?"
It's a question that often confounds even my brightest students...