News for hackers. Stuff that matters.
Re:Ways to Get Better at C++ by adgasf on Friday June 23, 2017 @07:13AM (#14618321)
> What is C++ uniquely good for in 2017?

C++ is special because it combines two big ideas:

- Zero-cost abstractions (you only pay for what you use)

- High-level abstractions (OOP, lambdas, code-generation, etc. )

I would jump straight to C++ 17. It looks completely different to early 2000s C++ and makes functional programming easier (type inference, lambdas, constexpr, etc. ).

If you learn to use C++ well, you will be able to write faster code faster.

Re:Ways to Get Better at C++ by codebeaker on Friday June 23, 2017 @08:42AM (#14618711)
> I would jump straight to C++ 17.

I'd love to, but there are simply no (accessible?) resources. I'd love a "how to write C++17 with no baggage" book, but it simply doesn't exist. (please, correct me if I'm wrong?)

I really want to get to know C++, it looks like it's become a fantastic language, but in all seriousness, I could write fast, performant robust Go within a weekend, I'm proficient in half a dozen other languages, and C++ programmers still unironically suggest a stack of books the height of a small table to beginners.

Re:Ways to Get Better at C++ by DerDangDerDang on Friday June 23, 2017 @09:17AM (#14618917)
I don't own it, but this book sounds like it may be what you're after: http://www.bfilipek.com/2017/06/modern-c-programming-cookboo...
Re:Ways to Get Better at C++ by codebeaker on Friday June 23, 2017 @03:14PM (#14621938)
Thanks for the link it looks promising:

    The Book is intended for all C++
    developers, regardless of their experience. The
    beginner and intermediate developers will benefit
    the most from the book in their attempt to become
    prolific with C++. 
    
    Experienced C++
    developers, on the other hand, will find a good
    reference for many C++11, C++14, and C++17
    language and library features that may come in
    handy from time to time.
Re:Ways to Get Better at C++ by userbinator on Friday June 23, 2017 @07:44AM (#14618452)
Zero-cost abstractions (you only pay for what you use)

True in theory and essentially because C++ still remains mostly a superset of C, but unfortunately the majority of C++ programmers I've met tend to overabstract and not realise it, making this claim not really true in practice.

High-level abstractions (OOP, lambdas, code-generation, etc. )

On the other hand, this is definitely true in practice.

Re:Ways to Get Better at C++ by slededit on Friday June 23, 2017 @02:24PM (#14621429)
The way it works out in practice is people can develop at a high level, and then when its needed you can go back and refactor where necessary for perf. The average performance does become slower though.
Re:Ways to Get Better at C++ by adgasf on Friday June 23, 2017 @07:58AM (#14618504)
> "C++ still remains mostly a superset of C"

I think this notion is out-of-date. Have a look at this slide: https://youtu.be/_wzc7a3McOs?t=21m37s It shows how C++ has evolved away from just "C with Classes".

I agree that many C++ programmers over-abstract things.

Re:Ways to Get Better at C++ by userbinator on Friday June 23, 2017 @08:09AM (#14618547)
It shows how C++ has evolved away from just "C with Classes".

I meant that C code, with few modifications, will basically work fine when compiled with a C++ compiler.