Welcome

Introduction to the Dart Programming Language Through Examples

created by Anthropic’s AI Claude, reviewed by Serge Tahé - September 2026


This document is a translation of the original French version, generated using an automated tool. Some expressions or technical terms may not fully reflect the original meaning.

This course is aimed at students with no knowledge of the Dart language. It teaches the language through a series of small standalone scripts, commented line by line, rather than through a theoretical presentation of its grammar.

After setting up the working environment (Visual Studio Code project, static analysis, linter, Dart extension), it presents the fundamentals: the basics of the language, arrays, objects, strings, regular expressions, functions, errors and exceptions, modules, event-driven programming and asynchronous functions, classes, and the new features of Dart 3 (records, patterns, sealed classes).

It then studies Dart’s HTTP functions. A NestJS income-tax calculation server is used as the target, and four clients are written for this same server: a command-line script, a version with DAO and business layers, a compiled project, then a complete web application with an HTML interface.

The last part deals with database access: the native MySQL driver, then a lightweight hand-written ORM.

The progression follows that of the course Introduction to the TypeScript language and the NestJS web framework, with one Dart script for each TypeScript script, so you can compare how the two languages meet the same need. Dart is the language of the Flutter framework, presented in the course Step-by-Step Introduction to the Flutter Mobile Framework.

All courses by Serge Tahé