Bad Example
To encode a simple string, you need to use the+prefix followed by the string contents and a CRLF terminator. You then get a result like+OK\r\n.
Good Example
Simple strings are encoded like this:+<string>\r\nFor example,OKis encoded as+OK\r\n.
This describes how the encoding works. It states facts rather than giving
instructions.
Exceptions
Procedural Content
If the concept is explicitly about how to do something, instructional language is appropriate. For example, a concept like “TCP Servers in Java” is teaching someone how to build something, so “you” language fits naturally:
To accept incoming connections, you’ll need to call serverSocket.accept(). This method blocks until a client connects.
An easy way to remember: “Here’s how X works” is descriptive. “Here’s how to do X” is instructional.