mac-friendly code complete i think