{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"nbsphinx": "hidden"
},
"source": [
"[prev: Préparation de l'environnement de travail](setup-working-environment.ipynb) | [home](../index.ipynb) | [next: Python ?](intro-python.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Qu'est-ce que la programmation ?\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Elements de réflexion\n",
"\n",
"- Ordinateur\n",
" * processeur, mémoire vive / de masse, périphériques\n",
"- Programme\n",
" * Algorithme, données, langage machine\n",
"- Grammaire\n",
"- Notions courantes\n",
" * instruction\n",
" * variable\n",
" * constante\n",
" * littérale\n",
" * type\n",
" * pointeur\n",
" * **structure de données**\n",
" * fonction\n",
" * module/lib\n",
" * **Structure de contrôle**\n",
"- Paradigmes de programmation\n",
" * impératif\n",
" * **objet**\n",
" * fonctionnel\n",
"- Exécution\n",
" * langage machine\n",
" * compilateur / interpréteur\n",
"- Fonctionnalités avancées\n",
" * ramasse-miettes\n",
" * exceptions\n",
" * réflexivité\n",
" * ..."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Structure de données\n",
"\n",
"- Enregistrement\n",
" * accès par noms fixes\n",
" * le `struct` du C\n",
"- Tableau\n",
" * accès par indices\n",
" * dynamique ou statique\n",
"- Tableau associatif\n",
" * accès par clefs\n",
" * pas d'indice, clef -> valeur"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Objet\n",
"\n",
"- = *Enregistrement* + méthodes associées\n",
"- Classe, instance\n",
"- Héritage"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Structure de contrôle"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### IF\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### IF-ELSE\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### IF-ELIF\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### WHILE\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### FOR\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"sources :\n",
"\n",
"- https://commons.wikimedia.org/wiki/File:Cf-if-fr.svg\n",
"- https://commons.wikimedia.org/wiki/File:Cf-else-fr.svg\n",
"- https://commons.wikimedia.org/wiki/File:Cf-elif-fr.svg\n",
"- https://commons.wikimedia.org/wiki/File:Cf-while-fr.svg\n",
"- https://commons.wikimedia.org/wiki/File:Cf-for-fr.svg"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 4
}