Join Exercism’s D Track for access to 93 exercises with automatic analysis of your code and personal mentoring, all 100% free.
module hello_world;
import std.format;
string hello(const char[] s = "World") {
return format("Hello, %s!", s);
}
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point.
Given two buckets of different size, demonstrate how to measure an exact number of liters.
Bob is a lackadaisical teenager. In conversation, his responses are very limited.
Support for multiple programming paradigms, with strong metaprogramming capabilities.
D programs are compiled, leading to faster execution times than interpreted languages.
Functions tagged as @safe restrict them to a memory-safe subset of D.
Seamlessly embed C and C++ into your D projects, giving you access to millions of libraries.
Integrate D into C projects using the -betterC compilation flag.
Leave it enabled when it's needed, and disable it when it's not.
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 mentoringThe D track on Exercism has 93 exercises to help you write better code.
See all D exercises