DELAPARRA
Index
Color
NL
Category: Programming paradigms

Tangle

Explained by Updated

What is Tangle?

Tangle: The process of extracting the actual source code from a literate document, reassembling fragments in the right order. In literate programming, tangling is the step that extracts the source code from a document written for people. The tool collects the named code chunks scattered through the explanation, puts them in the order the compiler needs, and writes out real source files.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Tangle

How is Tangle used in practice?

The opposite step, weaving, produces the formatted documentation from the same document. One source file thus yields both runnable code and readable explanation, which stay in sync because they come from the same place.

What should you keep in mind with Tangle?

Org-mode in Emacs can tangle code blocks into configuration files, which many people use to keep a well-documented setup. The broader lesson is useful anywhere: generating documentation and code from a single source avoids the common problem of docs that describe how the code used to work.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with T

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.