Understanding interactive computing
The concept of literate programming was first proposed in the 1980s by the famous programmer Donald Knuth, the idea being that a program should be written in such a way that the thinking behind it is explained through natural language, with the actual code of the program interspersed throughout the explanation. The objective is that the programmer expresses the intentions and mental model/flow through the explanations, and the realizations of those intentions are readable as code and yield instant results – important for shortening the feedback cycle. In principle this could even involve combining multiple programming languages within the same session.
This paradigm has been implemented in the form of specialized programming languages, as well as through simplifications such as keeping documentation close to the code (check Python’s Docstring conventions as standardized in PEP-257 – https://peps.python.org/pep-0257/). However...