The future foretold, the past explained, and the present... apologized for. -- Organon, Doctor Who: The Creature from the Pit

A Programmer’s Problem Solver

Many years ago, a colleague and I likened programming in C to programming by shoving your hands into a big box of broken glass. All the pieces are there, and you have complete access to them, but they are sharp and pointy and you are on your own; good luck.

So here is a very general programmer’s problem solver:

 

You have a problem. You want to solve it. So…

In C: You solve the problem. Of course, first you’ll have to hand-craft all of your tools, from scratch.

In Assembly: You solve the problem. Of course, first you’ll have to hand-craft the abstract concept of problem-solving, from scratch.

In C++: You think you’ve solved the problem, but in the back of your mind, you’re never really sure if what you solved was the actual problem, or a copy of the problem, and you really just moved the original problem somewhere else.

In Perl: Now you have two problems.

In Java: Now you have a problem factory.

In PHP: Now your problem has a SQL injection vulnerability.

In Javascript: You solve the problem, but the solution only works in Firefox and Edge. Also, Google deprecated a key API so your solution is going to stop working in April 2023.

In Python (according to Python fans): You just “import solution”, it’s easy!

In Python (according to everyone else): You try to “import solution”, but it turns out that “solution” requires Python 3.9 but “problem” has dependencies that haven’t been updated since 2014. Someone tells you that you should really be using a docker container for this.

In Swift: Ha ha just kidding. You can’t solve problems in Swift.

Fiction: Unbent

I was surprised to find I had another piece of this in my head. It’s… Still not great, I think. But I’m trying a new thing where I go ahead and write things instead of agonizing over them in my head for thirty years. So here.


Wind.
One branch bends.
Unbroken.
Another breaks.
Falls.
But remains
Itself.

Dorothy crumpled the paper and threw it in the trash. Then she took it out again and carefully flattened it. She sighed.

“Knock-knock.”

She looked around, surprised. “Gabe?” she said to the empty room.

He stepped through the closed door. “How did-” she tried. “What did-” she tried again. Every question she wanted to ask felt stupid in light of the material reality of him. Or unreality, as the case may be.

“How did it go?” he asked. “The audition. That was yesterday, right?”

She wasn’t done with trying to interrogate him, but she let him distract her anyway. “Understudy,” she said. “Just as much work but less scary. They cast Anna, though. Rebecca Gibbs. I guess it turns out she always wanted to be an actress? She’s not ant good at it, but she’s popular.”

“Congratulations, I think,” he said. He seemed slightly distracted, looking around her room with a curiosity Dorothy couldn’t quite parse. He walked over to the window and looked out. “Nice view,” he said. “I like the tree.”

“Why did you knock?” she asked.

He looked down at her desk. “I thought it might make you uncomfortable if I just bamfed into existence in your bedroom,” he said.

She blanched at the thought. “So you can just do that, show up here whenever you want? What if I was naked?”

He blushed impressively. “I wouldn’t. We have… There’s procedures. Your privacy and autonomy are completely protected. Mostly. As much as we can. It’s complicated. And mysterious. Sorry. Did you write this?”

He was looking at the poem. Suddenly self-conscious, she reached through him to snatch it off the table, crumpled it again, and threw it in the can. “What are you doing here, anyway?”

“I came to check on you. Make sure everything worked out okay. I know I got you in some hot water the other day. That was careless of me.”

She looked away. “Anna still thinks I’m weird, but I’m not sure if that’s a bad thing. And then there’s her friends.”

“Oh?” Gabe asked with a tone of surprise that wasn’t entirely convincing.

Dorothy rolled her eyes. “Don’t play dumb. Someone brought a six-pack. And they got caught. It would’ve been pretty bad for me and Anna if we’d been there. You knew.” It wasn’t a question.

“It’s complicated,” he said. “Nothing’s set in stone, but some things have more wiggle-room than others.”

“How?” she asked. “And why me? What’s it to you?”

“It’s…” he struggled.

“Complicated?”

He sighed and started pacing. “Thing is, most people’s lives just sort of work themselves out. There’s nature and nurture and genetics and free will and externalities and internalities and a million little nudges and mostly it all just balances out and people sort of tumble into the space the world has made for them, and that’s fine. It’s like… Skiing.”

“Skiing?” Dorothy asked, lost.

“When you’re halfway down the mountain, maybe technically you could change your mind and go somewhere other than the bottom, but it would be a lot of work, and you’d probably fail, and besides, the bottom was where you meant to go in the first place.”

This did not help Dorothy make sense of what he was saying.

“But anyway. There’s a flow and most people just go with it. But some people more sort of… Don’t. They’re slippery. It’s like skiing and… Actually that metaphor doesn’t go anywhere. The point is that you’re different. You’re… Slippery.”

“Why?”

Gabe shrugged. “Don’t know. It’s complicated. And this time I mean that it’s so complicated that I don’t understand it either. Some times those million little nudges line up just so, and instead of you falling into the space the world left for you, the world falls into the space you left for it.”

She shook her head. “What is this, some kind of Campbell thing? I’m the chosen one and I have a great destiny to fulfill?”

He raised his hands defensively. “No, nothing like that. Kinda the opposite. You don’t have a destiny. You’re a free agent. That’s why I’m here. When a person could do anything, there’s some incentive to make sure they do the right thing.”

“What does that mean?” Dorothy asked. “What kind of incentive? What’s the right thing, and why does anyone care about me? I’m nobody.”

Gabe took a quick, sharp breath. “You’re not nobody. You could do so much. You could change the world. So…” he looked around uncomfortably. “Do a good job at it, maybe?”

“How?”

He smiled. “Just keep doing what you’re doing. You’re a good person. You just need the occasional nudge to make sure you don’t forget that.”

The smart speaker chimed out a dinner bell. “This isn’t the end of this conversation,” Dorothy said.

“I didn’t imagine it would be,” Gabe said with a smile. “Have fun. Live your life. Learn your lines. You’ve got this. And if you don’t, I’ve got your back. In a vague and mysterious sort of way.”

He stuck one hand in his pocket and gave her a jaunty wave with the other one, then popped out of existence. Dorothy waved her hand through the space he’d occupied. This was going to take a lot of getting used to. With a deep sigh, she headed downstairs to dinner.

Ten seconds after the door closed behind her, Gabe winked back into existence. With a guilty glance over his shoulder, he stepped to the wastepaper basket, reached down, and very carefully picked up the crumpled poem.

Fiction: The Saints and the Poets

This is a piece of a plot bunny that has been bouncing around my head for about thirty years and I am finally willing to commit a bit of to written form. You’d think it would be less clunky after all those years, but I guess if I could make it flow quite right, I would’ve written it down a lot sooner. It’s mostly inspired by High Concept Sit-Coms, so I tried to keep it shallow and, despite tremendous mental pressure, avoid profanity.


“Will you please trust me on this? Don’t go. It’s a bad idea.”

“Why would I trust you?” Dorothy asked. “I’ve known you for all of ten minutes. She’s family. Technically.”

“Yeah, but which of us seems more inherently trustworthy?” Gabe flashed an exaggerated smile.

“Well what do you have against it? We’re just going out to have some fun. You’re acting like they’re plotting some kind of heist. Do you-” she shook her head. “Do you know something?”

“I can’t tell you that,” Gabe said. “But I would really like it if you trusted me. Trust is important, don’t you think?”

“But this is weird. You know that, right? That what you’re asking is weird? I’m being asked to hang out with, ahem, The Cool Kids, and you, who I don’t know from Adam, is telling me assassinate my social life for mysterious undisclosed reasons and–” Dorothy felt the sudden weight of unwanted attention and looked around. “Why are people looking at me?”

Gabe glanced around, nonplussed. “Oh,” he said. “You didn’t realize. Sorry. I thought you did. They think you’re talking to yourself.”

“What?”

“Yeah, they can’t see me.”

She set her water bottle down. “What are you talking about?”

A guilty expression spread across Gabe’s face. “Okay. This isn’t going well. I can’t actually explain, but I can show you.” He paused and held up his hands in a warding gesture. “You should brace yourself so you don’t overreact.”

He held out his hand in front of him, then slowly moved it toward where she’d set her bottle on the table. He extended one finger toward it as if to push it over. Then, in a slow, smooth motion, passed his finger straight through the bottle.

Whatever bracing Dorothy had done wasn’t sufficient. She let out a little yelp, drawing even more unwanted attention before she could stifle herself. Through clenched teeth, she whispered, “You’re a ghost?”

“I’m not a ghost.”

“Then I’m crazy.”

“You’re not crazy. I can prove that. Maybe. But, um…” he nodded over her shoulder.

Anna. Dorothy hadn’t thought there was still a “worse” things could get. “Oh. Um. Hi?” she tried.

“I’m trying to give you the benefit of the doubt,” Anna said. “But ‘my step-sister is a schizo,’ isn’t a good look for me.”

With a sour expression, Gabe said, “Ooh. Ableist much?” He stood up and walked over to Anna. “Don’t get me wrong, you’re really hot. But that’s not a good look.”

“I.. Uh…” Dorothy struggled.

“Drama club,” Gabe said.

“Drama club,” Dorothy repeated, surprised.

“Drama club?” Anna parroted.

Gabe walked through Anna and another table of students and pointed at a poster on the wall, too far away for Dorothy to read. “Audition,” he called out. “Thursday.”

Having no other choice, Dorothy decided to run with it. “Drama club,” she said again. “There’s an audition Thursday. I… I thought I’d try out. I was practicing.”

Anna’s eyes narrowed, suspiciously. “You? Drama club? Isn’t that a little ESFP for you?”

“I’m… Broadening my horizons.”

“What’s it for? The audition?”

“Our Town,” Gabe shouted. “Be right back.”

Dorothy glanced over just in time to see him futz with something in his hand, then he simply vanished. Anna looked her up and down, lingering on her pinafore. “Okay, fine, I find that broadly plausible. Show me.”

“Excuse me?”

“Show me what you were practicing.”

“Why?”

Anna rolled her eyes. “Just do it. Let me see how big of a fool you’re going to make out of yourself, so I can decide whether or not to disown you.”

“Um…” Dorothy stammered.

Just then, Gabe reappeared behind Anna, walked through her, and held up a script. “Eyes here,” he said. “Forget everyone else, just look at the script, don’t think about the extent to which your entire social existence is in existential peril.”

It was more than she could process, so she did as she was told. “​I can’t,” she read. “I can’t go on. It goes so fast. We don’t have time to look at one another. I didn’t realize.”

She closed her eyes, took a deep breath, opened them. “So all that was going on and we never noticed. Take me back – up the hill – to my grave. But first: Wait! One more look…”

A hush fell around her as she recited Emily’s goodbyes to Grover’s Corners, but Dorothy stayed focused on the paper in front of her and didn’t notice. Even Anna seemed hypnotized by her delivery, though Dorothy couldn’t see it with Gabe between them. “Do any human beings ever realize life while they live it-every, every minute?” she finished.

“No,” Gabe said, filling in the corresponding part, “The saints and poets maybe. They do, some.”

“I’m ready to go back.”

When Gabe lowered the script page, Dorothy finally noticed that every eye in the cafeteria seemed to be on her. She blushed and reflexively brought her hand up to her face. “What?”

“Wow,” Anna mumbled. She struggled for a second and had to physically shake herself to recompose. With exaggerated nonchalance, she said, “Yeah, that’s passable I guess. I, uh. Tell you what, I’ll go with you. It’ll look good for college, right? Wait. Thursday? Crap. Never mind. I’ll take care of it. I got to go find Jimmy.” She turned and stalked away.

The rest of the room slowly returned to normal business and Dorothy turned back to the lunch table and sat back down, befuddled by what had just happened. “What was that?” she whispered through clenched teeth.

“They liked it. You impressed them. You really don’t appreciate how gifted you are,” Gabe said. “You’ve got a power in your words. Someday, they’ll be your own words, but Thornton Wilder will do for a start.”

Dorothy pieced it together. “Thursday,” she whispered. “You committed me to something Thursday. Anna too. So we can’t-”

“There,” Gabe said, smugly. “See? No social assassination required. I got your back.”

“What are you?”

He cringed. “Really can’t explain. If it helps, just think of me as your guardian angel.”

Fiction: To Tell The Tooth

I didn’t actually intend to post this, but it’s my birthday and I don’t have anything better to post, so here you go.


Sprix picked at the dirt around the base of a tree, found a twig, and gave it an experimental bend. It snapped. She discarded the pieces and poked some more. “I don’t believe you.” Cam said.

Sprix flexed a new twig and grimaced as it folded easily. She cast it to the ground. “I manifested ex nihilo before your eyes,” she said. “So either I am what I say I am or you’re having a psychotic break, and… Oh.” Her expression suddenly changed from frustration to sympathy and she put her hand on Cam’s shoulder. “I know it’s been a rough year. But you’re going to be okay. You’re not going crazy; you can trust your senses. You can trust me.”

Cam shrugged the hand away. “I can trust the weirdo in the theme park costume who says she’s a fairy godmother? Sure.”

Sprix moved on to another tree and started poking through leaves. Cam reached up, snapped the tip from a low-hanging branch, and offered it to her. Sprix slapped it out of her hand. “Don’t do that!” she said. She cast a quick side-eye toward the base of the tree and, through clenched teeth, said, “It has to have fallen of natural causes. Gift. Of. The. Forest. Gift. How’d you like it if I snapped off a bit of you for alchemical purposes?”

Cam took a step back. Sprix had not done anything so far that read as even mildly threatening. In fact, she gave off an aura of safety that defied explanation. It took effort to think about the fact that she was certainly dealing with someone who was… unwell. Who she’d followed out into the woods. Alone. Without witnesses. What was she doing?

“Besides, I wasn’t always. I’m working my way up. Used to be a tooth fairy.” She crouched by another tree and toyed with several more sticks.

“I’m sorry, no,” Cam said. Something was holding her back from reacting as strongly as she intellectually knew she should, but this was still a bridge too far. “There’s no such thing as the tooth fairy.”

Sprix looked up at her with a squinting look of condescension. “Then what happens to the teeth?” she asked. She dropped most of the sticks she was holding and continued turning the others over in her hand.

“No, really. I’m not giving you this one. I have children,” Cam said. “It’s the parents. It’s me. I’ve done it. There’s no magic elf-”

“Fairy,” Sprix interjected with a surprising venom in her tone.

“Fairy,” Cam repeated, hands up. “They go to sleep, we sneak in, we take the tooth, slip a couple of bucks under the pillow. No magic. No,” she cleared her throat, “fairy. It’s us. We take the teeth.”

Sprix seemed pleased with the stick she was holding and stood up. “Then where are they now?” She pinched the twig between her fingertips and gave her wrist an experimental snap. The twig slipped from her fingers and hit Cam in the chest. Sprix cringed.

Cam felt her face fall. “What?”

“The teeth. Where are they now? Two kids, forty teeth. Where are they? You didn’t just chuck them in the trash, I assume?”

“I, uh…” The question didn’t just catch her off guard. Thinking about it caused her active distress. “I…”

Sprix smirked. “I’ll tell you. Just like you said. They go to sleep, you sneak in, you take the tooth, slip a couple of bucks under the pillow. Then you go about your business, get distracted, set the tooth down, probably in a drawer on the nightstand, tell yourself you’ll find a place for it later… And that’s the last you ever think of it, because some, ahem, weirdo in a theme park costume slips in and takes it when you’re not looking.”

“What about the money then?” Cam asked in spite of herself.

Sprix had turned back to the leaves and detritus, looking for a new stick. “The nice thing about money is that it’s fungible. Would you even notice if there was an extra quarter in your purse the next morning? Would you question it if a dollar bill randomly showed up in the lint trap the next time you did a load of laundry?”

Cam tried to process the question, but her brain didn’t want to. “I… Um…”

Sprix tried more sticks with increasing frustration. “It’s okay. I get it. Your mind is blown. That’s all right. I’ll erase your memory when I’m done and you can go back to thinking you’ve got a secret horde of milk teeth you’ve somehow misplaced and that isn’t even slightly weird or creepy.”

That snapped her out of it. “Wait, what?”

“All part of the service.”

“I don’t consent to that,” Cam said.

The words stopped Sprix dead in her tracks. “You will,” she said. When she saw Cam’s expression in response, she backpedaled. “Sorry. That wasn’t meant to be a threat. Well kinda. Actually no, definitely not a threat. Thing is, you can feel it, can’t you? Your brain doesn’t like this. Most humans aren’t wired for exposure to magic. Either you will adapt, or it will get worse, and most people don’t adapt. Eventually you will decide that it would be more comfortable to go back to living in a world that behaves according to rational, scientific laws, and you’ll be okay with me editing myself out of your memory to make that work. Simple.” Then she head-butted the nearest tree in frustration. “Or it would be if I could find some decent wand-wood. Chestnut is great, but the American chestnut tree has been functionally extinct for close to a century.”

Then Cam surprised herself. Her brain didn’t like the magic stuff. That fit. But it could grab on to a simpler, rational, concrete, idea. Like the fact that the American chestnut tree had been functionally extinct for close to a century. “Actually, I can help with that.”