{"slug": "5-things-to-set-up-before-you-write-any-code", "title": "5 Things to Set Up Before You Write Any Code", "summary": "A developer outlined five setup practices to complete before writing any code, including writing a .gitignore first to keep secrets out of git history, using tags only as readable names for commits rather than moving approval tags, and maintaining Architecture Decision Records that capture context, options, decision and consequences. The engineer also recommended giving AI coding assistants standing rules in a file they read every session, and reviewing the AI's plan before it builds — noting that one plan contained a miscounted file list and a .gitignore that assumed a framework the developer had not chosen.", "body_md": "1. Write your .gitignore first. A secret committed once stays in git history forever, even after you delete it.\n2. A commit holds your code. A tag is only a readable name for one commit. Don't move approval tags afterward; record changes in a new commit.\n3. Write ADRs (Architecture Decision Records). Context, options, decision, consequences. In six months you'll forget why you chose something. The ADR won't.\n4. Give your AI assistant standing rules in a file it reads every session. Rules written once beat instructions repeated in every prompt.\n5. Read the AI's plan before it builds. Mine had a miscounted file list and a .gitignore that quietly assumed a framework I hadn't chosen.", "url": "https://wpnews.pro/news/5-things-to-set-up-before-you-write-any-code", "canonical_source": "https://dev.to/srabonbot/5-things-to-set-up-before-you-write-any-code-4ip3", "published_at": "2026-12-03 05:33:01+00:00", "updated_at": "2026-12-03 05:47:13.329179+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": [], "also_reported_by": [], "takeaway": "Give coding assistants standing rules in a file they read each session instead of repeating instructions per prompt, and review the AI's plan before it builds — one plan had a miscounted file list and a .gitignore assuming an unchosen framework.", "recommendation": {"advice": "Put persistent rules in a file your coding agent reads every session and review its plan before execution, since one plan miscounted files and assumed an unchosen framework.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/5-things-to-set-up-before-you-write-any-code", "markdown": "https://wpnews.pro/news/5-things-to-set-up-before-you-write-any-code.md", "text": "https://wpnews.pro/news/5-things-to-set-up-before-you-write-any-code.txt", "jsonld": "https://wpnews.pro/news/5-things-to-set-up-before-you-write-any-code.jsonld"}}