2 ms·
> Besides, code speaks to the compiler/runtime; comments speak to the human. > - The machine need to know HOW something should happen. That's code. > - The huma
by diggan 9y ago
> Besides, code speaks to the compiler/runtime; comments speak to the human.
> - The machine need to know HOW something should happen. That's code.
> - The human needs to understand WHY that thing should happen that way.
While valuable, some people argue that they should be the same (granted, I mostly deal with high-abstraction language). For example most (all?) lisps have homoiconicity which means the computer and you see the code the same.
- pjc50 9y agoHomoiconicity is irrelevant - comment text has no meaning to the computer but can do for the human. Computers have a hard time with "why".