News for hackers. Stuff that matters.
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.