2016년 9월 7일 수요일

Programming of literary arts

Programming of literary arts

With the programming (ぶんげいてき programming British: literate programming) of literary arts,

  • It is programming-style of the computer which Donald Knuth proposed.
  • It is memoirs of Donald Knuth insisting, "programming is art and is literature". The article about the top is included, too.

I explain the former here.

Summary

By the programming of the computer, I describe the document in conjunction with the program source in separate files, but management and reflection of update contents usually burden this.

For this problem, I describe a meta source called WEB which wrote sauce together with a document by the programming of literary arts and raise unity of the information because a document and a source code are produced each from there (I call these mechanism WEB system).

If a code is only written together with merely document, it is not different from an implantation document seen in normal comment or perl, but lets a document cope with an arbitrary cord piece by using macro by the programming of literary arts more. This is equivalent to so-called hyperlink and can describe contents by free order regardless of the practice order of the cord. For example,

 1.Central algorithm do_something() is processing contents playing a key role. <a routine> = =  item.do_something().  2.Main loop I handle all content of a certain collection in <central algorithmic>. <main> = = for item in collection  <a routine> 

It is in のような form. This finally

 for item in collection   item.do_something(). 

I output という cord.

You should see it with the meaning action that is totally different from the comment to take out only a part in conjunction with the single-mindedness, and to perform the reference to contents (the comment buried during a true program is apt to simplify in particular it more than required, but the point is restrained if it is the programming of the literary arts that a description plays a key role).

In reality, as for performing all the intense source descriptions of the change by the programming of literary arts, there is unreasonableness. However, it may be said that the application is possible with the open source being aware of contents and distribution about the complicated algorithm.

By the original WEB system by Knuth, I generated Pascal cord and the document of the TeX format. However, as for the concept of the programming of literary arts, much transplant is performed for a specific language and languages afterwards various with the format by independence.

Allied item

This article is taken from the Japanese Wikipedia Programming of literary arts

This article is distributed by cc-by-sa or GFDL license in accordance with the provisions of Wikipedia.

Wikipedia and Tranpedia does not guarantee the accuracy of this document. See our disclaimer for more information.

In addition, Tranpedia is simply not responsible for any show is only by translating the writings of foreign licenses that are compatible with CC-BY-SA license information.

0 개의 댓글:

댓글 쓰기