0% found this document useful (0 votes)
62 views

The Fundamentals of C# Part 1: Programming Languages

The document discusses programming languages, compilers, and Visual Studio. It explains that programming languages can be low-level or high-level, with low-level languages being closer to machine language and harder for humans to read, while high-level languages are easier for humans but slower. It describes compilers as software that translates source code into another language like machine code. It also introduces Visual Studio as an integrated development environment for coding in C#.

Uploaded by

Saquib.Mahmood
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

The Fundamentals of C# Part 1: Programming Languages

The document discusses programming languages, compilers, and Visual Studio. It explains that programming languages can be low-level or high-level, with low-level languages being closer to machine language and harder for humans to read, while high-level languages are easier for humans but slower. It describes compilers as software that translates source code into another language like machine code. It also introduces Visual Studio as an integrated development environment for coding in C#.

Uploaded by

Saquib.Mahmood
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

The Fundamentals of C# Part 1

Programming Languages

Ahmad Mohey | Full Stack Developer

E-mail : [email protected]
Twitter : ahmadmohey85
Programming Languages

Low Level High Level

• Difficult to learn
 • Easier to learn


• Far from human language
 • Near to human language


• Fast in execution
 • Slower in execution


• Hard to modify
 • Easier to modify


• Hardware level
 • Not much facility at hw level


• Used to write hardware programs
 • Used to write programs


• E.g., machine language and assembly
 • E.g., C++, C#, Python and Java


Programming Languages

English: How are you?


Human languages
German: Wie geht’s dir?

High-level programming language Console.WriteLine("Hello, World!");

mov eax,0
Low-level programming language
add edi,1

Machine language 0100100001101111011101110010000001100


0010111001001100101001000000111100101
1011110111010100111111
Programming Languages

A 01000001            a 01100001


B 01000010            b 01100010

https://www.convertbinary.com/alphabet/

https://www.binarytranslator.com/
The Fundamentals of C# Part 1

Compilers

Ahmad Mohey | Full Stack Developer

E-mail : [email protected]
Twitter : ahmadmohey85
The Compiler

A compiler is computer software that transforms computer code written in one


programming language (the source language) into another computer language
(the target language). Compilers are a type of translator
The Compiler

Compiler Interpreter

• Compiled Languages: C++, C#,Swift, TypeScript • Interpreted Languages: JavaScript, Python, PHP

• Takes an entire program as input
 • Takes a single line of code as input



• Executes faster
 • Executes slower

• Requires more memory
 • Requires less memory

• Not cross-platform
 • Cross-platform


 
 


The Fundamentals of C# Part 1

Installing Visual Studio

Ahmad Mohey | Full Stack Developer

E-mail : [email protected]
Twitter : ahmadmohey85
Visual Studio

An Integrated Development Environment (IDE) is a software application that provides


comprehensive facilities to computer programmers for software development

The Fundamentals of C# Part 1

Types and Variables

Ahmad Mohey | Full Stack Developer

E-mail : [email protected]
Twitter : ahmadmohey85
Types and Variables

Variables

Name given to a storage area that our programs can manipulate.

int x = 1;
string name = “Jon”;
Types and Variables

int : used to store integer numbers (3 or 2000)


float : used to store floating point numbers (3.5 or 9.8)
double : used to store floating point numbers
decimal : used to store money values (2000$)
string : used to store text (“Ned” or “Vienna”)
bool : used to store true or false

You might also like