|
|
|
|
|
by eru
3629 days ago
|
|
You can write a program that's hard to understand for humans, but comes with a computer-checkable proof of its correctness. But aside from that pedantic possibility, I agree with most of the spirit of your comment. Code can be useful to communicate with humans. In fact, the most expressive programming languages should be better at conveying precise descriptions of algorithms to other humans than natural language. (Not a lot of programming languages reliably reach that ideal. Haskell sometimes comes close.) I regularly write code that's meant to convey ideas, eg when explaining concepts, algorithms and data structures to people. |
|