3 ms·
In my experience if you're struggling with naming something (variable, function, class, etc.) in your code, it often indicates that you're not entirely sure abo
by DrJokepu 15y ago
In my experience if you're struggling with naming something (variable, function, class, etc.) in your code, it often indicates that you're not entirely sure about the role of that particular structure. When this happens to me, I ask myself: what is the role of this variable? What does this method do? If you can't figure that out sometimes that's indicating that it's time for refactoring.