diff options
| author | makefu <github@syntax-fehler.de> | 2011-08-09 01:25:00 +0200 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2011-08-09 01:25:00 +0200 |
| commit | a6065743953422948205ef5fd72fadbc45e397b5 (patch) | |
| tree | 3f9127a72373aca96fbd82eb3cfcdd484f7a4f8f /cholerab/pattern | |
| parent | 02824eed4f957e25bf9bfda6bf09e093447abb68 (diff) | |
| parent | 26a2bfa9aa099917afef430b9af8e49bfeacf4eb (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Conflicts:
census/* :
hard renaming of people to census
people/* :
deleted old people folder
retiolum/Makefile :
added retiolum Makefile
retiolum/scripts/adv_graphgen/sanitize.sh:
merged sanitize script
Diffstat (limited to 'cholerab/pattern')
| -rw-r--r-- | cholerab/pattern/README | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/cholerab/pattern/README b/cholerab/pattern/README new file mode 100644 index 00000000..0980ac6e --- /dev/null +++ b/cholerab/pattern/README @@ -0,0 +1,68 @@ +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. +<code> +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 +</script> // enterprise ist, wenn <code> ... </script> 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 +--------------------- + +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. + + |
