Nice! However, I'd appreciate the converse more. I'm pretty well versed in C++, and every time I try to write something in C, I fall back to C++. I find memory management a pain without RAII, error handling a hassle without exceptions, and, well, anything really a pain without some sort of standard container library. I have the idea that there's good alternatives for these in C-land, but I'm unfamiliar with them and…
C++ For C Programmers
41–50 of 53 posts
Re: C++ For C Programmers
#42On another note: people claiming "C/C++" skills usually have neither.
Why do you say that?
Re: C++ For C Programmers
#43Re: C++ For C Programmers
#44OK I'm going to date myself here...when I studied comsci/CPrE in college, we started out with C and moved to C++ and then to Java. I guess it doesn't speak much for the depth of the classes that I found C++ pretty easy to get into and used it in higher level courses, such as one involving Open GL. I guess what I'm asking is... who uses just C any more ? I can only guess that if, by this point, your main expertise is…
As another datum, where I went to school the intro to CS data structures and algorithms courses were taught in C++ and the operating systems course was taught in C. In my day to day work I use C and a tiny bit of assembly (more reading than writing).
Re: C++ For C Programmers
#45On another note: people claiming "C/C++" skills usually have neither.
That is exactly right... It is like they are assuming that by knowing C, then implicitly they know C++. That's tremendously wrong and they will notice that as soon as they work on a non-so-small project.
Re: C++ For C Programmers
#46I'm slightly afraid to learn C++ after being told so many horror stories. But for the low low price of free? Count me in.
If you need C++ for a living then you have no other option. If you want to enjoy programming then I recommend to stay away from C++. I have written a lot of software in C and C++ in my programming career but C++ is not fun anymore. There are so many (even free) implementations of better languages. For instance C#, Python, Go. If you want to learn a next generation language right now then you should look at Rust. It s…
Re: C++ For C Programmers
#47Re: C++ For C Programmers
#48Imho, C++ should be thought of as a new language with a degree of backward compatibility with old C code, not as a 'bigger C'. How I'd start: Lesson 1: Pointers don't exist in C++, we have references. Lesson 2: malloc() doesn't exist in C++ Lesson 3: Templates are awesome. Lesson 4: Smart pointers are awesome. Lesson 5: 'Structs' can have constructors, and they're awesome! Lesson 5.5: Exceptions are awesome! Lesson 6…
http://www.amazon.com/For-Programmers-Third-Edition-3rd/prod...
Re: C++ For C Programmers
#49Imho, C++ should be thought of as a new language with a degree of backward compatibility with old C code, not as a 'bigger C'. How I'd start: Lesson 1: Pointers don't exist in C++, we have references. Lesson 2: malloc() doesn't exist in C++ Lesson 3: Templates are awesome. Lesson 4: Smart pointers are awesome. Lesson 5: 'Structs' can have constructors, and they're awesome! Lesson 5.5: Exceptions are awesome! Lesson 6…
Re: C++ For C Programmers
#50Imho, C++ should be thought of as a new language with a degree of backward compatibility with old C code, not as a 'bigger C'. How I'd start: Lesson 1: Pointers don't exist in C++, we have references. Lesson 2: malloc() doesn't exist in C++ Lesson 3: Templates are awesome. Lesson 4: Smart pointers are awesome. Lesson 5: 'Structs' can have constructors, and they're awesome! Lesson 5.5: Exceptions are awesome! Lesson 6…
I tend to bash C and C++ a lot given their unsafe by default nature as a Pascal refugee, but at least C++ can be made safe when the right abstractions are used and I do like it anyway.