Moving from C# to C++
-
That's exactly it. A ball of silence emanating from the hand in question, followed by giggling from all around the hall as people began to realise exactly who's hand that was.... :laugh: It happened at ACCU 2007 during a slightly opinionated Dan Saaks session on the correct use of const. The price of the conference was worth it just to see that one event!
Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
I wish I would have seen that. We hired Saks to come in and teach a course in C++ back in the mid 90's. He was a good instructor, but I remember there were certain things that could cause him to go off on a tangent,
const
among them.Software Zen:
delete this;
Fold With Us![^] -
That's exactly it. A ball of silence emanating from the hand in question, followed by giggling from all around the hall as people began to realise exactly who's hand that was.... :laugh: It happened at ACCU 2007 during a slightly opinionated Dan Saaks session on the correct use of const. The price of the conference was worth it just to see that one event!
Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
You're such a geek Anna! ;)
"Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg
I do try. :-\
Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
I wish I would have seen that. We hired Saks to come in and teach a course in C++ back in the mid 90's. He was a good instructor, but I remember there were certain things that could cause him to go off on a tangent,
const
among them.Software Zen:
delete this;
Fold With Us![^]It was quite something, that's for sure! :laugh:
Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
In this case you may consider spending one week playing with the C pointers. Make your own queue, use multiple references, break the memory, use function pointers etc. In some OOP scenarios in C++ you will need to be very familiar with the pointers.
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.
-
That kind of depends - a lot of VB programmers won't understand you (and one heckuva lot of PHP developers either).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
IMO C#, Java, or even (shudder) VB are better for that than C/++. The former two share a syntax with their predecessors while not possessing as many obscure items or as complex a syntax to confuse people who haven't used it recently. By not having as many complex features C#/java are easier on someone who's familiar with a Cstyle language but not the specific one being used. The virtue of Vb's many sins is verbosity, and while annoying in many ways being verbose makes it easier to figure out if you're not familiar with it. That said, as long as you're not writing in an obfuscation tool masquerading as a programming language if you can't get the jist of a reasonable size snippet of code in an unfamiliar language you're probably not in the right business. EDIT: ... or at a minimum you should change your job title from developer/computer scientist/software engineer to code monkey.
The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
Really? I've been looking for a C++ gig for ages but everywhere seems to me to be after C#, VB.NET, VB6, Delphi, PHP and / or Java. Or even worse, Sharepoint.
-
Really? I've been looking for a C++ gig for ages but everywhere seems to me to be after C#, VB.NET, VB6, Delphi, PHP and / or Java. Or even worse, Sharepoint.
The companies I'm applying to all seem to want C++ as well as C#. I imagine they have a lot of older code that needs moving. The problem is that I know I could do the jobs (its not exactly hard to read/work out what is supposed to be happening in the old code), but getting past interviews is the hard part!
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
-
You're such a geek Anna! ;)
"Creating your own blog is about as easy as creating your own urine, and you're about as likely to find someone else interested in it." -- Lore Sjöberg
Personally I don't recommend Stroustrup -- you should certainly own a copy and read it at some point but it's not great for learning from. I keep a detailed list with comments at http://www.markjoshi.com/RecommendedBooks.html
-
Personally I don't recommend Stroustrup -- you should certainly own a copy and read it at some point but it's not great for learning from. I keep a detailed list with comments at http://www.markjoshi.com/RecommendedBooks.html
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
The best one that I found is http://msdn.microsoft.com/pt-br/library/ms235630.aspx#MtViewDropDownText have fun! :laugh:
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
C++ From The Ground Up (Third Addition) by Herbert Schildt, Osborne Publications If you are developing for Windows, read up on MFC until you get board and then study with Win32 and Win64 API's. There are several API Bibles available - all read about he same.
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
"C++ FAQ" by Cline, Lomow, and Girou, second edition. Herb Sutter's books, "Exceptional C++", "More Exceptional C++", and "C++ Coding Standards" The "C++ FAQ" is excellent about explaining why things work the way they do in C++ so you'll get the subtle differences. "C++ Coding Style" is also excellent in the 'Do it this way because that way is going to hurt.' The Exceptional * books are more advanced, deeper dives into specific features.
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
I have found that companies doing 3D modeling, like CAD, use C++. But, beware of pointers. They can bite you badly. Under C#, they are managed for you. Under C++, you need to manage them. Learn about smart pointers. The BOOST C++ Libraries have really good smart pointers and make using pointers much like using C# references. (Go to: www.boost.org for more information.)
-
I live south of London, inside the M25. Don't get me wrong, I still do OK without the C++ it's just that it seems it would give me the edge over people when it comes to it. Recently I did 7 (yes, seven) rounds of interviews for a position for a C# position, and I eventually didn't get it coz I couldn't answer their C++ pointer questions.
Ahh... These crappy pointers :-( This is a real barrier between managed/interpreted languages and real ones. I'm double technology guy with strong PHP and .NET knowledge but when I tried to fix some issues with C module for Apache I stuck on these stars and ampersands. C/C++ is awesome languages - but you need to feel a taste of it. As soon as you feel it - everything will go smooth.
------------------------------------------------------------ Want to be happy - do what you like!
-
That kind of depends - a lot of VB programmers won't understand you (and one heckuva lot of PHP developers either).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Hah... what about combination of PHP+VBScript+VB.NET+C#.NET? Is there a real occurrences that some people just know VB.NET? Honestly it suck because if someone stuck with one and only language - his carrier will die along with this language. In my case I have knowledge of PHP,JavaScript,VBScript,VB.NET,C# along with Pascal and Delphi and in addition I'm learning (or try to refresh my memory) C, C++, Objective-C. MFC, QT, GTK and other frameworks are also in my scope. However - knowing C++ isn't just only a way of getting new job - it will make your skills twice wider as you'll be able to program for all kind of Linuxes including Android e.t.c. My only recomendation - don't stuck with one technology, one language and one framework (as many I suppose do). Books - are only books. Books are just reference and "swap storage". Most important is to start real project, join any opensource for example, and get all that experience. BTW - MSDN is quite good resource for Win32 :-)
------------------------------------------------------------ Want to be happy - do what you like!
-
I have found that companies doing 3D modeling, like CAD, use C++. But, beware of pointers. They can bite you badly. Under C#, they are managed for you. Under C++, you need to manage them. Learn about smart pointers. The BOOST C++ Libraries have really good smart pointers and make using pointers much like using C# references. (Go to: www.boost.org for more information.)
James Lonero wrote:
But, beware of pointers. They can bite you badly. Under C#, they are managed for you. Under C++, you need to manage them.
Not only pointers, but memory alignment and concurrency is more "managed for you" under C# than C++. With multicore being the norm for today's system, I would recommend in-general Duffy's book "Concurrent Programming on Windows". You should immediately skip to Chapter 10 "Memory Models and Lock Freedom", to get that chilly feeling "Why I never even SUSPECTED that stuff could go wrong like that...". If you're doing server-stuff which may need to run on Itanium then Chapter 10 may scare you right back to C#. After Ch 10 I can't imagine that any of MY C++ has a chance of running on Itanium. Then back to the beginning, it's worth your while to read every page in detail. The "most helpful" Amazon reviewer just-doesn't-get-it, IMHO. The "mish-mash of random odds and ends" he complains about, to my perspective, are things which like Duffy often says "will come in handy" and I personally had never noticed and in a couple of cases was thrilled to know about -- yes they WERE there in the MSDN, but while it's feasible to read this book from cover-to-cover for Duffy's "come-in-handies", who's going to read MSDN cover-to-cover ?
pg--az
-
I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris
Hi, man! I wish to recommend You the Bruce Eckel's C++ books; you can download them free, and as I know, there was the whole standard C++ language described. The right studio supporting it is VS2005 or 2008; in Visual Studio 6, there is no full support for C++ language, for example, You can't use multiple templates as parameters in templates. So, try with Bruce Eckel's C++. You can find Eckel's site using google or like. Btw, I'm somehow impressed with Your expression that it seems C++ is more wanted by employeers than C#. Although personally I preffer C++ programming, I thought that C# was most wanted. OK, this is a nice news for me! Best regards!