This is some notes about Dart programming language. Credit to YouTube video Dart Programming Tutorial - Full Course, GeeksforGeeks Dart Tutorial, Dart Programming Tutorial and Dart's documentation.
- It is an open-source programming language (FYR: c#, Matlab are closed source).
- It is developed by Google.
- By using Flutter Framework, it can be used on building apps for mobile (iOS and Android), web, desktop (Windows, macOS, and Linux), and embedded devices.
- A great example of Dart application is Gmail.
- It is similar to Java, C, and JavaScript.
- It is a compilation-needed, type-safe (FYR: main static type but allow dynamic type), Object-oriented programming (OOP) langugage.
- It includes both a Dart VM with just-in-time (JIT) compilation and an ahead-of-time (AOT) compiler for producing machine code
If you have any problem with installation, you can try the official online compiler first.
To install the Dart SDK:
choco install dart-sdk
To upgrade the Dart SDK:
choco upgrade dart-sdk
Install Homebrew (If you have already installed it, continue to the next step):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
To install the Dart SDK:
brew tap dart-lang/dart
brew install dart
To upgrade the Dart SDK: brew upgrade dart
-
Stringly typed language: The type of a variable is known at compile time. For example: C++, Java, Swift
-
Dynamic typed language: The type of a variable is known at run time. For example: Python, Ruby, JavaScript