Peter The Programmer - Coder Hero in The Medieval Era



Peter was a brilliant software developer who was working on a top-secret project for the government. He has been working on the project for weeks without any breaks, and he was exhausted.

One day, while Peter was working on his computer, he accidentally hit a button that he shouldn’t have, and he was suddenly teleported back in time to the medieval era!

As he looked around, he saw knights riding horses, peasants tending to their farms, and castles in the distance. Peter couldn’t believe his eyes. He was wearing his usual hoodie and jeans, and his laptop was still in his backpack.

Suddenly, a group of knights approached him, thinking he was a wizard. Peter tried to explain that he was a software developer from the future, but the knights didn’t understand a word he was saying.

So, Peter decided to use his programming skills to his advantage. He created a simple website that could predict the weather for the next day. The knights were amazed by this new “magic” and decided to take Peter to the king.

As soon as Peter arrived at the castle, he showed the king his website and explained how it worked. The king was so impressed that he made Peter the royal weatherman.

Peter thought to himself, “Well, I guess my programming skills have come in handy after all.” And so, he spent the rest of his days in the medieval era, predicting the weather for the kingdom and occasionally impressing the villagers with his “magic” programming abilities.

However, Peter soon realized that there was one major downside to being a weatherman in the medieval era. The king would always blame him for the bad weather, and Peter would have to come up with excuses like, “Sorry, my code must have had a bug in it!”


Next month, as Peter looked around, he saw a beautiful princess being chased by a fierce dragon. Being a software developer, Peter knew he could help, and he quickly opened his laptop to work on a solution.

He wrote a program that would create a virtual reality headset for the princess. The headset would allow her to see the dragon as a friendly creature and, therefore, stop her from running away from it.

Peter called the princess over and put the headset on her. As soon as she put it on, she saw the dragon as a cute and cuddly creature. She hugged the dragon, and they became best friends.

The villagers were amazed by Peter’s skills and thanked him for saving the princess. Peter was hailed as a hero, the king increase his rank and he become the royal software developer.


One day, Peter was exploring around the castle, he stumbled upon a group of knights who were discussing their battle strategies for an upcoming war. Being a software developer, Peter knew he could help. He quickly opened his laptop and showed the knights a simulation he had created that predicted the outcome of the battle based on various factors.

The knights were amazed by Peter’s simulation and asked him to join their army as a tactical advisor. Peter accepted, thinking he could use his programming skills to help the knights win the war.

However, Peter soon realized that his coding skills were not as useful in battle as he had thought. He tried to explain that the simulation was only as good as the data it was based on, but the knights didn’t understand. They kept asking him to “hack the enemy” or “write a virus to take down their castle.”

Peter tried to explain that programming doesn’t work like that, but the knights just looked at him like he was speaking another language. Eventually, Peter realized that the best way he could help the knights was to teach them how to code themselves.

So, he started holding programming lessons in the evenings after battle, and soon, the knights were writing their own programs to track their supplies, optimize their training, and even create new weapons.

Peter was amazed by how quickly the knights had taken to coding, but he couldn’t help but laugh at how they would try to use their newfound skills in battle. He’d hear them yelling things like “for loop attack!” or “if statement defense!”

In the end, Peter realized that even though he had been teleported back in time, he had still found a way to help people with his coding skills. And who knows, maybe one day the knights would be able to write a program that could hack the enemy’s castle after all!

The End