View Single Post
  #13   Spotlight this post!  
Unread 17-02-2004, 10:25
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Autonomous Program Names

I don't think all this obsfucation is too good for actual robot code (in good fun, perhaps, but not for production code). I try to keep my creativity confined to the blissful realm of comments (non-compiled) -- err.. mostly, anyway. If something goes wrong (when doesn't it), staring at watermelons and other fruit all day might not help too much in troubleshooting ... variable names should be descriptive -- e.g., our drive motors last year had the variable name '[lr]chalupa' (for the harder to spell chipahuah ... well, yeah, hence the easier to spell consistently variable name).

With my comments, if you understand why they are there, it is a sure sign you understand the code (well, almost). I was thinking about writing the code in iambic pentameter (or at least composed of iambs more likely) -- but having to end most lines with semi-colon, or the frequent open parentheses, close square bracket, tilde carret, combinations made it difficult. Plus, my comments were added so that non-programming types can enjoy the code and perhaps understand it -- something obsfucation tends to decrease the odds of.

But it does make one ponder. What if shakespeare were a programmer? (Much apologies to my english teacher; I can only imagine how her face must be writhing now, considering such heresy as this.)

(Oh, and to the humour impaired, strict style programmer out there, my tongue is thoroughly lodged in my cheek as I write this.)