Coding day and a lucky find

I wrote some truly horrible code today which I’m embarrassed will see daylight, but at least it works now. Getting the trains to report the time till arrival accurately posed some weird problems. There is surely a less clunky way to write it. BUT IT WORKS and I never want to think about it again. (Until I do, then will refactor mightly.)

Briefly went out in the sun and cold to do an errand and feed yatima’s cats. On the way home there was some pretty nice free furniture out on the curb. I have been meaning to replace the kids’ desk with a nicer one (which means a bunch of measuring and a time consuming errand and a conumdrum of getting a desk delivered). Their old desk is a very janky thing that is not quite a desk. Maybe it was a side table? It has a shelf underneath that stops you from putting your legs properly under the desk. And I had to repair one side of it with duct tape. But it was free and was on the sidewalk a block away.

And!!!! Now!!!! Another free desk just across the street from our house, a much better one, solid, sturdy, with one small drawer, very desky, just the right size (bigger) and painted a pleasant, not too childish, bright blue. It is in good shape but not so nice that you would need to worry about messing it up. As you may guess I got Danny to carry it with his mighty muscles across the street and then we both shoved it up the stairs. It looks super nice now. As usual, I forgot to take a “before” pic.

My feeling of triumph! The desk is good! I have arranged it beautifully in the room! I hope the kids will be impressed with me but of course mostly I just hope they like it and use it.

Danny has been livestreaming on Code Therapy a bunch today talking with someone named lambda malformation and some other …. probably Lisp nerds…. It’s soothing and he doesn’t seem to mind if I suddenly start cursing my screen or talking to the cat in the middle of his livestream.

My game is getting a little more fun and playable. I’m filling out 24th St. Mission station and its surroundings and I’ve started on 16th. Some of the puzzles are now in place. Next I might add conversations or more complex behavior with the NPCs (currently a tamale lady (not THE tamale lady), a flower seller, a street preacher, and a raccoon.

blue desk in a little room

Happy Discardia!

I did some decluttering today, setting out some clothes and books on the free shelf outside and throwing a bunch of things away. There are also several bags of things to go elsewhere (to friends, to my sister, birthday presents for birthdays coming up, stuff that needs some sort of errand to deal with it) so that those things aren’t on the living room floor.

From underneath the bed I hauled out a box the size of a couple of shoeboxes full of junk that had been cleaned out of drawers probably years ago. More than half of it was trash and the rest is now put away.

Cleaned out under the kitchen sink where it smelled funny and was full of junk. Cleaning supplies are more organized now. Half the paper bags stashed down there are now recycled.

I also ironed my handkerchiefs, which I find oddly satisfying, and laid them neatly into a tiny cherrywood drawer.

Huzzah!

Danny just came in, looked around, and went, “Holy shit! Low level defragmenting, reformatting!” (Very true. That’s exactly what it’s like.)

In game progress, I added a ticket reader and BART ticket. The ticket is a device, which may seem odd, but swiping it turns it on and off to signify if you’ve paid or not. There are “switching on” and “switching off” actions in Inform7, and they’re separate, so they needed some extra logic to handle a new more generic verb (swipe) that flips the state from one to the other, depending, while not giving any weird extra messages about it.

So many good ideas in the last few days – I have a big file of ideas to stuff into the story and its infrastructure.

It’s helping to scope out issues to work on in github, with milestones, so that I can bite off small things to work on when I’m tired or only have half an hour. The complicated stuff has to wait for the weekend.

While reading the Standard Rules defined in Inform7 I came across this amazing line of code:

The darkness witnessed is a truth state that varies.

Kind of spooky, isn’t it?!