4 ms·
All in good measure. Too many loval temporary variables are quite annoying as well, especially paired with bad naming. When the names are like "thing_with_attr1
by zelphirkalt 2y ago
All in good measure. Too many loval temporary variables are quite annoying as well, especially paired with bad naming. When the names are like "thing_with_attr1", "thing_with_updated_attr1" and so on, it also becomes confusing which variable has what, when they are later used.
Having variable assignment after assignment after assingment is also an indication for a function potentially doing too many things and might even be called a code smell.