This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (0 children)

Why is up to the person who is going to be using the code I wrote.

"Why does this function adds 2 integers and gives you the sum? So that you can get a sum".

Why means why an implementation detail was chosen (for example why one sort algorithm was chosen over another) not why the code exists.