<p>In a few weeks, we'll be teaching a crash course on C++ for Java programmers straight out of college. They have little or no experience yet with C or C++.</p>
<p>Previous editions of this course were just 1 or 2 half-day sessions and covered topics including:</p>
<ul>
<li>new language features, e.g.
<ul>
<li>header vs. implementation</li>
<li>pointers and references</li>
<li>memory management</li>
<li>operator overloading</li>
<li>templates</li>
</ul>
</li>
<li>the standard libraries, e.g.
<ul>
<li>the C library headers</li>
<li>basic iostreams</li>
<li>basic STL</li>
</ul>
</li>
<li>using libraries (headers, linking)</li>
<li>they'll be using Linux, so
<ul>
<li>Basic Linux console commands</li>
<li>GCC and how to interpret its error messages</li>
<li>Makefiles and Autotools</li>
</ul>
</li>
<li>basic debugger commands</li>
<li>any topic they ask about</li>
</ul>
<p>During the course, each person individually writes, compiles, runs, and debugs simple programs using the newly introduced features. Is this the best way to learn?</p>
<ol>
<li>Which topics do you consider most crucial?</li>
<li>Which topics should be added or removed?</li>
<li>Which topics just can't be covered adequately in a short time?</li>
</ol>

[{'answer_id': 48501, 'author': 'Rob Rolnick', 'author_id': 4798, 'author_profile': 'https://Stackoverflow.com/users/4798', 'pm_score': 3, 'selected': False, 'text': "<p>If they are coming from a Java world, they are used to garbage collection. As such, I'd probably spend a bit of time talking about smart (reference counted) pointers, and how they compare to garbage collection.</p>\n"}, {'answer_id': 48508, 'author': 'Konrad Rudolph', 'author_id': 1968, 'author_profile': 'https://Stackoverflow.com/users/1968', 'pm_score': 6, 'selected': True, 'text': '<p>I can only once again point to <a href="http://www.research.att.com/~bs/new_learning.pdf" rel="nofollow noreferrer">Stroustrup</a> and preach: Don\'t teach the C subset! It\'s important, but not for beginners! C++ is complex enough as it is and the standard library classes, especially the STL, is much more important and (at least superficially) easier to understand than the C subset of C++.</p>\n\n<p>Same goes for pointers and heap memory allocation, incidentally. Of course they\'re important but only after having taught the STL containers.</p>\n\n<p>Another important concept that new students have to get their head around is the concept of different compilation units, the One Definition Rule (because if you don\'t know it you won\'t be able to decypher error messages) and headers. This is actually quite a barrier and one that has to be breached early on.</p>\n\n<p>Apart from the language features the most important thing to be taught is how to understand the C++ compiler and how to get help. Getting help (i.e. knowing how to search for the right information) in my experience is the single most important thing that has to be taught about C++.</p>\n\n<p>I\'ve had quite good experiences with this order of teaching in the past.</p>\n\n<p>/EDIT: If you happen to know any German, take a look at <a href="http://madrat.net/coding/cpp/skript" rel="nofollow noreferrer">http://madrat.net/coding/cpp/skript</a>, part of a <em>very</em> short introduction used in one of my courses.</p>\n'}, {'answer_id': 48509, 'author': 'axk', 'author_id': 578, 'author_profile': 'https://Stackoverflow.com/users/578', 'pm_score': 2, 'selected': False, 'text': '<p>Memory management (pointers, allocation etc), basics of STL and templates (since STL uses templates). I think STL is important since one would be missing the richness of the Java SE class library in C++.</p>\n'}, {'answer_id': 48634, 'author': 'chakrit', 'author_id': 3055, 'author_profile': 'https://Stackoverflow.com/users/3055', 'pm_score': 2, 'selected': False, 'text': "<p>If you are going to put a lot of Java programmers <em>straight out of college</em> to write production code, I'd say the first thing you should be concerning is pointers and memory management.</p>\n\n<p>Really, those who come directly from managed code rarely have the skills to debug pointer-related exception, let alone use it correctly, or even understands how their language/tools utilize it.</p>\n\n<blockquote>\n  <p>Pointers is how you <strong>think</strong> not just write code.</p>\n</blockquote>\n\n<p>The framework and coding practices can be taught as tips and notes along the way.</p>\n\n<p>But failing to understand pointers when writing C code is just waiting to shoot yourself in the foot, if not the head.</p>\n"}, {'answer_id': 48646, 'author': 'Eugene Yokota', 'author_id': 3827, 'author_profile': 'https://Stackoverflow.com/users/3827', 'pm_score': 2, 'selected': False, 'text': '<p>I would spend a whole day discussing how to write a good class in C++. <a href="https://rads.stackoverflow.com/amzn/click/com/0136152503" rel="nofollow noreferrer" rel="nofollow noreferrer">Deitel &amp; Deitel</a> may help as a reference.</p>\n\n<ul>\n<li>When are constructors called?</li>\n<li>When are assignment operators called?</li>\n<li>When are destructors called?</li>\n<li>What\'s the point for const Foo &amp; a_foo?</li>\n</ul>\n'}, {'answer_id': 48673, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 2, 'selected': False, 'text': '<p>I would like to add that you should make sure to point out where they can find language and API references.  In java, the API and language specification is at your fingertips online at java.sun.com... with C or C++, it\'s not quite as simple and easy to find reference documentation.</p>\n\n<p>Whenever I am doing something in C or C++, that is my biggest problem... trying to find what I need.  I usually turn to <a href="http://www.cplusplus.com/" rel="nofollow noreferrer">cplusplus.com</a>, which usually has what I need, otherwise I google for it.  If you have a set of references you use (online or in the form of books), list them and tell them what you use each reference for.</p>\n'}, {'answer_id': 2465952, 'author': 'Alexandre Hamez', 'author_id': 21584, 'author_profile': 'https://Stackoverflow.com/users/21584', 'pm_score': 0, 'selected': False, 'text': '<p>You should take some time on memory management, and especially RAII.</p>\n'}]
['https://Stackoverflow.com/questions/48496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2686/']