[ale] coding practices

Richard Bronosky Richard at Bronosky.com
Wed Mar 3 18:09:43 EST 2010


I totally agree with you. If for some reason, they don't want to have
to open both files, you might suggest addind it as a pre-extension to
either of the files. Eg: done.8675309.txt

On 3/3/10, Jim Kinney <jim.kinney at gmail.com> wrote:
> I am having a disagreement with a procedure and am seeking other views.
>
> A non-free app generates a data file from a database function (database also
> part of the non-free app).
>
> A third party application needs to scp that file elsewhere for further
> processing.
>
> The third party wants a "done" file to indicate the app has finished writing
> to the file. That's not needed due to how the app does it's write then a
> move to the final location. No problem to touch a done file.
>
> Third party also wants the total row count in the data file appended to the
> data file.
>
> This is where I disagree. I would far rather put the additional data in the
> done file and not alter the output in anyway.
>
> Granted, adding the row count is trivial (wc -l filename >> filename) and
> that last line will be nothing like the actual data lines. It does make
> reprocessing the data files more complicated as they have to be checked for
> the presence of the row count on the last line before rerunning the import
> process again.
>
> Other views?
>
> --
> --
> James P. Kinney III
> Actively in pursuit of Life, Liberty and Happiness
>

-- 
Sent from my mobile device

.!# RichardBronosky #!.


More information about the Ale mailing list