gaincas.blogg.se

Python writing program
Python writing program









python writing program

Expressive code means that even though we're just providing instructions to a computer, it should still be readable and clearly communicate its intent when read by humans. The code we write should be simple, expressive, and free from more than a few duplicates. Writing code is easy, but writing good, clean code is hard. We (developers) spend way more time reading the code than actually writing it, which is why it's important that we write good code. It's one of the most important aspects of writing quality software.

  • Decorators, Context Managers, Iterators, and GeneratorsĬlean code is a set of rules and principles that helps to keep our code readable, maintainable, and extendable.
  • Functions should only perform a single task

    python writing program

    Do not use different words for the same concept Use descriptive/intention-revealing names











    Python writing program