Skip to content

Instantly share code, notes, and snippets.

@senpl
Last active September 1, 2022 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save senpl/fff82c0fd0beee66d410480d55e42bcc to your computer and use it in GitHub Desktop.
Save senpl/fff82c0fd0beee66d410480d55e42bcc to your computer and use it in GitHub Desktop.
Dzielenie programu na funkcje
Kożystając z zasad czystego kodu (https://www.freecodecamp.org/news/clean-coding-for-beginners/ https://workat.tech/machine-coding/tutorial/introduction-clean-code-software-design-principles-nwu4qqc63e09) weź napisany przez siebie kod i przeprowadź optymalizacje
Niech cały kod znajduje się w funkcjach
Niech funkcje nie są dłuższe niż 9 linijek.
Następnie niech funkcje nie będą dłuższe niż 4 linijki.
Dodaj jeden główny test, który sprawdza, że twój kod działa.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment