Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Monday, 12 January 2009

Constants in Processing

To save much typing a lot of Processing constants are defined in the PConstant interface, this interface is then 'implemented' by the classes (PApplet etc) that need access to the constants. It occurs to me that if we are writing the book with the intention that students will progress to greater things (ie understanding computer languages) then perhaps we should let them in on the 'secret'? Or should we simply ignore it, since some java gurus (Joshua Bloch) consider the use of interfaces in this way to be bad form (and then there's the int/String vs enum type safety debate to consider).

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2