Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python Code Refactoring - Writing Modular Functions

Samuel Chan via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the process of refactoring a monolithic Python function into smaller, modular, and testable components in this 26-minute tutorial. Learn essential mental models for writing modular Python functions, enhancing code maintainability, testability, and predictability. Follow along as the instructor demonstrates breaking down a large function into several smaller ones, ideal for unit testing. This video is part of a series on building a Python package for a terminal-based productivity tool. For a comprehensive learning experience, consider watching the full playlist, which includes previous episodes on TaskWarrior, command-line productivity scoreboards, and publishing Python packages. Access the code repository on GitHub and the published package on PyPI to practice implementing these concepts in your own projects.

Syllabus

Build w/ Python 4: Python Code Refactoring (Modular python functions)

Taught by

Samuel Chan

Reviews

Start your review of Python Code Refactoring - Writing Modular Functions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.