Wednesday, February 24, 2016

Next Steps | STDIN | Pipe And Filter

Rosetta Team. When time allows we will provide examples which use a programs standard input stream (STDIN). Most frequently, STDIN is connected with the console input which comes from your keyboard. So, after mastering the exercises in the previous post which provide a simple example of producing output on STDOUT, we can read from the console and write on it also.

Once we understand these operations of input and out in the languages in this Rosetta, we write a program which reads input and writes output. This allows for gathering data from the user, processing it, and then producing results. One can envision this process as pushing information through a pipe, altering it as it passes through filters within the pipe, and collecting the results as it exits the pipe. This notion of conducting pipes and transformative filters is a common architectural pattern found in the everyday computer programming tasks of software engineering.

Happy Coding. Hunt. Peck. Think. We will supply the STDIN examples soon.

No comments:

Post a Comment