---
title: "Comment by Ahmed Sadman Muhib on \"Quick Python Refactoring Tips\" | Hashnode"
description: "Love your writing style. Really helpful tips. Although, I have slight disagreement with point 7. If your variables are named properly, it should be understandab"
url: "https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/60fab45318fbbb77c946316d"
---

[Discussion](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e)

Comment [Quick Python Refactoring Tips](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e)

[Ahmed Sadman Muhib](https://hashnode.com/@ahmedsadman)

[Jul 23, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/60fab45318fbbb77c946316d)

Love your writing style. Really helpful tips. Although, I have slight disagreement with point 7. If your variables are named properly, it should be understandable regardless of where it is assigned. In many cases your other team members would want to find all the assignments in the same place, don't you agree?

[Patrick Loeber](https://hashnode.com/@patloeber)

[Jul 23, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/60fab45318fbbb77c946316d#reply-60fb10ef31552277811ab7c2)

Thanks for your feedback! Hmm but why define it somewhere where it's not used? Then you have to search for the next location where it's used...

[Ahmed Sadman Muhib](https://hashnode.com/@ahmedsadman)

[Jul 23, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/60fab45318fbbb77c946316d#reply-60fb12aa31552277811ab811)

[Patrick Loeber](https://hashnode.com/@patloeber) When other people work on your code it's not always necessary to know how the variable is assigned, rather the name should define what it's doing. I think it falls under individual preference so it's not actually a refactor.

[Patrick Loeber](https://hashnode.com/@patloeber)

[Jul 23, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/60fab45318fbbb77c946316d#reply-60fb244931552277811ab9b1)

Yes agree. Variable names are much more important anyway :)
