We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

New from Raspberry Pi Press: Learn to Code with C

Many years ago, when I first joined Raspberry Pi, I was approached by the editor of The MagPi magazine (now Raspberry Pi Official Magazine) to see if I was interested in contributing to it. At the time, I was in the process of getting to grips with writing new GUI applications for the desktop using the GTK toolkit, and I suggested that a series of articles about how to do that might be of interest. But we then realised that this was to some extent putting the cart before the horse; in order to use GTK, you first need to know the basics of programming in a language which can use GTK.

We therefore decided that it would be a good idea for me to first write a series of articles on how to get started with the C programming language (as that is what I was using), and then to move onto the GTK series once that was done.

So that is what I did; The MagPi first published a series of articles on learning C, and then a year or so later, a series on how to use C to write GTK GUI applications. Both seemed to be generally quite well received, and they were both subsequently published in book form by Raspberry Pi Press.

Updated and refreshed

The original Learn to Code with C was basically just the magazine articles reprinted, and that was quite a long time ago now. This year, it has been refreshed and updated (and looks rather better for it!), and is now available to buy or download.

My intention when writing this book was to provide a rather easier way to learn C than I had when I first learnt it. Back in 1992, when I first joined Cambridge Consultants, my boss handed me a copy of Kernighan and Ritchie’s The C Programming Language on my first day and said, “there’s a compiler on that computer over there — off you go!”

Written for complete beginners

While Kernighan and Ritchie’s book is the definitive reference for C, written by the people who created the language in the first place, it is not a simple guide for absolute beginners, and I will freely admit that I struggled. I did get the hang of C eventually, but it took me a few months — I did a lot of reading, a lot of trial and error, and quite a bit of making stupid mistakes that were then corrected by more experienced engineers, and it was a rather slow and painful process.

While I am not promising that my book will completely avoid any of that, it is intended as a guide to learning to program in C from the very first principles, with no prior knowledge of anything other than the most basic programming concepts assumed. It’s about as simple as I could make it, and in many ways is the book I wish I had available to learn from all those years ago as a junior engineer; I hope it offers an approachable introduction to what is still one of the most useful programming languages there is.

Get your copy now!

You can grab the book online from our store for just £14.99 £7.99 (introductory price), on Amazon UK and Amazon US (preorder), or at the official Raspberry Pi Store in Cambridge.

No comments
Jump to the comment form

Leave a Comment