AI & Machine Learning
ML fundamentals, LLMs, prompt engineering, and AI-powered application development.
Latest in AI & Machine Learning
17 ArticlesAI can write a pytest suite that passes against buggy code. Learn a repeatable loop to generate tests, break the code on purpose, and verify the test catches the bug before you trust it.
A solo developer runs a multi-tenant SaaS on a 1 vCPU VPS with SQLite and 38 MB RAM. The real lesson is a decision rule for infrastructure: every piece you add is a piece you must debug alone at 11pm. Here is what SQLite gives you, what it costs, and when to move on.
Manual prompt inspection gives you a feeling, not a signal. Here is a small Python eval harness — inputs, expected properties, a runner, a pass/fail report — you can run before every prompt change.
A practical protocol for delegating to AI coding agents while avoiding skill atrophy—hand off boilerplate, review output line by line, reproduce fixes yourself, and reflect on what you learn.
Changing an LLM system prompt and eyeballing a few outputs is a sampling trap. Here's how to build a small Python eval harness that catches regressions before you deploy.
Manual prompt inspection is not a regression test. Here is how to build a small, language-agnostic eval harness that scores outputs, compares to a baseline, and fails loudly when quality drops.
A prompt rule is a suggestion; a code rule is a constraint. Here is how to split an agent's publishing rules between the two, with runnable guards for daily caps, duplicates, and spacing.
A tool call that is 95% right still fails. Supervised fine-tuning shows a model the correct call but never the plausible wrong one. Here is what preference data changes, and how to test for near-misses.
Reviewing AI-generated Python code? A single successful run is just the start. Here is a three-pass workflow to check if the code is safe, maintainable, and worth keeping.
Your AI agent guesses when your project is ambiguous. Make it explicit with pyproject.toml, a test example, a README, and CI—and reduce wasted debugging time.
A passing test suite collapses an entire agent run into one bit. Here's how to read the execution trace instead: what a healthy sequence looks like, which patterns to flag, and a small script to summarize a run.
Code generation got faster, but planning, review and production triage did not. A practical guide to the parts of the agentic loop that still need a human, with a worked plan-first workflow, a diff review checklist, and honest limits.