liveBook · Manning

ChatGPT

As explained in Coding with AI

ChatGPT is a conversational generative-artificial-intelligence service that generates text and code in response to user prompts.

ChatGPT is a conversational large language model (LLM) that generates text and code from prompts. A web chat supports continuing discussions with thread context; CLI and API access provide other ways to interact with it. For software work, it can help draft outlines, analyze documents, generate code and tests, debug errors, and produce documentation. section 1.2.2 section 3.1

Treat it as a fast collaborator, not an authority. Its responses are probabilistic best guesses rather than retrieved, authenticated facts, so the same prompt can yield different answers and confident output can still be wrong. Write thoughtful prompts, supply the relevant context, and verify generated code, claims, and sensitive decisions before using them. section 3.1 section 1.5.1

A practical development workflow uses ChatGPT to move from a rough idea to reviewable starting artifacts:

  • Describe an application in plain English, then ask for architecture, technology-stack options, edge cases, regulatory considerations, and nonfunctional requirements. section 1.8.1 section 3.2
  • Paste a design document and request key requirements; use the result to surface omissions, then make the final decisions yourself. section 4.2.1 section 4.7
  • Generate a first-pass design document or user stories within the ongoing conversation, where prior project context can reduce repeated background. section 3.0 section 3.8
  • Use pasted code and error messages to request unit tests, likely failure points, debugging steps, or diagnostic output to inspect. section 1.8.4
  • Turn methods or classes into API documentation, code documentation, or human-readable instructions, then edit dry prose and check accuracy. section 1.8.5

Designing a practice-test application

Start with a short description of a certification-exam practice app, then ask ChatGPT to identify design concerns and draft architecture. Follow with a focused request such as “Create user stories for this software project.” Later, paste the design document and ask for its key requirements. The generated list can propose a question database, random 35-question selection, and interface requirements; review and refine those proposals before building. section 3.0 section 3.8 section 4.2.1

Generating UI scaffolding

Describe a practice-test flow in plain language and ask for a Mermaid diagram to expose navigation choices. From wireframes, request a shared HTML header, then adapt the result to a Flask layout rather than copying it unquestioned. This is useful for quickly producing ordinary starting code while retaining responsibility for architecture and integration. section 7.3 section 7.3.2

Table 3.1 Time saved by using ChatGPT

Documentation task

Traditional method

ChatGPT-assisted

Time savings

System overview

90–120 minutes

15 minutes

~83%

Technical stack

60 minutes

10 minutes

83%

User stories

120 minutes

25 minutes

79%

Complete design document

6–8 hours

1–2 hours

~75%

Compare estimated drafting time for system overviews, technical stacks, user stories, and complete design documents. The gain comes from refining a first draft instead of starting from a blank page; editing remains necessary. section 3.4

How Coding with AI covers it

How deep it goes
Explains prompt-driven workflows through design, requirements, user stories, diagrams, and HTML examples, while deferring detailed testing and debugging practice.
Examples
Demonstrates a certification practice-test web app with MariaDB, Flask, Vue, extracted requirements, user stories, a Mermaid flowchart, and shared HTML.
What it assumes
Assumes software-development tasks and documents, while teaching ChatGPT interaction through plain-English prompts and review-oriented examples.
What you can do after
Apply it via a conversational interface to produce and refine software planning, code, tests, diagrams, and documentation.
How it connects
Connects large language models, prompt crafting, software design, requirements, user stories, unit testing, debugging, documentation, Mermaid, Flask, and HTML.

Also explained in

Compare how 20 books explain ChatGPT →

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.