Home > software engineering > Buffalo buffalo buffalo buffalo …

Buffalo buffalo buffalo buffalo …

January 16th, 2009 Leave a comment Go to comments

Today I had a programming experience akin to the grammatically correct sentence “Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.”

I’m working on a DSL that has values, which probably should have been called elements instead. I say this because I had to add a value keyword to the language which, of course, entailed a class named ValueValue. See where this is going? I knew things had gotten out of hand when I wrote this line of code:

    ValueValue valueValue = (ValueValue) value;

Yipes. Maybe this is why some think naming constructs is the hardest thing about programming.

  1. No comments yet.
  1. No trackbacks yet.