AI Agents vs. AI Pipelines: A Practical Guide to Coding Your LLM Application