← All videos

Engineering video

18:18 · 29 August 2025

AI Coding for Professional Software Engineers (Best Practices)

Chapters 7 sections

  1. 0:00Introduction and Best Practice 1: Keep Context Small
  2. 4:44Bad Advice to Avoid in AI Coding
  3. 6:59Best Practice 2: Keep Context Fresh
  4. 8:00Best Practice 3: Full Responsible Principle

Key concepts in this video:

1. Keep Context Small

Limiting prompt size and repository context improves LLM accuracy, reduces bias, and prevents chaotic code generation.

Watch section from 0:54 →

2. Keep Context Fresh with RAG

Using Retrieval-Augmented Generation tools like Context7 injects up-to-date documentation into prompts to combat outdated model training data.

Watch section from 6:59 →

3. Full Developer Responsibility

Developers must review AI-generated code line-by-line, run manual tests, and maintain end-to-end accountability for committed code.

Watch section from 8:00 →

4. Program to Interfaces and Strict Typing

Enforcing strict structures like TypeScript and relational schemas restricts LLM output possibilities and limits the blast radius of AI mistakes.

Watch section from 10:36 →

5. Architecture and Microservices

Smaller codebases or microservice architectures yield better accuracy from AI tools compared to large, monolithic structures.

Watch section from 13:24 →

6. Specification and Behavioral Testing

Driving AI generation through behavioral (BDD) and end-to-end tests ensures predictable and verified functional outcomes.

Watch section from 15:19 →

Transcript

So you've probably already seen all those videos where they promise you you'll be 100 times faster if you code with AI. And so when I started coding with AI, my expectations were something like this. In reality, the more you go down the rabbit hole, it feels something more like this, where it resembles the alchemy in the medieval times, where they say, "Oh, no, do context engineering and then add this and then stick it to this way and then you can transform lead into gold."