summaryrefslogtreecommitdiffstats
path: root/cholerab/pattern/README
diff options
context:
space:
mode:
authortv <tv@also>2011-08-08 01:00:11 +0200
committertv <tv@also>2011-08-08 01:01:10 +0200
commitdceeadb1a9e40c449e5ba87d21e08920306142f4 (patch)
treefcf7e3a69e4a74047c4f34dc5efad88be2b3ef20 /cholerab/pattern/README
parent6dd9ea309f4fc010b113b357a5d2f65ef0977aa3 (diff)
cholerab: add litprog and srcdoc
Add the patterns Literate Programming and Source-based Documentation.
Diffstat (limited to 'cholerab/pattern/README')
-rw-r--r--cholerab/pattern/README16
1 files changed, 16 insertions, 0 deletions
diff --git a/cholerab/pattern/README b/cholerab/pattern/README
index 03c1c068..0980ac6e 100644
--- a/cholerab/pattern/README
+++ b/cholerab/pattern/README
@@ -50,3 +50,19 @@ Prozess um auf Enterprise Patterns zu kommen
Bug-Driven Development
---------------------
+
+Source-based Documentation / Help
+---------------------------------
+<code>
+ #! /bin/sh
+ if echo "$*" | grep -q '\(^\| \)-h\( \|$\)'; then
+ cat "$0"
+ fi
+ # [more code]
+</code>
+
+Literate Programming
+--------------------
+Omit all the comments.
+
+