News for hackers. Stuff that matters.

Ask HN: Learning C++ for Java developers

Hi,

I'm a Java developer who's developed an interest working with a couple C++ based projects (OpenCV and QGIS in particular). I know that there are bindings for other languages for both of these projects, but I feel its time to buckle down and learn C++.

Does the community have any recommendations for learning C++ from the perspective of someone who has only worked with Java and Python in their educational/professional career? I also want to make sure I'm learning modern best practices and not outdated techniques, which is a hazard of Googling for random web tutorials.

( 2 comments | 2 points | on HN )
Re:Ask HN: Learning C++ for Java developers by tubbzor on Wednesday December 04, 2013 @02:01PM (#6849235)
I used this book [0] for my C++ course at uni a few semesters ago and found it rather easy to follow and Weiss does a good job going through the differences between Java and C++.

The biggest difference for me from Java is the fact you have to manage your own memory as there is no garbage collector to clean up after you in C++. This book covers memory management, operator overloading, and functors quite well.

[0] http://www.amazon.com/Java-Programmers-Mark-A-Weiss/dp/01391...

Re:Ask HN: Learning C++ for Java developers by lingua_franca on Wednesday December 04, 2013 @12:17PM (#6848371)
check out some good C++ open source projects, like Chrome from Google and Folly from Facebook.