Refactoring Python code with functools partial

Published: 23 March 2018
on channel: Nick Loadholtes
3,168
34

I had some code that grew over time and was getting ugly. Instead of just adding to cruft, I decided to refactor it. This video shows how I'm using the functools.partial() to create a function that can just be called, and in the process encapsulate a lot of business logic in its right place (not in your view!).

This code is for a new project that I've recently been working on: https://remotematcher.com (It's a tool to help you find your perfect remote job!)

Let me know if you have any questions/comments


On this page of the site you can watch the video online Refactoring Python code with functools partial with a duration of hours minute second in good quality, which was uploaded by the user Nick Loadholtes 23 March 2018, share the link with friends and acquaintances, this video has already been watched 3,168 times on youtube and it was liked by 34 viewers. Enjoy your viewing!