News for hackers. Stuff that matters.
Re:Termtris: A Game Like Tetris in Ten Functions by adamesque on Thursday October 09, 2014 @04:42PM (#8434933)
Whoa! Love the idea of a hybrid lua/markdown file; I didn't realize that the readme for the Github project WAS the source code till I noticed it was just a symlink to the .lua file.

Very cool.

Re:Termtris: A Game Like Tetris in Ten Functions by elviejo on Thursday October 09, 2014 @05:06PM (#8435025)
That approach is called literate programming. http://en.m.wikipedia.org/wiki/Literate_programming
Re:Termtris: A Game Like Tetris in Ten Functions by theoh on Thursday October 09, 2014 @09:06PM (#8435777)
This is an obvious point, but the slightly ostentatious uses of the term "literate" by Knuth is not, apparently, a dig at the kind of "coding bums" (Dijkstra's words) who liked to use APL. There is a literate APL system out there, and Knuth seems to see APL in a different light from Dijkstra, as a specification language. http://tex.loria.fr/litte/knuth-interview
Re:Termtris: A Game Like Tetris in Ten Functions by dllthomas on Friday October 10, 2014 @01:06AM (#8436339)
He said he chose "literate" because he wanted those who didn't like it to be advocating "illiterate programming".

The common use of the term these days (source interspersed with documentation, serving as both) leaves out one significant aspect of WEB, where you could do quite a bit of rearranging the file layout (with slightly-buffed-up C style macros, basically) so that the communicative structure dominated. Reading through the papers on it was interesting; I've not actually put together a project in it.