Tags
Language
Tags
December 2024
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4

Intermediate Python: Master Decorators From Scratch

Posted By: ELK1nG
Intermediate Python: Master Decorators From Scratch

Intermediate Python: Master Decorators From Scratch
Published 6/2023
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 732.51 MB | Duration: 2h 53m

A Comprehensive Introduction to Decorators In Python with Several Practical Applications

What you'll learn

Understand what decorators are and how they are used in python functional programming

Write advanced, flexible decorators to handle caching, performance timing, logging, and more

Master the syntax and, more importantly, the core ideas behind decorators

Get ample practice through 12 coding assignments, followed by detailed solutions

Requirements

Some familiarity with python is preferred, though not strictly required

Description

Welcome to the best and most complete guide to Python decorators!In this course, you'll cultivate a deep and practical understanding of decorators in Python, starting from the very basics. This beginner-friendly course is meticulously crafted to ensure you build a solid foundation from scratch while also getting ample practice in the process. Before diving into decorators, we'll explore the fundamental principles that serve as the building blocks of this intriguing topic. You'll gain a deep understanding of higher-order functions, closures, and first-class functions – prerequisites that unlock the magic of decorators. Foundational topics include: ClosuresFirst-Class FunctionsVariadicsHigher Order FunctionsOnce we have established a solid grasp of these functional foundations, we'll dive into the captivating world of decorators. We'll start with a gentle introduction and gradually move towards more intricate techniques. Our exploration of decorators will include:Basic DecoratorsDecorating Parameterized FunctionsChaining DecoratorsDecorating Functions With Variable ArityPreserving Metadata of Decorated FunctionsBut that's not all! Each concept will be reinforced through engaging coding assignments of increasing difficulty. Throughout the course, will also explore several skill challenges inspired by real-world scenarios including:Logging Function OutputTiming Runtime PerformanceUsing Decorators In Mocked Authentication FlowsCreating Cache MechanismsThis course is tailored specifically for Python programmers interested in deepening their understanding of decorators as a gateway to functional programming or as a standalone, intermediate-level programming pattern.See you inside!

Overview

Section 1: Course

Lecture 1 VERY Short Intro!

Lecture 2 Course Resources

Lecture 3 Introduction to Python Functions

Lecture 4 Skill Challenge: Averaging Grades

Lecture 5 Solution

Lecture 6 More On Functions: *args and **kwargs

Lecture 7 Skill Challenge: Variadics

Lecture 8 Solution

Lecture 9 Higher-Order Functions

Lecture 10 Skill Challenge: Arithmetic HOF

Lecture 11 Solution

Lecture 12 First-Class Functions

Lecture 13 Closures

Lecture 14 Skill Challenge: Counter Factory

Lecture 15 Solution

Lecture 16 Basic Introduction To Decorators

Lecture 17 Decorating Parameterized Functions

Lecture 18 Skill Challenge - Let's Log

Lecture 19 Solution

Lecture 20 Skill Challenge - Lotto Draws

Lecture 21 Solution

Lecture 22 Skill Challenge - Writing A Timer

Lecture 23 Solution

Lecture 24 Decorators With Arguments

Lecture 25 Skill Challenge - Repeated Lotto Draws

Lecture 26 Solution

Lecture 27 Chaining Multiple Decorators

Lecture 28 Preserving Identity With @wraps

Lecture 29 Skill Challenge - Delaying Downloads

Lecture 30 Solution

Lecture 31 Skill Challenge - Authentication Workflow Part I

Lecture 32 Solution Part I

Lecture 33 Skill Challenge - Authentication Workflow Part II

Lecture 34 Solution Part II

Lecture 35 Skill Challenge - Building A Cache

Lecture 36 Solution

Beginner Python developers interested in stepping up into intermediate and advance topics