Dart Programming - Beginners Full Course | كورس كامل تعلم وشرح أساسيات البرمجة بلغة الدارت بالعربى


Summary

This youtube video provides a comprehensive explanation of programming languages as tools for writing code, focusing on Dart as a modern language by Google commonly used in Flutter for cross-platform development. The video covers fundamental programming concepts such as constants, variables, loops, functions, and error handling. Additionally, it delves into syntax elements, data types, type safety, string manipulation, logical operators, loops, functions, and operations on lists and maps in Dart programming. The demonstration showcases practical examples with explanations, emphasizing the importance of clear coding practices for better readability and understanding.


Introduction to Programming Languages

Explanation of programming languages as tools for writing code, each with unique properties and syntax. Overview of basic principles.

Dart Language

Description of Dart as a modern and easy-to-develop language by Google, commonly used in Flutter for cross-platform development.

Learning Object-Oriented Programming

Discussion on concepts like constants, variables, loops, functions, and examples related to real-world scenarios.

Importance of Comments in Code

Importance of adding comments to complex code for better understanding and ease of future code reading.

Syntax in Dart

Explanation of syntax elements like print, brackets, strings, statements, differences between statements and expressions, and the role of the compiler.

Data Types

Explanation of mutable data types, constants, variables, and the significance of assigning data types for stability and error prevention.

Time and Constants

Discussion on compile time, constants with fixed values, and how constants are integral from program start.

Variables and Assignments

Explanation of variables, assignments, types of assignments, and syntax for declaring and assigning values in Dart.

Integer and Double Data Types

Differentiating between integer and double data types, their use for whole numbers and fractions, and type inference in Dart.

Type Safety in Dart

Exploration of type safety using final and var, with implications on variable declaration and value assignment.

String Data Type

Explanation of the string data type in Dart, including concatenation, methods for string manipulation, and usage in code.

Understanding Variables and Conditions

Explanation of setting variables to true or false based on conditions in code. Demonstrates creating constants, functions, and calculating final grades based on percentages.

Working with Conditions in Programming

Explanation of using if statements and conditions to execute specific code based on variable values. Covers error handling and logical operators like AND and OR.

Using Loops in Programming

Demonstration of loops such as for, while, and do-while loops. Explains how loops repeat code execution based on conditions and control flow statements.

Function Arrow

Explanation of arrow function in JavaScript, creating a variable, initializing it to zero, and using it in a loop to apply square root operation to each number.

For Loop

Utilizing a for loop to iterate through numbers and apply square root operation, printing the result for each number.

Function Declaration

Creating a function with a condition that checks if a number is a prime, starting from 1 and finding the first prime number after the given value.

Functions and Return Type

Explanation of defining return type of functions, using return type void for functions that do not return any value.

Function Parameters

Usage of function parameters in Dart language, ensuring parameter naming conventions and data type declarations.

Naming Parameters

Discussing the importance of naming function parameters clearly for better code readability and understanding.

Prime Number Function

Creating a function to check and return prime numbers, with conditions based on the number's divisibility.

Null and Non-Null

Differentiating between null and non-null data types in Dart programming, using the '?' symbol for nullable variables.

Adding Null Check in Dart

Explaining how to add a null check operator or an exclamation mark at the end of a variable name in Dart, with a parameter named 'item' of type 'String'. If the value is null, it returns null after the function block is executed, showing how to handle the case if 'item' is null and ensuring the function does not return a null value.

Type Casting in Dart

Discussing the importance of type casting and handling the case where 'item' may not be null, demonstrating the use of the 'as' operator to cast from 'bool?' to 'bool' and ensuring safety by providing a value in case of null.

Lists and Data Types in Dart

Explaining lists in Dart, how elements are of the same data type with an index order starting from zero, adding elements to a list, creating an empty list, and accessing elements using the square brackets. Demonstrating the use of lists with different data types and methods like 'add' and 'remove'.

Maps in Dart

Introduction to maps in Dart, creating an empty map, using generic types for keys and values, adding key-value pairs, and accessing keys and values within a map. Also, explaining how to check for the presence of keys and values in a map.

Manipulating Lists and Sets in Dart

Demonstrating operations on lists and sets in Dart, such as reversing names in a list, removing even numbers from a list, and checking if one set is a subset of another set. Explaining functions like 'reversed', 'removeWhere', 'difference', and 'containsKey'.

Logo

Get your own AI Agent Today

Thousands of businesses worldwide are using Chaindesk Generative AI platform.
Don't get left behind - start building your own custom AI chatbot now!