Live data from Hacker News

On Writing a C++ Book

lospi.net

31–40 of 44 posts

Re: On Writing a C++ Book

#31

> C++ has a daunting reputation because its fundamental elements nest so tightly together Do they? I tend to find that C++’s features are often quite disjoint, which means that you can pick-and-choose which bits you want to use but the language isn’t quite designed like a coherent whole as some other languages are.

Unfortunately you can't feature-flag them off, and especially you can't automatically ban people from using all sorts of old unsafe constructs in your language, so for practical multi-contributor projects you have to be aware of all the features.

Re: On Writing a C++ Book

#32
post #19

What would be the modern (14/17/20) C++ as the first language book nowadays?

You mean, what's a good book for somebody who wants to learn programming with C++ as a language of choice?

I'd vote for "Beginning Game Programming in C++" as a self-study book, and "Programming: Principles and Practices Using C++" if you have somebody more experienced that can help you set your environment.

Re: On Writing a C++ Book

#34

Did I miss or there isn't a section that covers modern build systems? I would have loved to get an intro to that.

I was also thinking the same thing after glancing at the table of contents. I remember working with C++ while studying at grad school with instructions by two professors who quite loved the language. Even though I enjoyed the language and its STL very much, the mess of its build system and linking to other libraries is what comes to my mind whenever I think about C++. This is exactly why I never touched it again.

Cargo does a fantastic job for Rust in this regard. Rust won me over.

Re: On Writing a C++ Book

#36
post #2

is this out? No Starch still shows "early access" and "be ready in September", amazon showed it will be released on September 10, 2019. The TOC looks good to me. I hope it has a sample chapter.

>I’m also beyond elated that it’s getting published I took that to mean that it is now in the process of being published.

Yes! Going through production/printing rites now. No firm date yet, I'm guessing low numbers of weeks.

Re: On Writing a C++ Book

#37
post #6

Earlier quoted context omitted.

Any language that grows big has that problem. My favourite example is Python, I started using it with version 1.6 and even though I only use it for small scripting tasks, always followed each release since then. It might appeal to beginners, but underneath lies a language as powerful as C++, where even the most savy will fail to remember what changed between minor releases.

As much as a like python, it is not as powerful as c++. Hence the reason you have to use cython/cpython to improve performance.

I was speaking about grammar and language semantics, not implementation.

Re: On Writing a C++ Book

#39
post #19

What would be the modern (14/17/20) C++ as the first language book nowadays?

You mean, what's a good book for somebody who wants to learn programming with C++ as a language of choice? I'd vote for "Beginning Game Programming in C++" as a self-study book, and "Programming: Principles and Practices Using C++" if you have somebody more experienced that can help you set your environment.

Who is the author of your recommended "Beginning Game Programming in C++" book...? Sounds interesting.
Post reply on HN