close
The Wayback Machine - https://web.archive.org/web/20231125013948/https://summa.blogspot.com/search/label/Programming
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Saturday, July 3, 2010

My new approach to coding

I have a large function to write over the weekend. When it's finished and a co-worker gives the all-clear after his tests are complete, I'll unleash it on the documentation notebooks for the upcoming version of Mathematica and let it do its thing. My function will store blobs of information in each notebook, and my co-worker's function will use those blobs to build other parts of the notebooks.

This time around, though, I'm doing something a bit different that's working remarkably well so far. I started with an empty function template and simply wrote the function's story in sentences and paragraphs and bulleted lists, from start to finish, as if I were describing it in detail to a technically-minded co-worker. In a second pass I broke apart the prose into smaller sections and then just translated each idea into Mathematica code. I've left the prose in there as free-form commented areas to act as documentation for my future self, who will have forgotten all about this code in a couple of years.

Tuesday, July 14, 2009

My latest obsession

I'm writing a program to calculate days on the 1962 liturgical calendar, the one used for the traditional Latin Mass/Extraordinary Form/Tridentine Mass/whatever you call it. This time I'm documenting everything as it happens - breathtaking LIVE coverage of a fat guy typing at a computer!

I've been down this road before back in 2002 or so when I wrote a similar program in emacs lisp for the current liturgical calendar. This time I'm writing in Mathematica, and I'm an older and slightly wilier programmer.

Thursday, February 5, 2009

Practically giving it away

Mathematica Home Edition is now available for only $295.00, and it's not some crippled toy version - it's the whole shebang. See http://reference.wolfram.com for the complete language documentation and see http://blog.wolfram.com for neat things you can do with it.