3 ms·
A common approach is to describe the functionality aloud. If your description includes the word 'and', then there may be a problem ("this method increments the
by tragic 12y ago
A common approach is to describe the functionality aloud. If your description includes the word 'and', then there may be a problem ("this method increments the foo counter, and makes the tea").
- balabaster 12y agoI don't think there's anything wrong with any method that also makes me tea :P
- Bahamut 12y agoIt is the minute details that are sometimes the problem. For example, if a developer is iterating over an array to do something to each element, there is a good chance that that iterator should be separated out in the event that it may be reusable (if using something like map).