Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/stevenfischer/public_html/blog/textpattern/lib/txplib_db.php on line 16
Freedom Dance The Movie : Freedom Dance The Movie : Production Weblog: Yay for metaprogramming!
Liberty Pictures presents Freedom Dance - An Animated/Live-Action Documentary by Steven Fischer and Craig Herron Based on the Extraordinary Sketchbook of Edward Hilbert

Yay for metaprogramming!

Posted on Wednesday July 6, 2005 by John Bintz

( this article’s a bit outdated now, since we’re now running the weblog on Textpattern )

cosblog just got a minor update, due to an implementation issue with this site’s weblog. Since cosblog is built more toward throwing an entry into a folder and letting the entry fall where it may in the weblog, it’s very difficult to keep any order to the entries. So whenever an update was made to a prior entry (which has happened several times), reordering the items required me to reupload not only that file, but also, because of time stamps on the server, all subsequent files. In order. Not fun.

But no longer. Thanks to PHP’s (somewhat rudimentary) metaprogramming support through the use of call_user_func_array(), I was able to add some dynamically called methods to the Metadata plugin object, calls based on the metadata parameter name, to allow manipulation of the core Blogject properties during Metadata processing. The end user can add more methods by extending the Metadata object and registering the new, extended, object in the plugins list. The whole update was a handful of lines of code. Yay metaprogramming!

That last bit, in non-programmer English: The weblog entries are now in order, and will stay in order, regardless of the number of changes to each individual entry. Stay tuned for a new release of cosblog in the coming months.

Back to “Freedom Dance”: Craig sent me a CD chock full of images ready to be colored. I hope to run through a majority of these in the coming days, so that we can keep the production phase on track.

[ Dinner with Paul Sulsky! | In The Coffee House ]

Back to weblog

View articles by: [ Craig Herron | Edward Hilbert | John Bintz | Steven Fischer | All | Archives ]