Jump to ratings and reviews
Rate this book

Programming in D: Tutorial and Reference

Rate this book
The main aim of this book is to teach D to readers who are new to computer programming. Although having experience in other programming languages is certainly helpful, this book starts from the basics.

D is a multi-paradigm system programming language that combines a wide range of powerful programming concepts from the lowest to the highest levels. It has C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity in mind.

Each chapter is based on the contents of the previous ones, introducing as few new concepts as possible. It is recommended that the book is read in linear fashion, without skipping chapters if possible.

Although this book was written with beginners in mind, it covers almost all features of D. More experienced programmers can use the book as a D language reference by starting from the index section.

From the foreword:

I've long suspected D is a good first programming language to learn. It exposes its user to a variety of concepts – systems, functional, object oriented, generic, generative – candidly and without pretense. And so does Ali's book, which seems to me an excellent realization of that opportunity. – Andrei Alexandrescu

Blurbs from the back cover:

“D is pristine, clean, immensely powerful, and arguably the actual state-of-the-art programming language. Ali's book is a gem. Clear, concise, and complete.” – Olivier Henley

“I have been using Ali’s online D book to teach D at the university level. It is up-to-date, complete, and most importantly, extremely readable. Having a print version is even better! This is now the 'go-to’ book for learning D programming.” – Chuck Allison, Professor and Chair, Computer Science Department, Utah Valley University

“Ali's explanations are succinct and on target. I like that he provides rationale for why D was designed in a particular way and how I can use it most effectively. This is the best computer language book I've read.” – Robbin Carlson, Luthier and Enterprise Architect

“I taught a CS2 Data Structures class in D with more success and student appreciation than when using either C++ or Java as it's an ideal language to express the relevant concepts at all scales, from detailed to big picture, without needless complexity.

Ali Çehreli's tutorial played a central role supporting students especially during the first half of the course — without it the course simply would not have worked, so "many thanks Ali" — and an important part of that is its linearity — it can be read with only backward dependencies. This meant that with hard work even students of little experience and only moderate current abilities could get up to speed, and we saw just that. It is hard to overstate this factor. I unreservedly recommend this book to all.” – Dr. Carl Sturtivant, University of Minnesota Department of Computer Science & Engineering

“This book is one of the best guides through the language that I've seen.” – Andrew Wray, D Enthusiast

“I encourage anyone considering D to read this book. Not exactly 'D for Dummies' but it's easy to follow even if you don't have much experience with compiled languages.” – bachmeier, Reddit user

“Having worked through the book, I have to say this is one of the easiest to follow and distraction free read there is and the fact that it made learning a new language a total breeze really impressed me.” – Imran Khan, Student

775 pages, Kindle Edition

First published December 14, 2014

7 people are currently reading
20 people want to read

About the author

Ali Çehreli

2 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
11 (61%)
4 stars
5 (27%)
3 stars
1 (5%)
2 stars
1 (5%)
1 star
0 (0%)
Displaying 1 - 6 of 6 reviews
Profile Image for Красимир Беров.
3 reviews
Currently reading
January 28, 2022
I wanted to learn the D programming language. I started reading the book and trying the examples by writing short programs. The language is a compiled language and binary compatible with C. It is what C++ had to be. A fact is that the Facebook C++ preprocessor is written in D by the author of the language - Walter G. Bright.
For me it feels a lot like Perl. It has all the basic data types like a scripting language, but t is strongly typed.
422 reviews84 followers
January 19, 2016
One of the best programming tutorials I've read. It explains things really clearly and simply, without fanfare. It manages to be thorough and concise at the same time.

It starts out as a basic programming textbook for beginners, but as the book advances, it slowly becomes more advanced. Everything is sectioned off nicely, which allows it to double as a reference book for the D programming language.
Author 1 book1 follower
August 25, 2016
This is a great book. Good for both linear progress or reference. Clear explanations and good examples.

The D language itself is a beauty. Very practical and innovative. There are features in D that I haven't seen in other languages. The tooling and package ecosystem seems to be improving, but I'm still struggling with IDE integration.

Every programmer should leaf through this book , and take a look at this language.
Profile Image for 澪 岩倉.
2 reviews
August 28, 2015
This book is indispensable. I always have it open in a tab for reference while I program in D, and am proud to now own a physical copy!
Profile Image for Rafał Rzepecki.
34 reviews8 followers
November 19, 2015
A good programming language manual makes you program better in all languages, not just the one it's about. This is one of these manuals.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.