liveBook · Manning

Ai suggestion

As explained in Coding with AI

An AI suggestion is a software-development recommendation or proposed code generated by an artificial intelligence system.

An AI suggestion is a proposed design choice, file structure, code stub, or implementation generated during software development. Treat it as input rather than a decision: apply domain knowledge, retain what fits the project, and reject or revise the rest. section 4.6 section 4.7

Use suggestions productively by keeping the developer in the review loop:

  • Ask for requirements, application structure, stubs, or starting code. section 4.7
  • Compare outputs from multiple AI tools when different perspectives can improve the result. section 4.6
  • Run the generated application, inspect its behavior, and refactor or override suggestions that weaken architecture or maintainability. section 5.3.11

From suggestion to tested Flask code

A coding assistant can provide a starting Flask application with a route returning “Hello, World!”. Running it without errors and checking the resulting web page turns the suggestion into a verified application skeleton, not automatically finished software. section 4.6

from flask import Flask

app = Flask(__name__)

@app.route('/')
def home():
    return "Hello, World!"

if __name__ == "__main__":
    app.run(debug=True)

Inspect the compact Flask implementation that demonstrates how an AI-generated starting point can become runnable code. section 4.6

How Coding with AI covers it

How deep it goes
Moves from proposed requirements and file structures to runnable code, then stops short of removing human review and refactoring.
Examples
Uses prompts, application stubs, a Flask “Hello, World!” route, multiple AI tools, and refactoring of a generated web application.
What you can do after
Build a tested application foundation, evaluate generated alternatives, and revise code for architecture, maintainability, and requirements.
How it connects
Connects requirements engineering, software architecture, code generation, generative AI tools, Flask, and human judgment.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Coding with AI. The section links point to the parts of the book it draws on.