Закрыто

[TalkPython] Write Pythonic Code Like a Seasoned Developer

Тема в разделе "Курсы по программированию", создана пользователем Poseidon, 8 мар 2017.

Цена: 2550р.-92%
Взнос: 198р.
100%

Основной список: 35 участников

Резервный список: 1 участников

Статус обсуждения:
Комментирование ограничено.
  1. 8 мар 2017
    #1
    Топикстартер
    Топикстартер ЧКЧлен клуба

    [TalkPython] Write Pythonic Code Like a Seasoned Developer

    pythonic.jpg

    Краткое описание курса

    В этом курсе вы познакомитесь с более чем 50 наиболее популярными и полезными примерами кода, демонстрирующими код Pythonic. В примерах вы сначала увидите не-Pythonic-код, а затем более естественную версию Pythonic.

    Одной из специальных концепций в Python является идея написания идиоматического кода, который наиболее соответствует языковым функциям и идеалам. В Python мы называем этот идиоматический код Pythonic. Хотя эту идею легко понять, оказалось, что сделать ее довольно сложно.

    Рассматриваемые темы включают в себя широкое использование словарей, взлом памяти Python через слоты, использование генераторов, выражений и выражений генератора, создание подмножеств коллекций через срезы (вплоть до базы данных) и многое другое. Некоторые из них являются функциями Python 3, поэтому у вас будет еще больше оснований для внедрения Python 3 для вашего следующего проекта.


    Welcome to the course
    Welcome and thanks for coming
    Topics covered
    Get the source code
    Do you need to learn Python too?
    Python 3 or Python 2?
    Recommended editor​
    Style guidance from PEP 8
    Who decides what is Pythonic?
    Import statements
    Code layout and structure
    Documentation strings
    Naming conventions​
    Foundational Concepts
    Truthiness and boolean statements
    Testing for None
    Multiple tests against a single variable
    Choosing an item at random
    String formatting
    Care enough to send an exit code
    Flat is better than nested​
    Dictionaries
    Why dictionaries
    Stop using lists for everything
    Merging dictionaries
    Hacking Python's memory
    Safer dictionary item access
    Dictionaries as switch statements
    To and from JSON​
    Generators and Collections
    Custom iteration and your types
    Testing for containment
    Slicing collections all the way to the database
    On-demand computation with yield and generators
    Recursive generators with yield from
    Inline generators via expressions
    Counting generators​
    Methods and Functions
    Introduction to Pythonic functions
    Leverage inline methods with lambda expressions
    I'm going to ignore your return value
    There is no method overloading in Python
    Default values for overloads
    Variable argument counts for overloads
    Unpacking dictionaries as named arguments
    Beware: The danger of mutable default arguments​
    Modules and Packages
    Introduction to packaging and module idioms
    Pythonic import statements
    What is __main__ and when do you use it?
    Isolation with virtual environments
    State your requirements​
    Classes and Objects
    Defining fields on classes
    Encapsulation and data hiding
    Do not write get_thing() set_thing()​
    Pythonic Loops
    There is no numerical for loop
    Wait, is there a numerical for loop (v1)?
    Wait, is there a numerical for loop (v2)?
    Loops have an else block, don't use it​
    Tuples
    Tuple assignment and unpacking
    Swapping values
    Multiple return values from a function
    Prefer named tuples​
    Python for Humans
    Human Python as a stand in for packages in general
    Requests: HTTP for Humans
    Records: SQL for Humans​
    Course Conclusion
    You've done it!
    Lightning review
    Source code
    Thanks and bye​

     
    2 пользователям это понравилось.
  2. Последние события

    1. skladchik.com
      Складчина закрыта.
      24 ноя 2017
    2. skladchik.com
      Складчина доступна.
      4 май 2017
    3. skladchik.com
      Складчина закрыта.
      19 мар 2017
    4. ClarenceBoddicker
      ClarenceBoddicker участвует.
      14 мар 2017

    Последние важные события

    1. skladchik.com
      Складчина закрыта.
      24 ноя 2017
    2. skladchik.com
      Складчина доступна.
      4 май 2017
    3. skladchik.com
      Складчина закрыта.
      19 мар 2017
    4. skladchik.com
      Взнос составляет 99р.
      13 мар 2017
Статус обсуждения:
Комментирование ограничено.

Поделиться этой страницей