|
Downsides of C#:
1. The generics in C# are far from as powerful and versatile as the templates in C++.
2. The garbage collection (even with IDisposable and "using") means RAII can't be used effectively in C#.
Apart from that, I quite like the language. In my current role, the C++:C# split is about 60:40, and I'm fine with that. I wouldn't consider using C++ for a GUI application, while C# is great for that.
|
|
|
|
|
yes^4 (all upvoted)
'g'
|
|
|
|
|
Actually, C++ is the best language ever, so any other will look pale compared to it.
/sits down and grabs pop-corn
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Rage wrote: C++ is the best language ever Sorry but that accolade will always go to C, as designed by the great K&R.
Veni, vidi, abiit domum
|
|
|
|
|
... which we all know, in the depth of our hearts, was a badly implemented BASIC compiler...
speramus in juniperus
|
|
|
|
|
The beauty of c++ is that it will never die. It doesn't stop growing. For example in the latest update c++ 11 we see something very interesting for strongly typed language, the type auto.
After few years/decades/centuries(lets hope) M$ will stop supporting .Net Platform and c# will die with it. C++ doesn't need any Platforms unlike c#
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
Argonia wrote: After few years/decades/centuries(lets hope) M$ will stop supporting .Net Platform and c# will die with it. Why would C# die with it? It doesn't need to run on .NET - there is at least one alternative to the .NET framework, and C# is now producing code for iOS and Android as well.
|
|
|
|
|
Exactly; a language is just a language. In theory it can be implemented for any system.
|
|
|
|
|
if(ThisProjectSuitsc++())
UseC++();
else
UseAnotherLanguage();
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I got into the whole C# vs. C++ with a previous company the end result was C++ will let you build the gallows and hang yourself, while C# will give you the gallows but makes it hard(er) to hang your self. I must admit not to being very fond of object orientation & classes (give me a struct any day!)
My Two pennies worth any now back to stick a test rig together.
|
|
|
|
|
Here is my point of view[^]. It was written in 2008, and after that I had opportunity to work with both languages, but my opinion is pretty much the same: C# is good enough for a typical enterprise application, but there is really nothing interesting or exciting about it.
|
|
|
|
|
It's been awhile since I've worked in C++ but as I skim stackoverflow and glance at the occasional specificaiton or example of C++11 I can't help but think to myself that it has become an amalgam of every computer language trend since C. How anybody figures out to write C++11 coherently, using the correct language features, at the correct time in the correct way is now beyond me.
So I for one do not miss friend classes or private inheritance (or multiple inheriteance for that matter). I say Yay C# for its relative simplicity!
10 PRINT "Software is hard. - D. Knuth"
20 GOTO 10
|
|
|
|
|
I like C#. I don't like C++.
|
|
|
|
|
Argonia wrote: Oh i will make The class A private so it will be used only with the Class B and just use friend
Good grief. Even when I was coding C++ (which I did for years) I thought private classes and "friends" were a bad design.
Yes, C++ templates are a lot more flexible than C# generics, yes, multiple inheritance does have its uses when used carefully and interfaces don't always cut it, but other than that, I quite enjoy the ease of C# development. And you can specify "friend" assemblies in C#, but again, I consider it a bad idea.
Marc
|
|
|
|
|
|
+1 for not liking *friends* they go against the grain of *encapsulation* for one thing, and another thing *I don't like them*
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Argonia wrote: "Oh i will make The class A private so it will be used only with the Class B and
just use friend"
Ahhh the joys of C++, where friends can touch your private mem....
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
|
You were The Boss, weren't you?
Veni, vidi, vici.
|
|
|
|
|
How was the soup ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
As good as the veal!
speramus in juniperus
|
|
|
|
|
That reads like an interview I had. <<interviewer>> Well what skills do you bring to the company
<<me>> Ah, well you have my CV
<<interviewer>> Hmm what tools do you have?
<<me>> Ummm, what personally, Basics, multimeter, soldering iron that sort of thing...
<<interviewer>> Well you state "PIC's" on your CV do you have the programming tools for them
<<me>> Well I was going to using yours, wasn't I
<<interviewer>>Well granny has a soldering iron that doesn't make her an engineer, try doing this layout and some assembly code, I will pay X.
End of a long story did the layout, didn't get paid, got a call from the agent "I hear you took that job!"
<<me>> "No I didn't cheap **** got me to do a layout for him, still owes me money"
last I heard the company had been struck off...
|
|
|
|
|
"In the life of the Sovereign it edges into life again."(9)
Not too hard.
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
Resurrect ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
In the life of the Sovereign : REIGN
it : IT
edges : ES
into life again : REIGNITES
Veni, vidi, abiit domum
|
|
|
|