3 ms·
I actually use the number of capital letters in camel-cased variable/method names as a signal that the code might need refactoring. Generally, every capital le
by avinium 8y ago
I actually use the number of capital letters in camel-cased variable/method names as a signal that the code might need refactoring.
Generally, every capital letter indicates another hierarchical relationship from left-to-right. Usually these are implementation details that shouldn't be publicly exposed, or at least could be separated out/encapsulated better in a different object/function structure.
Obviously it's a rule-of-thumb and there are exceptions, but I've found this works pretty well.