You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

2.0 KiB

Ce fichier contient diverses notes utiles à la préparation des futurs cours.

Sujets à évoquer

Software engineering is what happens to programming when you add time and other programmers. – Russ Cox

  • virtualenv, pip, et bibliothèques tierces

  • IDEs: don’t use them ... yet (or ever)

    • linters,
    • déboguage
    • demo: pyflakes - black

bits

  • constants are UPPER_CASE
  • argparse

classes

rest

  • attributes on functions (you never know)
  • __call__, functors
  • scopes, closures, global, nonlocal
  • stable sorts
  • dict: setdefault
  • listes: pop prend un argument
  • slices takes a step too [::-1] -> reverse
  • with: contextmanager, ContextDecorator
  • short circuit in if: if a is not None and a.b == 42
  • splat operator, *args, **kwags, keyword-only
  • regex in Python, and why they’re useful

big stuff

  • files: “wa”, accès séquentiel (chunk = file.read(chunk_size))

  • style: trailing white space, editor configuration,

  • liste par compréhension et filtres

  • help()

  • packages, libraries tierces

  • requests, HTTP protocol (headers, methodes, urls, anchors, links ...)

  • design patters

  • solid

  • décorateurs

  • regular expressions

  • Données binaires, encodage (binaire, ASCII, hexadécimal, unicode ...)

  • tests: pytest, TDD

other subjects

  • the dvorak layout
  • markdown, pandoc, beamer

Idées d’ateliers

  • Writing GUIs: PyQt, Kivy

Parser du RSS et télécharger les émissions:

  • Source: https://github.com/dmerejkowsky/pypodget/

  • Concepts:

    • setup.py
    • scripts, entry points
  • Remplacer Matlab par Python + numpy + matplotlib

  • Effets audio

  • Jeux vidéos (pygame)

  • IOT : micro-controller, Rasberry Pi

  • Blender/GIMP

  • Stéganographie: cacher un texte dans une image