Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Saturday, July 24, 2010

Playing in Midgard

My old favorite role-playing game, Midgard, is becoming active again after a long time of sleep. Turns are being processed and new adventures are beginning!

It's a measured sort of excitement, of course, because this is a moderated, turn-based game. You send in your turn, and then wait and wait to see what turns out. The last time I was active, I spent months, at a rate of a turn every three or four weeks, getting my clans into position to help with the assault on a city--and then the game master died.

One of the challenges for new players (for old players, too) is that the turn sheet is quite complicated. Up to 30 actions, and each action having as many as five arguments, and the arguments have to be in the right syntax. So I have been building the Midgard Turn Builder to help players with their task:
I'm building it in Flex 4 (Flash Builder), and having a lot of fun learning and using the new functions in that tool.

I have just let the player community know that the Turn Builder is ready for testing. Will let you know how it goes.

Sunday, February 22, 2009

Self documenting code

I have been struggling all day with an odd Flash template for a website. The website owner wants to change the text (not a bad idea, since right now it is just variations on good old "Lorem Ipsum"), and that's what I am trying to do: write new text and then make the site display it where it belongs.

Except this is a funky template. There are almost no comments in the code, or in the XML file I am trying to work with. The functions I have been trying to figure out do not seem to accept variables in the standard way.

I know part of the problem is that I sometimes don't see the obvious. But a LOT of the problem is that the klutz who wrote the template couldn't be bothered to provide any instructions for it. Not any.

I remember interviewing a candidate for a job one time, and I asked what his opinion was on documenting his code, and he said, "I like to think that my code documents itself." Well. I'd like to think that, too; and it would be nice if my code gave me a back massage from time to time. But it generally doesn't do either: it just lies there waiting for you to grok the secrets of its functioning. And if you are not the author (and even if you ARE the author, six months later), it may never reveal its secrets.

How hard would it be to put together a little instruction that says, "Here's the three things you probably want to do with the text. Oh, and before you do them, make a backup copy of everything,"?

Too hard, I guess, for this guy. So he is off sipping his mint julep purchased with the avails of the sale of his crap template, and here I am a day older and not much further ahead.