C# or C++?

Post Reply
tilted
Posts: 1
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by tilted »

If you have a matrix or vector class in .NET you can overload operators.. been there since 1.1 (or earlier I believe)



 



(Sorry forgot to quote Finn mac's post regarding not having operator overloading in generics -- generics is nothing to do with it)
User avatar
Finn Mac Cool
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by Finn Mac Cool »

Here's a discussion of the problems with operators in C#.



 



http://www.codeproject.com/csharp/GenericOperators.asp
User avatar
athletico
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by athletico »

tnx for that link Finn ...  Generics + Reflection = Lightweight Code Generation and some very cool dynamic apps.



(incidentally the guy that wrote that article is working on the DLinq project in C# 3.0)
User avatar
Crassus
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by Crassus »

I've had a fair chance to play with C# in VS.NET 2005. Very good. I pity ye who labour yet with C++.



The VS2005 IDE in itself is very, very good.



Nice numerical package also (including Matrix class) http://www.cdrnet.net/projects/nmath/
What is best in life? To crush your enemies... to see them driven before you and to hear the lamentation of the women
User avatar
insomniac
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by insomniac »

So just to kick off this thread again - would you guys recommend that a newbie not bother learning C++ and jump straight to C#?



I'm just curious, because I'm quite fried after a few years of C/C++ and extraordinary difficulty of implementing a good Windows app in C++.



Is C# better at this?
You do not have the required permissions to view the files attached to this post.
User avatar
tristanreid
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by tristanreid »

Yes.



Generally, .NET is better, so the mere act of switching to C++ .NET will help (the visual studio environment is very nice), but switching to C# makes even more sense, there is no advantage of staying with C++ .NET.



I can be more specific if you'd like, but I believe there are dozens of threads about the advantages.



-t.
If you can make computers as smart as humans you will have invented a machine that can sing the words to the Flintstones tune but will forget to pay the phone bill.
User avatar
mj
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by mj »

there are more jobs in quant for C++ programmers
Quant Job Interview Questions and Answers now available on lulu and createspace: www.markjoshi.com
User avatar
insomniac
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by insomniac »

MJ,



Undoubtedly you're right, though this begs the question why. I get the impression - and please do correct me if I'm wrong - that it is more to due to the requirement of legacy code maintenance rather than new project development.
User avatar
IAmEric
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by IAmEric »

It is absolutely a legacy issue. Otherwise, everyone would be using Matlab Wink
One day, in the midst of another one of his increasingly frequent homicidal fantasies, Croke noticed a new member had invaded his favorite forum. It was an obnoxious coed (or so he thought) who went by the nickname "Lilly". At first, all Croke could think about was strangling the life out of this giddy new member. Her insistent flirting with everyone was disgusting to Croke and he began a merciless vendetta against her.



He was sure that his prominent status would cause the other "regulars" to outcast the newcomer as he wished. On the contrary, everyone dug Lilly and even Croke's most vehement beratings fell on def ears. This infuriated Croke even more.
User avatar
tristanreid
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

C# or C++?

Post by tristanreid »

[i][b]mj[/b]: there are more jobs in quant for C++ programmers[/i]
If you can make computers as smart as humans you will have invented a machine that can sing the words to the Flintstones tune but will forget to pay the phone bill.
Post Reply