4 ms·
But a programming language has 2 purposes: to tell a computer what to do and also to tell a human what the computer does. That's why programming languages are b
by dbtc 6y ago
But a programming language has 2 purposes: to tell a computer what to do and also to tell a human what the computer does. That's why programming languages are between machine code and human language. Some weighted more one way or the other, but always some kind of balance.
- thaumasiotes 6y agoNo, that's why programming languages have syntax for comments.
- dbtc 6y agoAnd why variables (methods etc) are given names with human-language words.
- bildung 6y agoFor that to fulfil the second purpose, fixing a comment would fix the code itself. This obviously doesn't work, so we are back at the beginning: The programming language also has to be somewhat human-readable to be productive.
- prox 6y agoI currently see it conceptually as this : Input Function(input) { Something needs being done with input } Output by calling Function It is what the computer does and it is what the human writes, even if it gets re-translated along the way.