4 ms·
Also: avoid using comments where proper names would suffice: // cleans responses function zrgfy(response){ ... } should be something like: functi
by nailer 10y ago
Also: avoid using comments where proper names would suffice:
// cleans responses
function zrgfy(response){
...
}
should be something like:
function cleanResponse(response){
...
}
- chousuke 10y agoMy rule of thumb in commenting is that I comment the why or how, not the what... Unless the what is sufficiently non-obvious, in which case it is usually prudent to have a really good explanation of the why, as well.
- deleted 10y ago[deleted]