Automation of casting matrices - Sally's Journal
Automation of casting matrices|
This is a nice problem. I imagine you would want a two-stage process. The first stage parses as much automatically as it can, producing some sort of summary. You would then most likely need to manually review the summary to tweak for the edge cases that you just won't be able to get automatically.
The second stage then takes the summary and outputs all the statistics that you require. Because you are going to (try) to guarantee that the summary is correct before being turned into statistics, it makes the writing of this second phase easier as you'll be working within much tighter bounds.
As for programming language, the answer here is "whatever one you're most comfortable with". I don't do programming language arguments so I won't say any more unless challenged. :-)
|Date:||October 19th, 2009 09:53 pm (UTC)|| |
Advice would be nice, as the only languages I have used are C, Matlab and BBC BASIC, and although I don't know the right answer I'm fairly certain they're the wrong answer.
OK, I'll proffer advice, but I'll be flamed by all your friends because I'm a Windows person and never use Unix. :-)
None of the languages you've stated are ideal for the job, although you'd certainly be able to do it with C or BBC BASIC - just that there's a lot of grunt work to go with it.
Python would be good - nice scripting language with lots of built-in and third-party library functions to help you manipulate strings. If you fancied learning a new language anyway, Python would be a nice choice. (Or Russian if you're planning on going to Moscow anytime soon.)
I tend to reach for C# but that's because it's what I do for a living and so I'm very familiar with it.
I'm sure on the Unix command line you could do all the tasks with a combination of grep and a spot of sed or awk, but I'm sure someone else will advise here.