Skip to content

Learn Ḍād

This tutorial is for people starting to program from scratch, and for programmers who know another language and want to see Ḍād. In the first lesson you write one line that prints a greeting. In the last one you put a complete to-do app online, with its interface and its data. The code is in Arabic all the way.

The tutorial is also in Arabic: switch with the language button at the top of the page.

The lessons

  1. Getting started: install Ḍād, then write and run your first program.
  2. Values and names: numbers and text, ثابت and متغير.
  3. Decisions and loops: إذا, لكل and طالما.
  4. Functions: give a piece of work a name and use it again.
  5. Lists and maps: collections of values, filtered and transformed.
  6. Types and enums: describe the things in your world.
  7. When things go wrong: missing values, errors, and Ḍād's messages.
  8. Your first page: an interface with buttons and fields.
  9. Saving data: tables, server functions, and a to-do app.
  10. Going online: a program in several files, a static site, and a server for everyone.

How to read it

Each lesson has short examples. Copy each one into a file and run it, then change something and run it again: that is how programmers learn. Many examples are followed by what the program prints, so you can compare:

اطبع("السلام عليكم")
السلام عليكم

Each lesson ends with an exercise or two. Try them before you open the solution.

The names in the examples are Arabic words. Each lesson explains the ones it introduces, and the specification lists every keyword with its English equivalent.

Don't want to install anything yet? Try the examples in the playground, right in your browser, and install Ḍād when you reach lesson 8.