Want to learn and master D?

Join Exercism’s D Track for access to 34 exercises with automatic analysis of your code and personal mentoring, all 100% free.

Explore exercises

About D

module helloworld;

import std.format;

string hello(const char[] s = "World") {
    return format("Hello, %s!", s);
}

34 coding exercises for D on Exercism. From Nth Prime to Run Length Encoding.


Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.

See all D exercises on Exercism

Key Features of D


D

Expressive

Support for multiple programming paradigms, with strong metaprogramming capabilities.

Fast

D programs are compiled, leading to faster execution times than interpreted languages.

Safe

Functions tagged as @safe restrict them to a memory-safe subset of D.

Language Interop

Seamlessly embed C and C++ into your D projects, giving you access to millions of libraries.

Better C

Integrate D into C projects using the -betterC compilation flag.

Optional GC

Leave it enabled when it's needed, and disable it when it's not.

Get mentored the D way

Every language has its own way of doing things. D is no different. Our mentors will help you learn to think like a D developer and how to write idiomatic code in D. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in D - they'll help you discover the things you don't know that you don't know.

Learn more about mentoring

Community-sourced D exercises

The D track on Exercism has 34 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.

See all D exercises
D

Get started with the D track

The best part, it’s 100% free for everyone.