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
In questa pagina del sito puoi guardare il video online Refactoring Python code with functools partial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nick Loadholtes 23 marzo 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,168 volte e gli è piaciuto 34 spettatori. Buona visione!