[cs33211] Re: Another Project 3 Question

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Apr 9 10:59:29 EDT 2009


> The project description says that "you are not allowed to store the data 
> in your program memory between writing to the disk and reading it back." 
> 
> Should the Read() function also handle sending 
> the data to standard output? This is a matter of the Single 
> Responsibility Principle, where the function of Read() is simply to 
> return data from the disk, not both return disk data and output it.

What your program should not be doing is keeping the input data in
memory and then outputting it from those in-memory structures. That is,
you program should write the data to the disk and then read from there
to output.

Otherwise, you are free to structure your program in any way you see
appropriate.

thanks,
--
Mikhail  


More information about the cs33211 mailing list