From 04fea470969698c9587e4fe04e1e42cfaf703b9a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 8 Aug 2011 00:52:26 +0200 Subject: cholerab/{enterprise -> pattern} --- cholerab/pattern/README | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 cholerab/pattern/README (limited to 'cholerab/pattern') diff --git a/cholerab/pattern/README b/cholerab/pattern/README new file mode 100644 index 00000000..03c1c068 --- /dev/null +++ b/cholerab/pattern/README @@ -0,0 +1,52 @@ +Enterprise Patterns +================== +Stellt sicher, dass das richtige passiert, egal was gemacht wird + +Enterprise Loop +--------------- + +Enterprise Exception Handling +----------------------------- +ggf ersetzbar durch enterprise loop. + + +Enterprise Installation +----------------------- + +Rebooting +---------- + +Enterprise Einschalter (eon) +---------------------------- +Device that turns something on as soon as possible. + +Supernintendo Pattern +--------------------- + +Enterprise Root +--------------- +scripts which need root access but are called with lower privileges. The Enterprise Root Pattern provides a Solution for this issue by calling the script itself as sudo. + +if test "${nosudo-false}" != true -a `id -u` != 0; then + echo "we're going sudo..." >&2 + exec sudo "$0" "$@" + exit 23 # go to hell +fi + // enterprise ist, wenn ... trotzdem matcht + +Enterprise Shutdown +------------------ +Mittel der Wahl um einen Shutdown zu erzwingen + +Bsp: das Not-Aus in der Maschinensicherheit + +Enterprise Deep Copy +-------------------- +Bsp: var copy = JSON.parse(JSON.stringify(source)) + +Enterprise Thinking +------------------- +Prozess um auf Enterprise Patterns zu kommen + +Bug-Driven Development +--------------------- -- cgit v1.2.3 From dceeadb1a9e40c449e5ba87d21e08920306142f4 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 8 Aug 2011 01:00:11 +0200 Subject: cholerab: add litprog and srcdoc Add the patterns Literate Programming and Source-based Documentation. --- cholerab/pattern/README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cholerab/pattern') 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 +--------------------------------- + + #! /bin/sh + if echo "$*" | grep -q '\(^\| \)-h\( \|$\)'; then + cat "$0" + fi + # [more code] + + +Literate Programming +-------------------- +Omit all the comments. + + -- cgit v1.2.3