AI-Assisted Development

13. AI-Assisted Development#

AI coding assistants now write a large share of new code, which makes reviewing and testing that code a core IS skill. This chapter covers what coding assistants do, how to check AI-generated code, and the development practices that keep people accountable for what ships.

  • Coding Assistants: Completion, chat, and coding agents help at different scales of programming work.

  • Reviewing AI Code: Code review, tests, and debugging catch the mistakes AI-generated code contains.

  • Development Practice: Clear specifications, version control, and human accountability keep AI-assisted work trustworthy.

Chapter Video

A working developer explains how to use AI coding tools well, including where they help, where they fail, and why you still have to understand and review the code.

Everything You Need to Know About Coding with AI // NOT vibe coding (13:15) by ForrestKnight

Hosted on YouTube; property of its original creator, embedded here for educational reference only.

Learning Objectives

By the end of this chapter, you will be able to:

  1. Compare code completion, chat assistants, and coding agents.

  2. Review AI-generated code for correctness, security, and maintainability.

  3. Write unit tests that verify AI-generated functions.

  4. Use specifications and version control to guide and track AI-assisted changes.

  5. Find and fix defects in AI-generated Python code with tests.

Chapter Flow

Glossary

#

Term

Explanation

1

Coding assistant

An AI tool that suggests, explains, or writes code.

2

Code completion

Inline suggestions that finish the code a developer is typing.

3

Coding agent

An AI tool that plans and makes multi-file changes, runs commands, and checks results.

4

Code review

Examining code for defects and quality before it is merged.

5

Unit test

A small automated test that checks one function or component.

6

Test-driven development (TDD)

Writing tests before the code that makes them pass.

7

Regression

A defect that breaks behavior that used to work.

8

Debugging

Locating and fixing the cause of a defect.

9

Specification

A precise statement of what code must do.

10

Version control

A system such as Git that records changes to files over time.

11

Pull request

A proposed set of changes submitted for review before merging.

12

Technical debt

The future cost of shortcuts taken in code today.

13

Test oracle

The independently specified expected behavior.

14

Boundary case

An input near a meaningful behavior transition.

15

Exception test

A check of required failure behavior.

16

Code provenance

The origin and verification history of a change.

17

Acceptance specification

Inputs, outputs, constraints, and required behavior.

18

Precondition

A condition required before an operation.

19

Postcondition

A condition established by successful execution.

20

Diff review

Inspecting the final changed source and supporting assets.

21

Acceptance criteria

Observable conditions required before a change is accepted.

22

Regression test

A repeatable check that detects changed behavior.

23

Parameterized query

SQL that binds data separately from query structure.

24

Dependency verification

Checking that a proposed package exists and fits the required trust and version constraints.