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 generative AI service that responds to prompts with text and code. For software work, it can help turn an idea into a design, draft documentation, generate tests, and suggest debugging steps. A conversation can retain context within a thread, allowing follow-up requests to build on earlier work. section 1.2.2 section 1.8.4

ChatGPT generates responses from patterns in language rather than simply retrieving stored answers. The same question can produce different responses, and a confident answer can still be wrong. Verify factual claims and generated code before relying on them. section 1.5.1 section 3.1

Plan a small TODO application

Start with a concrete request: “Act as a software architect skilled in software design and development. I would like to create a TODO application where I can add a list of tasks to complete and then mark them as completed. I would like to build this with MariaDB, Flask, and Vue. How can I get started?” A response can outline the database schema, Flask CRUD routes, Vue components, API connections, and testing. Use that outline as a starting point, then choose and refine the design yourself. section 1.8.1 section 4.7

Use follow-up prompts to move from an outline toward implementation:

  • Ask about edge cases, regulatory considerations, or nonfunctional requirements to expose design blind spots. section 3.2
  • Paste a design document and ask for its key requirements; review the resulting list against the document. section 4.2.1
  • In the same project conversation, ask ChatGPT to act as a product owner and create user stories. section 3.8
  • Describe an application flow and request a Mermaid diagram, or ask for a shared HTML header based on wireframes. section 7.3 section 7.3.2

Treat generated documents and code as drafts, not finished work. Review documentation for accuracy and tone, test code, and keep architectural decisions with the developer. When debugging, include both the code and the error message to get suggestions for where to investigate. section 1.8.5 section 1.8.4 section 4.7

How Coding with AI covers it

How deep it goes
Explains prompt-driven design and development workflows with generated artifacts and review guidance, alongside a brief account of probabilistic text generation.
Examples
Demonstrates a TODO application plan, requirements for a practice-test application, and a Mermaid flowchart.
What you can do after
Apply ChatGPT to draft and refine software artifacts, then verify its output and make the final development decisions.
How it connects
Connects conversational prompting with requirements extraction, user stories, software architecture, testing, and debugging.

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.