7 books that taught me how to code 
Tags: books, programming, cpp, gamedev
Published: 2017-05-25 19:36:03

---
title: 7 books that taught me how to code 
published: true
description: List of seven (plus) books that gave me solid knowledge about software development. From Learning C++ to Game engines and soft skills.
tags: books, programming, cpp, gamedev
---
[![books](https://2.bp.blogspot.com/-4GqXa4y3mFQ/V30Je84kKXI/AAAAAAAACsU/c7gW3ISUcvEzroRqnN6IjE46LDqggg7qACLcB/s1600/books3.png)](http://www.bfilipek.com/2016/07/7-books.html)

As you might read in my recent post - [coding without Google](https://dev.to/fenbf/coding-without-google) - I've started learning to program mostly from books. In the beginning, I read them from cover to cover (assuming I could understand them!) and recreated examples. It was an excellent time! In the post, I'd like to share my list of important books that taught me the base of my knowledge. Maybe you've shared similar titles along with your learning path?


This post was originally posted at my blog: [Bartek's coding blog: 7 books that taught me how to code](http://www.bfilipek.com/2016/07/7-books.html)

##1. C++ in 24h

[
Sams **Teach Yourself C++ in 24 Hours** (5th Edition) 5th Edition
](http://amzn.to/241LLsC)

I've seen that book many times on a shelf of my local bookstore. One day, after a discussion with my friends, we've bought the book. One book for three young kids. I didn't know when I got my turn, but in the end, the book was mine and my friends sold theirs 'shares' to me.

<a href="http://www.amazon.com/Sams-Teach-Yourself-Hours-5th/dp/0672333317/ref=as_li_ss_il?ie=UTF8&linkCode=li3&tag=bfilipek-20&linkId=ed614f7d0b4511f1127a588ff5607fec" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=0672333317&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="//ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=0672333317" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

It was fascinating! I could type some basic commands (in C++ of course!), create function and classes, and output messages to the console. Similar things probably could be written about any first programming book. Still, C++ in 24h was written in such way that a newbie wasn't thrown away, could understand most of the things, and in the end progress with the learning.

Each lesson was done very well, and step-by-step one could get most of the basic concepts of C++. In chapter 19 (in the 19th hour to be correct) there was a topic of linked lists. The described problem was not only a C++ thing, but it was also an area of data structures and algorithms. The chapter was hard to get through. In the end, I've managed to understand lists, and I was proud of myself!

I've seen that the book is a bit outdated at the moment. The 5th edition is from 2011 and doesn't cover C++11/14. Maybe a new version is being written along the way. If that appears, I would highly recommend it to any C++ beginner.

And you know what?

As it turns out of those three kids, that bought the book, two of them become programmers :) 

##2. Algorithms in C++

[**Algorithms in C++**, Parts 1-4, by Robert Sedgewick](https://www.amazon.com/Algorithms-Parts-1-4-Fundamentals-Structure/dp/0201350882/ref=as_li_ss_tl?ie=UTF8&linkCode=ll1&tag=bfilipek-20&linkId=dc9d79b0739ff046c18b1380c9a014eb)

This time, I bought that book on my own! Typical books cost between 30..40 polish zloty. But Algorithms was priced double - something between 80...90zÅ‚. It was a lot of money! I spent a lot of time thinking if that book is really for me, maybe too advanced... in the end, I bought it. And I am glad I did that!

<a href="https://www.amazon.com/Algorithms-Parts-1-4-Fundamentals-Structure/dp/0201350882/ref=as_li_ss_il?ie=UTF8&linkCode=li3&tag=bfilipek-20&linkId=e21569ac79ed302fa416ce1ff6e9ddb7" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=0201350882&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="//ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=0201350882" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

To be honest, I was frightened that I couldn't understand the first introductory chapter. As an example, they used 'Connectivity' and Union-Find algorithm. But since the second chapter things get much better. Slowly I got the idea of how the core algorithms work.

I like that the code was not in pseudo-code as in Cormen, but in C++. You could copy and paste it and see how it executes. It was vital for learning.

Chapter by chapter I got a basic understanding of algorithms and data structures. I often return to that book. I am also thinking about buying the newest edition... but unfortunately, it was rewritten into Java.

##3. OpenGL Superbible(s)

![](http://www.openglsuperbible.com/wp-content/uploads/2013/08/first_edition_cover.jpg)

Cover From [openglsuperbible.com/previous-editions/](http://www.openglsuperbible.com/previous-editions/)

You can read the review of the latest (7th) edition of the book [**on my blog here**](http://www.bfilipek.com/2015/08/opengl-superbible-7th.html).

After creating some basic text/console programs, I moved to graphics programming. This choice was heavily inspired by Borland BGI Graphics and Allegro Library. I knew that OpenGL was something big at that time (and still is!) so I thought it would be a good way to improve my graphics knowledge.

Probably, I don't have to mention that the book is excellent. Even the first version was! As with most books at that time there was a CD attached so you could see all the examples running! I wonder if I still have that CD around. Over the years, with the new editions, the CD was removed from the book, the examples were moved to site download option, and the quality of the book content got better and better.

I followed Superbible series. Today I got three books: 1st, 4th, and the 7th editions. Each version quickly caught the current version of OpenGL. You could see how OpenGL advances: from fixed pipeline to simple vertex/fragment shaders and now to fully 'GPU side' programming style. Maybe I wouldn't lie if I say that the book is the standard book for learning OpenGL. There is OpenGL Programming Guide, but most of the people like Suberbible as I can imagine.

##4. Game Programming Gems series

[Game Programming Gems on Amazon](https://www.amazon.com/Game-Programming-Gems-CD/dp/1584500492/ref=as_li_ss_tl?ie=UTF8&qid=1467749265&sr=8-1&keywords=game+programming+gems&linkCode=ll1&tag=bfilipek-20&linkId=d822ba35f39b627a095789459359dad0)

Site of the editor - [Mark DeLoura - Gems series](http://www.satori.org/game-programming-gems/)

<a href="https://www.amazon.com/Game-Programming-Gems-CD/dp/1584500492/ref=as_li_ss_il?ie=UTF8&qid=1467749265&sr=8-1&keywords=game+programming+gems&linkCode=li3&tag=bfilipek-20&linkId=99966728847594849c6a697115038274" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1584500492&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=1584500492" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

<a href="https://www.amazon.com/Game-Programming-Gems-CD-ROM-Development/dp/1584504501/ref=as_li_ss_il?ie=UTF8&dpID=51fOuGVli3L&dpSrc=sims&preST=_AC_UL320_SR256,320_&psc=1&refRID=RBZJF36MH56D1Q525Q72&linkCode=li3&tag=bfilipek-20&linkId=e292152d472300138cfe1987a1d7c0ec" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1584504501&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=1584504501" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

<a href="https://www.amazon.com/Game-Programming-Gems-Adam-Lake/dp/1584507020/ref=as_li_ss_il?ie=UTF8&qid=1467749265&sr=8-2&keywords=game+programming+gems&linkCode=li3&tag=bfilipek-20&linkId=460231b5dbb2930f5d5ad6453bfc5604" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1584507020&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=1584507020" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Game programming gems was another step for me. I knew something about the graphics, but now I got interested in game engines. I could write a graphics demo, but I was curious how to make a superb graphics engine. Gems were a series of lots of related articles. I liked that. You could pick one topic and just focus on it. They were grouped in logical order, subsystems.

In some of my examples, I've used "The Parallel Transport Frame" described in the second volume of the series. With that technique, I could extrude 2d shapes along splines. That was a cool way of doing any kind of ropes or worms. Maybe that would be a good topic for a separate post.

I own four volumes: 1st, 2nd, 3rd, and 6th.

##5. Tricks of the 3D Game Programming Gurus

[Tricks of the 3D Game Programming Gurus-Advanced 3D Graphics and Rasterization](https://www.amazon.com/Tricks-Programming-Gurus-Advanced-Graphics-Rasterization/dp/0672318350/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1467783246&sr=1-2&keywords=game%20programming%20gurus&linkCode=ll1&tag=bfilipek-20&linkId=b048a29fae27789c7eb2e6a634b000b6) by  [Andre LaMothe](https://en.wikipedia.org/wiki/Andr%C3%A9_LaMothe)

<a href="https://www.amazon.com/Tricks-Programming-Gurus-Advanced-Graphics-Rasterization/dp/0672318350/ref=as_li_ss_il?s=books&ie=UTF8&qid=1467783246&sr=1-2&keywords=game+programming+gurus&linkCode=li3&tag=bfilipek-20&linkId=eb57712358e71c6c0e4db1f2d48401a8" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=0672318350&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=0672318350" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

This book was highly addictive! I bought it with the vision of creating my software renderer and engine from scratch. Andrea LaMothe created a fantastic book where everything was described from little details. When I wrote code using OpenGL I was a bit like the level above. I could make my triangle have a texture, but I wasn't aware of the code behind texturing itself. Or even simpler things: how to render wireframe cube? Very easy in OpenGL, but do you know what's code behind such scene?

To be honest, I wasn't persistent enough to finish all the book. I followed like half of it. So my 'amazing' engine could render wireframe objects only. Then I stopped with the implementation and moved into OpenGL again (there was also many things to learn at that 'higher' level). Still, I tried to read the book and understand ideas behind texturing, sampling, clipping and other covered effects.

Some of the screenshots from the samples ([found here](http://www.prweb.com/releases/2003/10/prweb84570.htm))

![3d animation](http://ww1.prweb.com/prfiles/2003/10/13/84570/t3dIIfig15_14a.jpg)

![z buffer techniques](http://ww1.prweb.com/prfiles/2003/10/13/84570/t3diifig12_15.jpg)

What's great about this book is that it's still valid! Of course our rendering engines are very very powerful, still, with the book you can learn how to code triple buffering or mipmaps. That knowledge will be relevant for many years.

##6. Code Complete

[Code Complete: A Practical Handbook of Software Construction, Second Edition](https://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1467783814&sr=1-1&keywords=code%20complete&linkCode=ll1&tag=bfilipek-20&linkId=4a93dd7dedf93e313935d571c46a5863), by Steve McConnell

<a href="https://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=as_li_ss_il?s=books&ie=UTF8&qid=1467783814&sr=1-1&keywords=code+complete&linkCode=li3&tag=bfilipek-20&linkId=c777c8e8f5ef4566b46c2bd7e525f817" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=0735619670&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=0735619670" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

At the time I bought Code Complete I was in studies/collage (3rd or fourth year), so I needed something valuable that tells me what the software development is. The book is highly respected in the IT world, so I knew I need it.

It covers lots of different aspects of making great software. It describes a good coding style, how to debug apps and even how to apply agile and improve as a programmer. Lots of areas but very well structured.

Over the years I returned to the book many times. There's always something you can learn or recall.

##7. Passionate Programmer

[The Passionate Programmer: Creating a Remarkable Career in Software Development](https://www.amazon.com/Passionate-Programmer-Remarkable-Development-Pragmatic-ebook/dp/B00AYQNR5U/ref=as_li_ss_tl?_encoding=UTF8&qid=1467784049&sr=1-3&linkCode=ll1&tag=bfilipek-20&linkId=f24767839f728c861b03573207fa5481) by [Chad Fowler](http://chadfowler.com/)

<a href="https://www.amazon.com/Passionate-Programmer-Remarkable-Development-Pragmatic-ebook/dp/B00AYQNR5U/ref=as_li_ss_il?_encoding=UTF8&qid=1467784049&sr=1-3&linkCode=li3&tag=bfilipek-20&linkId=c68a03dc0e288cfed00ce46eb71903b9" target="_blank"><img border="0" src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B00AYQNR5U&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bfilipek-20" ></a><img src="https://ir-na.amazon-adsystem.com/e/ir?t=bfilipek-20&l=li3&o=1&a=B00AYQNR5U" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Programming was fun; I got my first professional experience. But I've noticed there's another side: how to be a great programmer! It's not only coding but also your attitude towards tasks and people. The book showed in an inspiring way what are the possibilities to improve yourself.

Read my review [here on my blog](http://www.bfilipek.com/2013/12/the-passionate-programmer.html).

##Other worth mentioning:

I've chosen only seven books, but I couldn't resist mentioning some of other titles.

###More OpenGL Programming

[More OpenGL Game Programming](https://www.amazon.com/More-OpenGL-Game-Programming-Astle/dp/1592008305/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1467784700&sr=1-1&keywords=more+opengl+programming&linkCode=ll1&tag=bfilipek-20&linkId=9eb76c62e055ce59c3138bd54ed2897c), David Astle editor.

The book was a step further after reading OpenGL Superbible and other beginner-level books. It gives a lot of interesting articles that are worth implementing and are a must for advanced graphics programming.

###ShaderX series

[ShaderX6: Advanced Rendering Techniques](https://www.amazon.com/ShaderX6-Rendering-Techniques-Wolfgang-Engel/dp/1584505443/ref=as_li_ss_tl?ie=UTF8&dpID=51rHYE6fuAL&dpSrc=sims&preST=_AC_UL320_SR256,320_&psc=1&refRID=8B33RD8EWP9310Q66XR1&linkCode=ll1&tag=bfilipek-20&linkId=84c08c7864fc41a64b67de1e9a761499), edited by     Wolfgang Engel

Thanks to probably the 6th volume of the series I was able to finish my master's thesis! There was a separate section on shadows, so I used it for my work then. 

The series is continued, but with a different name: GPU Pro series.

### Soft Skills

[Soft Skills: The software developer's life manual](https://www.amazon.com/Soft-Skills-software-developers-manual/dp/1617292397/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1467784878&sr=1-1&keywords=soft+skills&linkCode=ll1&tag=bfilipek-20&linkId=afcfec7e517d5dbd8093c34bb962031c) by John Sonmez ([simpleprogrammer.com](https://simpleprogrammer.com/))

John Sonmez is doing a great job in the field of inspiring people (especially programmers) how to be better. His Soft Skills book touches a lot of aspects of development career, motivation, learning, blogging. It's a good addon to Passionate Programmer book. I've [done a review for the book](http://www.bfilipek.com/2015/03/soft-skills-book-review.html) if you're interested.

## Summary
 
Sorry for another nostalgic post :) The list was compiled for a lot of weeks, so finally I was able to release it. Of course, I didn't include all the maths, physics, logic book that were required on studies. I listed only popular IT books.

What are your favourite books? What book was the first that taught you how to code?

## More from the Author

Bartek recently published a book - ["C++17 In Detail"](https://leanpub.com/cpp17indetail?utm_source=devto&utm_campaign=7books) available @Leanpub - rather than reading the papers and C++ specification drafts, you can use this book to learn the new Standard in an efficient and practical way.