4 ms·
It's like you didn't read my comment — how functions like wtfFriendAction help reusability?
by andreypopp 13y ago
It's like you didn't read my comment — how functions like wtfFriendAction help reusability?
- Skinney 13y agoIn this small example it doesn't, getFriendsById however, does. I would imagine that wtfFriendAction could be used multiple places though. wtfFriendAction is additionally a very, very poor name. It should be called "addFriendToFriendList" or something. Another thing is that the author himself states that the function doesn't actually makes sence, hence the ugly name.
- deleted 13y ago[deleted]
- andreypopp 13y ago> Another thing is that the author himself states that the function doesn't actually makes sence, hence the ugly name. That's the point — using callbacks you end up with functions which do not make sense... Edit: spelling