How to Actually Code with AI (ft. Matt Pocock)

How to Actually Code with AI (ft. Matt Pocock)

The Accessibility of Software Engineering

Learning Programming Languages

  • The speaker believes that learning a specific programming language is not essential at the moment, suggesting that software engineering is easier than commonly perceived.
  • Coding has historically been viewed as complex, but the speaker emphasizes that it can be learned with practice and dedication.

AI's Role in Coding

  • Despite lacking a formal software development background, the speaker can effectively utilize AI for coding tasks, highlighting AI's capability to generate code continuously.
  • Engineers currently outperform non-engineers in product development due to their domain expertise and understanding of what to request from AI tools.

Introduction of Matt PCO

Background and Transition

  • Matt PCO is recognized for his skills in AI coding and previously gained prominence through TypeScript courses before transitioning into AI-related projects.
  • His experience includes working on challenging TypeScript projects which led him to teach full-time after releasing a successful course called "Total TypeScript."

The Current State of Coding with AI

Strategic vs. Tactical Programming

  • The distinction between tactical (short-term problem-solving) and strategic (long-term planning) programming is discussed; AI excels at tactical tasks but struggles with strategic thinking.
  • Effective use of AI requires developers to focus on strategic aspects while allowing AI to handle tactical elements.

Limitations of Vibe Coding

  • "Vibe coding" refers to coding without deep engagement or consideration for long-term implications; this approach can lead to deteriorating code quality over time.
  • Developers must maintain oversight and ensure that their codebase remains organized, as relying solely on agents may result in neglecting important strategic considerations.

Embracing AI in Development

Importance of Using AI Tools

  • Not utilizing AI tools in software development is deemed unreasonable since much of traditional programming involved tactical work that can now be automated by agents.
  • Developers should focus on enhancing team velocity and code quality rather than getting bogged down by repetitive tactical tasks.

Becoming a Software Engineer Today

Learning Pathways

  • The speaker asserts that anyone interested in becoming a software engineer can do so relatively easily by dedicating time to learn and leveraging available resources like courses.
  • Strategic programming involves caring about the quality of output more than others, emphasizing the importance of commitment and interest in producing better results.

Practical Application: Problem-Solving Approach

Example Process Overview

  • Matt discusses his approach when tackling coding problems using his skills, emphasizing the integration of strategic thinking throughout each stage of problem-solving.

Utilizing Domain Driven Design

  • He highlights the significance of language consistency within projects based on domain-driven design principles, which aids communication between developers and agents during project execution.

Enhancing Communication with Agents

Bridging Communication Gaps

  • Effective collaboration with an agent requires clear communication; developers often underestimate this gap leading to misaligned outputs from agents.

Grilling Sessions for Clarity

  • A grilling session helps clarify requirements before starting work with an agent. This process ensures alignment between developer intentions and agent capabilities.

Building Code with AI: A Strategic Approach

Understanding the Grilling Process

  • The process involves gradually expanding understanding of a codebase by focusing on critical areas, akin to peeling back layers for clarity.
  • As developers engage in this process, they gain insight into their projects, making everything feel coherent and personally authored.
  • For those eager to implement these strategies quickly, accessing the skill repository is recommended as a straightforward starting point.

Getting Started with Skills

  • Users can visit aihero.dev/skills for comprehensive documentation on available skills and how to utilize them effectively.
  • Installation of skills is simple; once installed, users can begin leveraging them immediately for coding tasks.

Transitioning from Grilling to Implementation

  • After grilling and achieving clarity on features, developers have two paths: implement directly if the project is small or create a specification if it's larger.
  • The implementation skill translates ideas discussed during grilling into actual code while managing context effectively.

Managing Context Windows

  • Developers should be aware that as tokens are added to context windows, decision-making quality may degrade due to increased complexity.
  • Keeping context windows small enhances nimbleness and reduces latency; aiming for around 150k tokens is advisable for optimal performance.

Creating Specifications and Tickets

  • If projects exceed manageable token limits, creating a specification document helps outline goals clearly before breaking down tasks into tickets.
  • Each ticket represents an individual task that guides the agent through implementation step-by-step while ensuring alignment with specifications.

Strategies for Effective Context Management

Utilizing Sub Agents

  • Employing sub-agents can help manage large codebases efficiently without overwhelming the main context window.
  • Well-organized codebases facilitate exploration; poor organization complicates navigation regardless of size.

Optimizing Exploration Efforts

  • Many users mistakenly set high effort levels when exploring codebases; often medium settings suffice for effective exploration without wasting tokens.

Balancing Effort Levels in AI Models

Choosing Appropriate Models

  • Using models like Opus 5.5 at median effort typically yields satisfactory results without unnecessary token expenditure during explorations.

Trusting Your Agents

  • Establishing trust in agents requires maintaining a stable environment rather than constantly switching models or increasing effort levels unnecessarily.

Implementing Efficient Workflows

Ticket Management and Code Review Process

  • The "implement spec" skill allows agents to execute tasks using parallel sub-agents which streamline workflow management through work trees.

Conducting Code Reviews

  • Post implementation, a thorough review checks adherence to standards and specifications; this includes evaluating merge risks based on potential impacts of changes made.

Continuous Improvement Through Retrospective Analysis

Enhancing Future Performance

  • After completing cycles of development (grilling → spec → implement → review), it’s crucial to reflect on processes via retrospectives aimed at improving future workflows.

Trust and Verification in AI Applications

Importance of Security in Banking Applications

  • The speaker emphasizes the need for careful verification processes when working with banking finance applications, particularly focusing on "one-way doors" that require high trust levels.
  • A significant amount of resources, including tokens, would be allocated to security verifications to ensure reliability.

Feedback Loops for Building Trust

  • The speaker discusses various feedback loops currently utilized to build trust in AI agents, highlighting a resource called the "AI coding dictionary."
  • This dictionary includes definitions for terms like model providers and automated checks, which are crucial for understanding AI coding practices.

Automated Checks and Coding Standards

Role of Strong Typing and Testing

  • Automated checks are essential; strong typing (e.g., using TypeScript over JavaScript) helps quickly identify mistakes made by agents.
  • Runtime tests are necessary to verify that code behaves as expected during execution without introducing errors.

Importance of Linters

  • Linters play a critical role in maintaining code quality by checking for proper function usage and adherence to best practices.
  • The speaker advises against using the 'any' type in TypeScript as it undermines type safety and reduces error detection capabilities.

Implementing Automated Checks

Accessibility of Implementation

  • Anyone can implement these automated checks by simply instructing their agent to enforce stricter lint rules within their application.
  • Tools like Retro help enhance automated checks progressively based on previous findings, effectively tightening constraints on agents.

Balancing Speed and Accuracy

  • While improving automated checks is vital, there is also a need to maintain shipping speed; agents can optimize this balance effectively if guided properly.

Structuring Development Environments

Recommended Tools for Developers

  • For developing applications such as a coffee ordering website, tools like Cloud Code and VS Code are recommended due to their user-friendly interfaces.
  • GitHub is highlighted as an essential tool alongside VS Code for version control and collaboration purposes.

Strategic Thinking During Development

  • The importance of strategic thinking is integrated into various stages of development; tools prompt users about module shapes during specification calls.

Writing Effective Tests

Challenges with Testing

  • Writing effective runtime tests is challenging; many developers struggle with creating meaningful tests that genuinely validate functionality rather than just repeating implementation details.

Deep Modules Concept

  • Utilizing deep modules allows developers to isolate changes within code without needing constant test updates whenever minor adjustments occur.

Improving Codebase Architecture

Skill Utilization

  • A skill named "improve codebase architecture" can analyze repositories and suggest enhancements while providing visual reports on identified issues.

Continuous Improvement Strategy

  • Regularly running improvement scripts via cron jobs ensures ongoing enhancement of the codebase without requiring constant manual oversight from developers.

Learning Essential Knowledge

Bridging Knowledge Gaps

  • For those entering software development, understanding key concepts beyond tactical coding becomes crucial; skills exist that facilitate learning through tailored lessons based on individual needs.

Locality Understanding

  • Knowing how changes affect related pieces of code (locality concept), enhances communication effectiveness when prompting AI models or addressing issues within applications.

The Importance of Caring in Architecture

Understanding the Role of Agents

  • The discussion emphasizes that while architecture and models are crucial, the most significant factor is the care put into them.
  • The speaker clarifies their role is not to predict future trends but to optimize current systems effectively.
  • There’s a focus on how to make agents think strategically, suggesting that this can be achieved without altering the model itself.

Infrastructure Challenges

  • Many individuals struggle with understanding where to deploy applications, including database choices and cloud services like AWS or Google Cloud.
  • For beginners with limited coding experience, it's suggested they can rely on agents for deployment tasks rather than needing extensive technical skills.

Evolution of DevOps and Simplifying Deployment

Transition from Complexity to Simplicity

  • Over the past two decades, DevOps has shifted from requiring specialized knowledge to utilizing user-friendly products from major providers like AWS and Google Cloud.
  • Services such as Vercel and Netlify have emerged to alleviate deployment complexities, allowing users to focus on data management instead.

Utilizing Agents for Deployment

  • Once data storage is established (e.g., using PostgreSQL), deploying applications becomes straightforward with platforms like Netlify or Vercel.
  • Users can delegate deployment tasks entirely to agents once they feel comfortable providing necessary access.

Security Considerations in AI Deployments

Managing Security Risks

  • While deploying apps quickly is essential, security remains a critical concern that many overlook; thus, it should be prioritized alongside functionality.
  • The speaker admits they lack specific security skills but acknowledges its importance in software projects.

Recommendations for Security Practices

  • Incorporating security reviews into code assessments is advised; many harnesses now include built-in security review capabilities.

Evaluating Skills and Feedback Mechanisms

Skill Evaluation Challenges

  • Evaluating skills effectively poses challenges due to their complexity; traditional benchmarks may not yield useful insights.
  • User feedback serves as a valuable evaluation tool; active engagement through platforms like Discord helps refine skills based on real-world usage.

Implementing Feedback Efficiently

  • An agent assists in addressing reported issues by recreating problems in a controlled environment before generating pull requests (PR).

Continuous Integration/Continuous Deployment (CI/CD)

Importance of CI/CD Systems

  • Using CI/CD platforms ensures consistent application deployments without manual intervention; changes trigger automatic redeployments.
  • Emphasizing determinism over non-determinism in deployments leads to more reliable outcomes and reduces resource costs associated with errors.

Open Source Contributions and Strategic Programming

Navigating Open Source Projects

  • Contributing to open source has become more challenging due to increased scrutiny over pull requests; quality contributions are now prioritized over quantity.

Developing Strategic Skills

  • As AI takes over tactical programming tasks, demonstrating strategic programming abilities becomes increasingly valuable for aspiring developers.

Improving Codebase Architecture Through Learning

Importance of Reading and Learning

  • The speaker emphasizes the significance of reading books to enhance understanding of software design, recommending titles like "Philosophy of Software Design" by John Asterout and "Pragmatic Programmer" by David Thomas and Andrew Hunt.
  • Other notable mentions include "Refactoring" by Martin Fowler and "Extreme Programming" by Kent Beck, which are essential for anyone looking to excel in AI programming.
  • Experience is crucial, but having the vocabulary to articulate that experience aids in strategic programming, allowing developers to prioritize effectively.

Balancing Features and Performance

  • The discussion highlights the challenge of balancing feature delivery with performance; extensive testing can slow down agents despite ensuring quality.
  • Strategies such as sharding tests across multiple nodes or integrating continuous integration (CI) systems are suggested to optimize performance while maintaining thorough testing.

Effectiveness of Computer Science Degrees

  • The speaker questions the effectiveness of computer science degrees, sharing their own journey from a drama degree to self-taught programming skills acquired in 2015.
  • They advise current students to genuinely care about their work, emphasizing user focus and curiosity as key drivers for success in development.

Hiring Developers: What Matters Most?

Key Qualities in Potential Hires

  • Strategic thinking is highlighted as a critical skill when hiring developers; understanding the environment and using appropriate language is essential.
  • Bottlenecks exist throughout development processes; effective collaboration among team members can significantly increase productivity without overwhelming them.

Attention Over Resources

  • The speaker argues that successful products today depend more on attention given during development rather than just financial investment or resources allocated.
  • Human involvement remains vital for product management and design, particularly in guiding AI agents toward meaningful improvements.

The Concept of Caring in Development

Emphasizing Care in Programming

  • The repeated notion of “caring” underscores its importance; developers must consider what they want their code or product to achieve thoughtfully.
  • This analogy extends to nurturing a child—developers should set standards and expose their creations to beneficial experiences.

Course Creation Insights

Teaching Software Fundamentals

  • The speaker discusses an upcoming course aimed at teaching how to improve agent environments through software fundamentals, scheduled for release on November 9th.
  • This course aims at creating a 'software factory' where routine tasks are automated, enhancing efficiency within coding environments.

Understanding Software Factories

  • A software factory concept involves minimizing human intervention at various stages of production while still ensuring quality control through strategic oversight.

Challenges with Automation

Balancing Automation with Quality Control

  • While automation accelerates software development, it necessitates careful monitoring to prevent chaotic outcomes—a balance between speed and quality is crucial.

Personal Projects: Video Editing Innovations

Developing an Automated Video Editor

  • The speaker shares insights into developing a video editor that automates editing tasks based on recorded gaps during filming—aiming for minimal post-production effort.

Integrating AI into Course Creation

Utilizing AI Throughout Course Development

-The process includes gathering audience feedback via a personal wiki system that informs lesson planning based on real-time interests.

Knowledge Work vs Coding

Complexity in Knowledge Work

-The distinction between coding (verifiable outputs leading to clear results ) versus knowledge work (subjective outcomes lacking definitive measures), highlighting challenges faced when integrating AI into creative processes.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

🔒 Get $200 off your ticket to Zero Trust World 2027, ThreatLocker's learning event, with code ZTWNETWORKCHUCK27: https://ntck.co/ztw 🛡️ Get 71% off Coveron with code chuckcoveron: https://ntck.co/coveron 🎥 Check any video before it fools you. Run suspicious clips through Bitdefender RealCheck to see if it's a deepfake meant to scam you: https://bitdefend.me/RealCheckNC I can code anything with AI now, but I can feel the limits, so I sat down with Matt Pocock (the skills guy, and the creator of Total TypeScript) and had him show me how he actually builds software with agents. AI is great at tactical programming and terrible at strategic programming, and Matt says that strategic part is your job. He ran his Grill with Docs skill live on his own video editor, told me why he keeps Opus 5.5 on medium effort, and walked me through his whole loop: grill, spec, tickets, sub agents in worktrees, code review, retro. In this video you'll learn how to get aligned with an agent before it writes a line of code, how to keep your context in the smart zone, how to review AI code by merge danger instead of line by line, how deep modules and feedback loops let you trust your agents, and what a new developer should actually learn right now. Whether you are vibe coding your first app or you have been shipping code for a decade, Matt kept coming back to one word. Care. Join the NetworkChuck Academy!: https://ntck.co/NCAcademy RESOURCES / LINKS: 🛠️ Matt's skills (Grill with Docs, Implement Spec, Teach and more): https://www.aihero.dev/skills 💻 Matt's skills on GitHub: https://github.com/mattpocock/skills 🎓 AI Hero, Matt's AI coding courses: https://www.aihero.dev 🌐 Total TypeScript: https://www.totaltypescript.com BOOKS MATT RECOMMENDS: 📖 A Philosophy of Software Design, by John Ousterhout 📖 Domain Driven Design, by Eric Evans 📖 Working Effectively with Legacy Code, by Michael Feathers TIMESTAMPS: 0:00 - Do you still need to learn a programming language? 0:54 - Who Matt Pocock is 5:03 - Tactical vs strategic programming, and why vibe coding wrecks code 12:35 - Live demo: Grill with Docs 25:18 - The smart zone and the dumb zone: write a spec first 34:35 - Sub agents in worktrees, and code review 44:52 - The trust ladder: tests, types and feedback loops 52:31 - The starter stack and deep modules 1:01:01 - Improve Code Base Architecture, live 1:08:15 - What you still need to learn 1:14:11 - Where to host your app, and deploying safely 1:26:38 - Open source in the age of slop PRs 1:34:41 - Advice for new developers: school, degrees, hiring 1:44:39 - Software factories and Matt's AI video editor 1:56:49 - Agents for your life 2:01:01 - A prayer for you FEATURING: 👤 Matt Pocock (creator of Total TypeScript and AI Hero): https://x.com/mattpocockuk YouTube: https://www.youtube.com/@mattpocockuk Site: https://www.aihero.dev **Sponsored by ThreatLocker, Coveron and Bitdefender SUPPORT NETWORKCHUCK: ☕☕ COFFEE and MERCH: https://ntck.co/coffee READY TO LEARN?? 🔥🔥Join the NetworkChuck Academy!: https://ntck.co/NCAcademy 📚 CCNA Course: https://ntck.co/ccna FOLLOW ME EVERYWHERE: Instagram: https://www.instagram.com/networkchuck/ X/Twitter: https://x.com/networkchuck Facebook: https://www.facebook.com/NetworkChuck/ Join the Discord server: https://ntck.co/discord Some links in this description are affiliate links. If you buy through them, I may earn a small commission at no extra cost to you. #sponsored #aicoding #claudecode #softwareengineering