liveBook · Manning

Comment

A comment is text associated with content or a subject that provides an annotation, explanation, or response.

How 2 Manning books explain it

The Well-Grounded Python Developer: How the pros use Python and Flask

A comment is a user-authored response associated with a blog post, other content, or another comment in a threaded discussion.

How it is used
Enables registered users to respond to blog content and to existing replies in a discussion hierarchy.
How deep it goes
Works through storage, recursive retrieval, rendering, and creation; limits the example interface to two reply levels.
Examples
Uses a two-level post-and-reply tree and a form handler that saves a child post before redirecting to its root.
What you can do after
Apply it via SQLAlchemy and Flask to retrieve threaded comments and save new replies beneath their parent posts.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains comment →

Learn Haskell by Example

A comment is non-data text embedded in a file format and delimited according to that format's syntax.

How it is used
Skips non-data annotations while parsing PNM headers.
How deep it goes
Implements comment recognition and recursive skipping alongside whitespace, without treating comment contents as data.
Examples
Uses percent-prefixed PNM header comments consumed through a newline by an Attoparsec parser.
What you can do after
Build it from scratch with Attoparsec by recognizing comments and ignoring them between PNM header fields.

Read how Learn Haskell by Example explains comment →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.