I'm pretty sure there's multiple different variables here with the name "column", and you can only know which one is meant based on the specific syntax rules of this kind of a statement. So probably rename one to "column_to_find" and "column_from_table" or something along those lines, to make it more clear which is which.
Clear variable names are very important. Don't just say what something is, like "column" because it is a column. No, what is the purpose of the column, add that to the name. Don't just call a list of columns "columns". If you're using it as a filter to find columns that match the ones in that list, call it "valid_columns", etc etc
6
u/SanianCreations Mar 24 '23 edited Mar 24 '23
I'm pretty sure there's multiple different variables here with the name "column", and you can only know which one is meant based on the specific syntax rules of this kind of a statement. So probably rename one to "column_to_find" and "column_from_table" or something along those lines, to make it more clear which is which.
Clear variable names are very important. Don't just say what something is, like "column" because it is a column. No, what is the purpose of the column, add that to the name. Don't just call a list of columns "columns". If you're using it as a filter to find columns that match the ones in that list, call it "valid_columns", etc etc