1st “real” Julia program

Wrote my 1st “real” Julia program. It reads the android Diaro [Diary type program], one XML file, and outputs Linux Redbook files, many files in the form yyyy-mm.txt containing day entries for that month. Already had a good portion of the program written in Python, but figured this would be a good program to learn about Julia. The biggest, but not only, problem I had was the error messages always seemed to point to the beginning of the main loop containing the problem code If there were 100 statements in the loop that sometimes made it hard to zero in on a specific line. I also tended to think in Python. Another problem was the sometimes necessity for the “global” keyword. It hung me up once even though I was aware of it…”What do you mean the variable isn’t defined? It’s right there!”.

So it goes, the only way to really learn a language is to actually code in it! Not surprisingly these simple early programs take a unreasonably long time. Only after coding in a language a while will you start to “think” in that language. At the same time you begin to develop a collection of programs written in your style to help you more quickly write new programs.