Soon enough, Sunny, Robert, and Eniac were gathered around a small table inside Eniac's house. Sunny held a glass of water that displayed the label "glassOfWater" along with a number: 5.61, which Eniac had said was the number of ounces of water left in the glass. As she sipped, the number decreased.
"So." Eniac gestured towards the book that was laid open in front of him. "This was one of the books I wrote about incompatible types errors. I remember that it was a masterpiece! I included everything: information about the errors, their causes, and how to fix them. And I used pictures of my beloved variapets for examples." He looked sadly at the page, which was blank except for a few lonely words scattered here and there. "But now it's all gone. Even the pictures!"
Sunny hummed in sympathy. "I'm sincerely sorry for your loss, Eniac." She took another sip of water, then pulled out her notebook and pencil.
Robert grunted something that sounded like agreement. "That is unfortunate. But we already knew that all the information on errors is disappearing, didn't we?"
"Right." Sunny drew a two-column chart in her notebook, with the left column titled "Clues" and the right one column titled "Questions." She wrote down "error info disappearing" under "Clues."
"And the information's flying to Spaghetti Code Mountain, right?" Sunny scribbled that down too. "Do we have any clues on who or what's behind it all? Or is text flying around a common occurrence here?"
"No, not common at all. My best guess is someone used a spell to attract the error information." Eniac frowned at the table thoughtfully.
"A spell?"
"Like the ones I used on my variapets for the show. Speaking code with the right intent can help you inflict your will on your surroundings. For example, I used spells to set the variables' values."
"Oh! So that's why you were saying ‘semicolon' and ‘equal sign'? Do you have to say ‘semicolon' every time you cast a spell" Sunny couldn't help but feel that having to say "semicolon" every time one cast a spell was rather cumbersome, but oh well. Rule #5 was to never pass up an opportunity to learn about magic, and she would master the magic of this world, no matter what it took– even learning code.
"Exactly. Semicolons offer an effective way of signifying the end of the spell, although curly braces are used in some cases. Like conditionals. You need to travel along the Conditional River to get to Spaghetti Code Mountain, correct?"
Sunny nodded.
"Here's to hoping it's not polluted with extraneous code again," Robert muttered.
"Oh, come on, Robert. You know Method City has gotten a lot better with its waste management system. Anyhow, Sunny, I have a map here somewhere that shows you how to get from Variable Village to the Loop Factories. From there, it should be a straightforward trip on the Array Train to the mountain." Eniac started rummaging around on the nearby counters. "Not this… Oh, another precious work lost… At least this one still has my variapet photos… Aha!" Eniac turned back to Sunny and Robert, clutching a crinkled and folded piece of paper.
Sunny's eyes lit up. "Is it a map?"
"No, but it is a guide." Eniac spread the paper out on the table.
[Text:
if (temperature > 0 °C) {
Choose the left branch;
Continue until the next fork;
if (the right branch is very polluted) {
Choose the left branch;
…
} else if (the right branch is a little polluted) {
Choose the right branch;
Be careful not to touch the water;
…
} else {
Choose the right branch;
…
}
…
} else {
Choose the right branch; // The left branch is shallower and freezes faster!
…
]
The dots were drawn over folds of paper. Sunny opened one fold to see even more text. "How am I supposed to read this?" she asked, feeling a little overwhelmed by the sheer length of the paper.
"Well, check the first conditional, a.k.a. if statement." Eniac pointed at the first line, "if (temperature > 0 °C) {." "That means that if the temperature is greater than zero degrees Celsius, do whatever is between the curly braces. In this case, you would choose the left branch." He moved his finger to the appropriate line.
"But if it is, in fact, freezing–" Eniac pointed at the "} else {" further down the page– "take the right branch instead."
Sunny stared at the paper, nodding slowly. "Okay, that makes sense. So I just go through the paper, line by line, and follow the if statements?"
"You got it! Make sure to be careful you don't get mixed up between the nested conditionals. You can check which curly braces have the same indentations to keep things clear." Eniac turned to the robot. "Take good care of Sunny, okay, Roger?"
Robert looked like he was about to protest, but eventually he just sighed and said, "Sure, Egbert. When can we leave?"
"Wait!" Sunny cried. "I have one more question. Professor Polly mentioned something about someone from Earth coming here before."
Eniac paused from where he was clearing the glasses from the table. "Ah. That's right. There was a great war between the various lands before… Pythonia, the Republic of C++, Javalandia, the Legacy Islands, and the new upstart nations all got involved."
"Oh? So the quest was to end the war?" That sounded like a classic conflict to Sunny. Why couldn't she have gotten a glorious mission like bringing peace to a fractured land? Although if the villain in this case turned out to be some kind of epic evil spellcaster, that might make up for the lack of glory in tracking down missing information…
"Indeed. Suffice it to say that the conflict was resolved, and we all live in relative peace today."
Sunny nodded thoughtfully. "I assume the hero was able to go back home and have a happily ever after? Tell me, did any time pass back on Earth? Because I don't know how I'll explain disappearing for a week to everyone."
Eniac coughed. "I… do not have the answer to that question."
"Wait, which question?"
The error guardian was firmly looking down at the counter.
Sunny glanced at Robert, her heart sinking. "Robert, did… did the Earthling make it back home?"
The robot buzzed reluctantly. "I mean, he didn't die in battle, if that's what you're concerned about. Presumably he made it home."
Sunny unwittingly crumpled the paper in her hand. "I could be stuck here?" In the fantasy stories she'd read, the protagonists always made it home. Either that, or they didn't have a family back home, so staying in the other land was actually a happier ending… But she had a life back home. She couldn't stay in Javalandia forever.
Robert shrugged uncomfortably. "We can worry about that later. And don't worry, getting you home is in my best interests too– I don't want to be stuck being your personal ambassador/sidekick forever."
Sunny cracked a half smile at that. "Right. Anyways, I suppose the quest should come first." She pushed her worries to the side, distracting herself by wondering if now was the right time to pull a hero pose, perhaps one with a determined "I-will-conquer-despite-any-obstacles" look into the middle distance.
But before she could do anything, Eniac clapped his hands. "Wonderful! Now that that's settled, I can provide you with a sleeping bag, Sunny. The Conditional River flows toward here instead of away, so you'll have to follow it instead of floating down it. Getting to the Loop Factories should take about two to three days."
"Got it, thank you!" Sunny opened her hand and smoothed out the poor guide paper that she'd crumpled, then tucked it into her backpack. She put her notebook and pencil back into her pocket, trying to focus on the upcoming travel down Conditional River instead of the possibility of being stuck in Javalandia.
Points: 3891
Reviews: 3821
Donate