idioms, patterns and random snippets