The concept of literate programming, text interspersed with code, is older. Knuth mostly invented it, writing TeX, among other things, in it. Org mode even let you evaluate code blocks and store the output, or use it in future blocks.