Programming as a medium for Artists

I’ve come to the conclusion that what type of programming language you use affects the way that you think, and consequently what type of expression you are able to make.  I’ve been switch between two languages with some similarities but quite different underlying philosophies.

C++ takes the philosopy that if the programmer is forced to formally defined everything as much as possible and be very specific (and explicit) about how these quanitites will be used, with a compiler that rigidly enforces these rules - then the code object is much more likely to work in a wide variety of circumstances.

Python on the other hand is only pedantic about being neat and readable (code is structured by consistent indentation).  Objects aren’t typed, and can be “cast” (changed type) very freely.  The syntatical constructions are minimal, and code is typically 6 times shorter than C or 3 times shorter than C++.  One of the things I love about Python is the vast array of modules for specific tasks that come with it or can be easily added to it, with python setup.py install - modules to typeset a page, talk to yahoo, use a vision processing library, if you can think of a need - it seems to exist.

C++ is much faster though and does produce much more reliable code, you just have to know what you are trying to do and how you want to do it.

What I’ve found is that my projects have three phases:

  1. Engineering - often producing a very specific peice of code which needs to have high performance, typically doing some numerical integration.  This is a kernel which is usually built first.  Needs focus and patience.
  2. Fabrication -  This is building the structure around the kernel, it involves the house keeping of setting things up, and the logic of deciding what happens on the way.  Usually you find that you need to do some creation or preprocessing of data to fore the software to use.  This part usually starts with quite a vague idea, and then gets added to.  For instance I started with the idea of translating a quote into different languages and then back to english to see what happens.  Eventually this becomes the visualisation system of quote.  Needs coffee and enthusiasm, best to have a clear head, but can be done with passion.
  3. Tweaking I think that this is where a lot of the “art” happens.  By playing around with the final construction, reflecting on what is happeng and trying different parameters , the final work emerges.  Seems best to be a bit tired and relaxed.