New clear Objective-C

I have come here to chew bubblegum and write code ... and I'm all out of bubblegum.

Thursday, January 31, 2008

The Cocotron on ohloh

I recently ran across ohloh, a networking-y site for open source projects, so I submitted Cocotron out of curiousity, here: The Cocotron on ohloh

The metrics are semi-interesting, amusing and useless at the same time.

Semi-interesting

The lines of codes/comments/blanks graphs.

Amusing

Project cost, $1.3 million, 25 years to develop.

"Very few source code comments". This is actually high considering most of the comments are license text.

Misrecognizing a small percentage of source as "Matlab" code.

Useless

The say they have something which scans all the source files for licenses to present a comprehensive view of multi-license projects, but despite almost all of the Cocotron source files having a generic MIT license in them, ohloh does not pick it up. (This is different than the project profile where I explicitly mark the project as MIT license)

Monday, January 21, 2008

cocotron.org facelift

I recently switched cocotron.org over to a new site I have been chipping away at. There were a few things I knew I needed to do, page generation using a better template system which would help with content organization and fix a big annoyance with the examples.

The original site was done using server side includes with a simple header&footer template. If you've used SSI's you know how extremely limited they are, especially in the older version of Apache my hosting provider is using. I'm sure some people have done amazing stuff with just SSI's, but that is not me. I decided to write a CGI program to generate pages using Foundation on OS X and then get it working on the Linux shared hosting account where cocotron.org lives. One bug fix later in Cocotron it was generating pages on the Linux account. Most of the work was reorganizing the html of the old content, coming up with the new layout and updating some content.

One recurring problem with the examples and building apps in general is that the DLL's and framework resources need to be copied into the same directory as the .EXE in order to run the program. The documentation does describe this, but automating it during the build process would make it all a lot easier. So there is a new program in CDT which fixes this problem called retargetBundle, it does a fast copy, using modification dates, to copy the DLL's and resources as the final build stage. If you have the latest CDT and build an example, it should be ready to run.

Satisfied for now with the page generator I'll be updating the content more regularly and probably work on some new dynamic aspects of the site. This will improve the site and increase the use and testing of Cocotron on Linux.

Labels: