Chapter 3. Writing a chat application

This chapter covers

  • Asking the user for input
  • Creating a command-line interface
  • Parsing and generating JSON
  • Transferring data over the network
  • Using and creating modules

In the previous chapter, you learned the basics of the Nim programming language, including the syntax, some of the built-in types, how to define variables and procedures, how to use control-flow statements, and much more.

In this chapter, you’ll build on and solidify that knowledge by developing a fully functional chat application. You’ll also learn many new concepts that are essential to the development of certain applications. In particular, you’ll do the following:

  • Build a command-line interface, which can be used to ask the ...

Get Nim in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.