ValiantDust@feddit.detoProgrammer Humor@programming.dev•Can someone explain why authors do this?
3·
1 year agoI’m afraid I’m not following. The solution to what?
Edit: Sorry, I misread your comment.
I’m afraid I’m not following. The solution to what?
Edit: Sorry, I misread your comment.
Not only more readable than A and B but I would argue it’s also easier to remember who did what a few sentences or paragraphs earlier since Alice and Bob invoke slightly less generic mental images than A and B. For example one is a woman and the other one is a man, maybe even some person or character you know.
And now that I’m thinking about it, the different gender also makes it easier to keep track of who does what because different pronouns are used (at least in English and many other languages).
But are you gonna return something for this method??? You said you’d return an integer, yet there is no return statement!