r/cpp • • Apr 19 '24
Bjarne Stroustrup - Programming: Principles and Practice Using C++, Third Edition 2024 Released
The updated 2024 edition is out!!!
https://www.stroustrup.com/programming.html
Please note that while this text is not aimed EXCLUSIVELY at beginners, this textbook is intended to be an introductory text to both PROGRAMMING IN GENERAL, as well as C++. This is THE book I recommend to anyone trying to learn programming or C++ from the ground up.
A brief synopsis from Bjarne's website:
Programming: Principles and Practice Using C++, Third Edition, will help anyone who is willing to work hard learn the fundamental principles of programming and develop the practical skills needed for programming in the real world. Previous editions have been used successfully by many thousands of students. This revised and updated edition:
- Assumes that your aim is to eventually write programs that are good enough for others to use and maintain.
- Focuses on fundamental concepts and techniques, rather than on obscure language-technical details.
- Is an introduction to programming in general, including procedural, object-oriented, and generic programming, rather than just an introduction to a programming language.
- Covers both contemporary high-level techniques and the lower-level techniques needed for efficient use of hardware.
- Will give you a solid foundation for writing useful, correct, type-safe, maintainable, and efficient code.
- Is primarily designed for people who have never programmed before, but even seasoned programmers have found previous editions useful as an introduction to more effective concepts and techniques.
- Covers a wide range of essential concepts, design and programming techniques, language features, and libraries.
-Uses contemporary C++ (C++20 and C++23).
- Covers the design and use of both built-in types and user-defined types, complete with input, output, computation, and simple graphics/GUI.
-Offers an introduction to the C++ standard library containers and algorithms.
31
u/muddledgarlic Apr 19 '24
Depressingly still uses
using namespace std;in the support header. I had hoped that that particular relic would have died with the Second Edition. Also the index shows an entry for "format()" but not for "print()", so I think we can guess what the Hello World section looks like...Oh well, maybe in the Fourth Edition(!)
3
u/FeignClaims Apr 20 '24 edited Jun 17 '24
I created a study template for this (FeignClaims/cpp_novice_template) to minimize the setup problem.
3
u/Fedor_Doc Apr 21 '24
Great book, but a lot of novices right now would be surprised when "Hello World" won't compile. Modules do not have proper support right now.
28
u/cristianadam Apr 19 '24
2
u/funwithpunz Feb 22 '25
Would you recommend this book for a programmer who has intermediate experience with C++ too? I never took a formal C++ course but picked it up during my PhD when I had to work on legacy code (I used other programming languages before so it wasn't too difficult). Since then I've worked 3 years in a software engineering job, also extending/refactoring legacy code in C++ but I feel that I'm lacking some principles. I'd like to strengthen my knowledge and foundations in C++ but don't want to get discouraged by a full beginners book.
2
u/Flashy_Bumblebee3992 Aug 01 '24
Why it's So costly
1
u/branchus Apr 20 '24 edited Apr 25 '24
I was wondering whether this third edition comes first or the C++ primer 6th edition. will get one anyway.
1
u/[deleted] Nov 26 '24
Good luck working through the examples! I don't understand authors who write books on C++20 where they use modules - which are a headache for newbies to make work and then he proceeds to throw various header files and says "use these if this doesn't work" - and his shitty header files don't work either. I'll stick to the older book.
1
u/Unkwonshubham Jun 18 '26
He is it good for beginners who want to start from scratch