Skip to content

Anas-aljuhani #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions dartfunction.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
void main() {
printinfo();
printDartInfo();
info();
infoAboutCvcsAndDvcs();
printOOPInfo();
}

printinfo() {
print(
'GitHub is a code hosting platform for version control and collaboration.');
print(
'It allows developers to store, manage, and track changes to their code.');
print(
'GitHub also offers features like issue tracking, code review, and project management.');
print(
'It is widely used by individuals and organizations for open source and private projects.');
}

printDartInfo() {
print(
'Dart is a client-optimized language for developing fast apps on any platform.');
print(
'It\'s known for its strong type system, null safety, and hot reload feature.');
print('Flutter, a popular UI toolkit, is built with Dart.');
}

info() {
print('basic info about me\nname:anas aljuhani\nage:25');
}

infoAboutCvcsAndDvcs() {
print("Centralized Version Control (CVCS):");
print("- Single central repository for all code.");
print(
"- Disadvantages: single point of failure, limited offline work, slower for large projects.");

print("\nDistributed Version Control (DVCS):");
print("- Multiple copies of the repository on each developer's machine.");
print(
"- Decentralized workflow: changes committed locally, then pushed to remote.");
print(
"- Advantages: faster performance, better offline work, increased reliability, more flexible workflows.");
}

printOOPInfo() {
print(
"OOP is a programming paradigm based on objects, combining data (properties) and behavior (methods).");
print(
"Dart is an object-oriented language, supporting classes, objects, inheritance, polymorphism, and encapsulation.");
print(
"Classes are blueprints for creating objects, defining their properties and methods.");
print("Objects are instances of classes, representing real-world entities.");
print(
"Inheritance allows creating new classes based on existing ones, promoting code reuse.");
print(
"Polymorphism enables objects of different types to be treated as if they were of the same type.");
print(
"Encapsulation hides implementation details, protecting data integrity and improving code modularity.");
}