Sandboxes are isolated computational environments used for testing or security. For example, a testing sandbox may be a clean installation of a particular operating system and configuration, allowing you to control for the testing environment. Using a sandbox allows you to run code in an environment different from your development environment. Further, a sandbox protects the rest of the computer from potentially harmful effects of the program.
Ferr had barely slept all week. She was too excited. She had been waiting for this day for years. Today was the day that Ferr would finally learn to use her magical powers.
As the youngest fairy in a very large family, Ferr had always been jealous of her older siblings as they flew about and cast various spells. She longed for the day when she too could turn unsuspecting travelers' shoe-laces into worms. That was one of the best parts of being a fairy. Of course, like all young fairies, Ferr had never been permitted to venture outside of the safety of the magically protected kingdom. But, she had heard stories, and they sounded wonderfully fun.
Ferr arrived early to her first lesson. The first hour of the lesson was classroom instruction that reminded Ferr of her "History of the Fairy Kingdom" class. It was horribly dull. The instructor lectured in front of the class in a monotone voice about the origins of fairy magic and the importance of safety. Ferr had heard all of this before. She wanted to get onto the actual magic.
After the introductory lecture was done, Ferr's mentor took her to a practice room buried in the back of the school building. The room was nothing like Ferr had expected. It was a large, but simple, concrete room. It was furnished with a simple wooden table, two plain wooden chairs, a bright plastic beach ball, and a small potted flower.
"What is this place?" asked Ferr. She looked around nervously.
"It is a sandbox." responded her instructor as though that fact should be completely obvious.
"A sandbox?" asked Ferr. She had never heard of this before.
"Yes. You didn't think that we would let you try your magic in the middle of the kingdom, did you?"
"No… but… This does not look magical at all."
Ferr's mentor laughed. "Of course it is not. It is an ordinary room. You supply the magic."
"But, it could at least look magical." protested Ferr.
"The room is simple. That is the important part. You'll see."
Ferr was not sure what the last statement meant, but she let the topic go for now. She followed her mentor over to the center of the room and sat in one of the two chairs.
"First," her mentor began. "You are going to change the color of these flowers from blue to red. Do you know how to do that?"
Ferr nodded eagerly. She had seen her siblings practice changing the colors of flowers all the time. She cleared her mind and tried to concentrate. She gave her wand a quick flick at the flowers.
A large splotch of dark red appeared on the opposite wall. Ferr gasped. She had missed the flowers and stained the wall!
"Oh no!" she cried.
Her mentor did not appear upset in the least. "Try again, but keep your wrist tighter." she instructed.
"But… the wall?" asked Ferr. She had stained the wall. Was she going to be kicked out of school for this? Or banned from using magic? A scary parade of horrible scenarios marched through Ferr's mind.
Her instructor glanced back at the stain. With a quick flick of her own wand, the stain disappeared. "That is why we are in a sandbox." she added.
Over the next hour, Ferr saw the wisdom of the sandbox. Her incorrect spells repeatedly stained, scorched, and pummeled the simple room. To an outsider it would probably have looked as though Ferr had a vendetta against the room itself. But, each time, her mentor calmly restored the room to its previous state. And after 4 hours of practice, Ferr had even managed to turn the flowers a slight purplish.
The rest of the month was the same. Simple spells turned out to be surprisingly hard. And, Ferr repeatedly destroyed the room until she mastered them.
One morning a new surprise awaited Ferr. There, on the table, was a small lizard with a terrible temper. It hissed at her and tried to bite her repeatedly.
"I thought bog lizards could not get through the kingdom's magical protections!" yelped Ferr as it lunged for her. The creature's breath left no doubt that this was indeed a bog lizard.
"They cannot." agreed her mentor. "But we can bring them in here. This room is isolated from the rest of the kingdom. So, we can bring in all the dangerous creatures that we would not want to have running around wildly. You do need to practice dealing with unpleasant creatures, you know."
During that day's class, Ferr reached a new level of room destruction. She even managed to shatter the table. But ultimately, she learned to charm the lizard so that it would not hurt her. Still, the creature's horrible breath made her eager to finish up early.
It took a full year before a junior fairy was allowed to use magic outside of the sandbox, and now Ferr understood why. Ultimately, Ferr gained mastery of her skills and the destruction stopped. She was allowed to start using the magic spells that she had mastered within the sandbox. However, the original glee was replaced by a wiser feeling of caution.
And, Ferr always made sure to test new ideas in a sandbox. She would hate to accidentally turn the wallpaper in her room into fly paper as her older sister had done.
-------------------------
If you are interested in learning more about the importance of testing, check out the story of why it is important to always unit test your magic spells:
http://computationaltales.blogspot.com/2011/05/importance-of-unit-testing-magical.html
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.