Improving source code readablity
Posted: Wed May 16, 2007 11:57 am
Having spend a fair amount of time going through the source code making changes to the way the mysql statements are run, I have come to the conclusion that the source code for vicidial could really use cleaning. I am sure this has a lot to do with the time that Matt does not have to spend on that. There is however, for the perl scripts at least, a nice program called perltidy that does a fairly good job at it. The default options configure the code to be inline with the perlstyle specifications. When I ran it just now against AST_update.pl the only thing that it did to the readability that I did not like was it indented some of the comments to the wrong spot. I have not tested if the resulting code runs properly but I see no reason why it shouldn't.