The following is a list of recommended books for learning how to program:
First, check GitHub's extensive list of free programming books: https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
If you don't see the book you're looking for listed, search the following lists for other sources of books:
These books are essential books that people should have, or at least have read or know about:
- Compilers: Principles, Techniques and Tools (a.k.a The Dragon Book). This book is loaded with all the theory and concepts needed to design, implement and optimise a compiler. It's the go-to compiler book.
- Operating Systems: Design and Implementation (a.k.a the MINIX book). This is one of the books Linus Torvalds used to write the original Linux kernel. This also contains over 500 pages of the entire MINIX source code at the back as an appendix, and if you're lucky, a MINIX installation CD with instructions.
- The Art of Computer Programming by Donald Knuth (essentially the holy grail of Computer Science literature). Bill Gates said that if anyone can read every volume in TAOCP from cover to cover, then they should definitely send him their CV/Resume.
- The Mythical Man Month: Essays on Software Engineering. A compilation of essays on what experienced software engineers and programmers have learned from their successes and failures over many years.
- Design Patterns: Elements of Reusable Object-Oriented Software. Design patterns and principles designed to help object-oriented software.
- The Cathedral and the Bazaar. Eric S. Raymond's book on Closed-house development (cathedral) vs open-source, distributed development (bazaar), and how the latter is much more effective.
- The C Programming Language, mentioned below. Also known as K&R because it was written by the founders of C, Brian Kernighan and Dennis Ritchie.
- Structure and Interpretation of Computer Programs, listed below
- The UNIX Programming Environment, 2nd edition An excellent introductory *nix book. Written by Brian Kernighan (of K&R) and Rob Pike (Plan9, Golang), both of whom were part of the Unix team at Bell Labs.
- Advanced UNIX Programming, 2nd Edition Recommended as a follow on book from The UNIX Programming Environment. Contains information on over 300 syscalls.
- The Pragmatic Programmer Cuts through the increasing specialization and technicalities of modern software development to examine the core process—what do you do, as an individual and as a team, if you want to create software that’s easy to work with and good for your users.
- Introduction to Algorithms The book covers a broad range of algorithms in depth, yet makes their design and analysis accessible to all levels of readers.
- The Tao of Programming The themes of the book espouse many hacker ideals – managers should leave programmers to their work; code should be small, elegant, and maintainable; corporate wisdom is more often than not an oxymoron; and so on.
- Hacker's Delight It discusses a variety of programming algorithms for common tasks involving integer types, often with the aim of performing the minimum number of operations or replacing slow operations by faster ones.
- Code Complete A compendium of software construction techniques, from naming variables to deciding when to write a subroutine.
- Programming in Ada 2012 by John Barnes
- The C Programming Language by Brian Kernighan and Dennis Ritchie (PDF Download)
- O'Reilly - Practical C Programming (PDF Download)
- C Programming: A Modern Approach by K. N. King
- Beej's Guide to Network Programming by Brian "Beej Jorgensen" Hall (PDF Download)
For the inexperienced
- Programming: Principles and Practice Using C++, 2nd Ed. by Bjarne Stroustrup
With experience in programming
- C++ for Everyone, 2nd ed. (PDF download)
- Accelerated C++ 2000 (PDF download)
- C++ Primer, 5th Edition. (PDF)
OG Best Practices
- Effective C++, 3rd Edition by Scott Meyers
- Modern Effective C++, 1st Edition by Scott Meyers
- Effective STL, 1st Edition by Scott Meyers
- More Effective C++, 1st Edition by Scott Meyers
- Exceptional C++ by Herb Sutter
- More Exceptional C++, 1st Edition by Herb Sutter
- Exceptional Style Guide, 1st Edition by Herb Sutter
- C++ Coding Standards, 1st Edition by Scott Meyers and Andrei Alexandrescu
- C++ Templates: The Complete Guide, 1st Edition by David Vandevoorde and Nicolai M. Josuttis
- Modern C++ Design, 1st Edition by Andrei Alexandrescu
- C++ Template Metaprogramming by David Abrahams and Aleksey Gurtovoy
- C++ Concurrency In Action, 1st Edition by Anthony Williams
- Advanced C++ Metaprogramming by Davide Di Gennaro
- The C++ Programming Language by Bjarne Stroustrup
- C++ Standard Library Tutorial and Reference by Nicolai Josuttis
- The C++ IO Streams and Locales
C++11 / C++14 standards references
- Overview of the New C++ (C++11/C++14) by Scott Meyers (link)
- C++ Core Guidelines by Bjarne Stroustrup and Herb Stutter (Github readme.md file)
- C++ Best Practices, (GitBook/PDF download)
- Apress Accelerated C# 2010 (PDF download)
- Thinking Forth (PDF download)
- Java, A Beginner's Guide by Herbert Schildt
- Head First Java, 2nd Edition by Kathy Sierra & Bert Bates
- Effective Java by Joshua Bloch
- Thinking in Java by Bruce Eckel
- Structure and Interpretation of Computer Programs (Read it online)
- The Little Schemer
- The Seasoned Schemer
- The Reasoned Schemer
- The Realm of Racket (Website for the book)
- How to Design Programs, 2nd Edition (Read it online)
- Common Lisp: A Gentle Introduction to Symbolic Computation (PDF download)
- Practical Common Lisp (Read it online)
- On Lisp (PDF and Postscript download)
- Let Over Lambda (Website for the book) (The first six chapters)
- The Land of Lisp (Website for the book)
- Essential Pascal (PDF download)
- Tutorials Point Pascal (PDF download)
- Start Programming Using Object Pascal (PDF download)
- The Ruby Programming Language by David Flanagan and Yukihiro Matsumoto
- Ruby In A Nutshell by Yukihiro Matsumoto
- Programming Ruby 1.9 & 2.0 (4th edition) (a.k.a. The Pickaxe) by Dave Thomas, Chad Fowler and Andy Hunt
- Metaprogramming Ruby by Paolo Perrotta
- Eloquent Ruby by Russ Olsen
- The Well-Grounded Rubyist by David A. Black
- Invent Your Own Computer Games with Python (Read it online)
- Starting Out with Python, 2nd ed. (PDF download)
- Think Python: How to Think Like a Computer Scientist, Ver 2.0.12 (Read it online)
- Learn Python The Hard Way, 3rd Edition (Read it online)