Filters and Code Repetition

| | Comments (0) | TrackBacks (0)

Some notes for my own, and possibly your, reference:

If you write code that takes an input file and an output file on the command line, you should make it act as a filter taking either - as an input or output file, or just operating in the abscence of these command line arguments. (Obviously some things, I'm thinking cp here, are silly to have as a filter.)

Also if you're using a Makefile for something you shouldn't try to autogenerate whatever the output file name is in your make invoked code. Let make do this since it generally has to anyway to find a target file name.


0 TrackBacks

Listed below are links to blogs that reference this entry: Filters and Code Repetition.

TrackBack URL for this entry: http://blog.sf.dasbistro.com/mt-tb.cgi/12

Leave a comment

About this Entry

This page contains a single entry by Sam Phillips published on September 12, 2005 1:29 PM.

Space Zorro'ing was the previous entry in this blog.

More filtering is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

February 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29  

Pages

Powered by Movable Type 4.1