Live data from Hacker News

Master C++ Programming with Open-Source Books

ossblog.org

21–30 of 106 posts

Re: Master C++ Programming with Open-Source Books

#21
post #7

Thank you so much, I have one question though, Is there any pdf version for "The Boost C++ Libraries"? I really need it.

I would consider using Chromium internal libraries as a boost equivalent.

Theres a lot of good stuff in there..

Just get: src/base, src/ipc, src/net (and something else you are interested in) and you are good to go

Re: Master C++ Programming with Open-Source Books

#22

Can you ever really master C++? I've been at it more than 20 years and I'm still delighted to learn new things about the language and the library.

And that's the real problem with C++. You can spend 20 years solving real problems with it and still feel like a noob when you take a look at "idiomatic" template code from the standard headers.

On the other hand, people like Scott Meyers have spent their lifetime and careers explaining its intricacies, without solving any real problems.

Re: Master C++ Programming with Open-Source Books

#23

Can you ever really master C++? I've been at it more than 20 years and I'm still delighted to learn new things about the language and the library.

What do you use it for?

It's such a complex language brimming with idiosyncrasies that I'd be inclined to really test anyone claiming to be a master. The standard is one thing, then there's the compiler you're using...

Re: Master C++ Programming with Open-Source Books

#24

I'd sooner master rust, which seems to have a lot of buzz around it. the world has needed a low-level prog-lang that's less painful than C/C++ for a while, rust may have enough merit to displace a lot of C/C++ dev - I just hope it gets well standardised, in such a way that C++ isn't.

Rust is better than C++, but most people work in legacy applications. And C++ ecosystem has a lot more stable libraries, frameworks and very active community.

Re: Master C++ Programming with Open-Source Books

#25
I have some C programming experience and I wanted to learn C++ so I bought and started reading Stoustrop's book, thinking it's the K&R of C++.

It's the worst programming book I have ever read! It's introduction made me hate C++ and if I didn't had to work with other C++ libraries, I would have avoided C++. The text is full of bloat, for the lack of better word. It's the opposite of crisp writing.

I read some good language books like K&R's C, Joe Armstrong's Erlang book. I loved them and I thought this would be in same league. It's not.

I would like to learn C++ systematically, like not cut-and-paste stuff. "How to think like a computer scientist: C++" seems like a good book. I read the book "How to think like a computer scientist", which is an introduction to programming in Python. I think that would be a good start. Is it a good book for experienced programmers wanting to learn C++?

To people wanting to learn C++, please avoid Stoustrop's book like Plague.

EDIT: I read "The C++ programming language 4th edition" which explains C++11 https://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Langua...

Re: Master C++ Programming with Open-Source Books

#26

I have some C programming experience and I wanted to learn C++ so I bought and started reading Stoustrop's book, thinking it's the K&R of C++. It's the worst programming book I have ever read! It's introduction made me hate C++ and if I didn't had to work with other C++ libraries, I would have avoided C++. The text is full of bloat, for the lack of better word. It's the opposite of crisp writing. I read some good lan…

Would you please define which of his books you read? Just saying "Stoustrop's book" doesn't really help anybody. He wrote a few books, as you can see here: http://www.stroustrup.com/books.html

Re: Master C++ Programming with Open-Source Books

#27
post #26

I have some C programming experience and I wanted to learn C++ so I bought and started reading Stoustrop's book, thinking it's the K&R of C++. It's the worst programming book I have ever read! It's introduction made me hate C++ and if I didn't had to work with other C++ libraries, I would have avoided C++. The text is full of bloat, for the lack of better word. It's the opposite of crisp writing. I read some good lan…

Would you please define which of his books you read? Just saying "Stoustrop's book" doesn't really help anybody. He wrote a few books, as you can see here: http://www.stroustrup.com/books.html

Edited original comment. Sorry for the confusion.

Re: Master C++ Programming with Open-Source Books

#28
Some of of these books are not "open source" [0]. For example, "The Boost C++ Libraries" book clearly gives a non-commercial license [1] as does "How to Think Like a Computer Scientist" [2]. I haven't checked them all but a lot of look to be under a free license [3] [4], so maybe the majority of them are actually under an open source license.

    [0] https://en.wikipedia.org/wiki/Open-source_license
    [1] https://theboostcpplibraries.com/
    [2] http://greenteapress.com/thinkcpp/index.html
    [3] http://opendatastructures.org/ods-cpp/About_this_document.html
    [4] http://www.network-theory.co.uk/about.html

Re: Master C++ Programming with Open-Source Books

#29
post #14

Earlier quoted context omitted.

It has a few standards, which is the problem. Furthermore, I'm not just talking about the existence of a standard, but the complexity of the standard (C++is v. big), and also how much that standard restricts, and hence results in conformal, predictable code.

> It has a few standards, which is the problem. You mean C++03, C++11, C++14, C++17? Or something else? If you mean those, I fail to see the problem. The language isn't dead, so it's not static, and it evolves over time. Publishing a new standard every few years is the only way to keep all compilers aligned, rather than each going off in its own "with extra features!" direction.

Yes, those. The differences between standards aren't trivial, and often the older standards have to be maintained.

The standard already has lots of features, including a turing-complete sub-language.

It is difficult to write code to standard (nothing that works, but is undefined either), that is safe, no segfaults, memory issue, secure, and all within a practical budget/timeline.

Just being able to reason about the code more easily helps, or make strong assumptions (e.g. about safety).

Re: Master C++ Programming with Open-Source Books

#30

I have some C programming experience and I wanted to learn C++ so I bought and started reading Stoustrop's book, thinking it's the K&R of C++. It's the worst programming book I have ever read! It's introduction made me hate C++ and if I didn't had to work with other C++ libraries, I would have avoided C++. The text is full of bloat, for the lack of better word. It's the opposite of crisp writing. I read some good lan…

As someone who knows a number of programming languages more or less fluently, I found that book to be invaluable when I started working in C++ professionally. It's not a book to teach you programming or any of the General concepts of OOP, FP, or the like. It is, however, a great resource for learning C++ assuming you know the high level concepts already.
Post reply on HN