Chapter 2
A Door Opens
Maryam receives an unexpected invitation to teach basic coding to girls at her local mosque. She hesitates, fearing she is not ready, but after prayer and reflection, she accepts. The experience transforms her understanding of her purpose, and she begins to see coding not just as a skill but as a form of service. Her confidence grows, and she starts a small study group for other Muslim women interested in technology.
The spring semester had ended, and Maryam returned home for the summer. Her parents' apartment in the city felt smaller than she remembered, the walls lined with familiar photographs and the smell of her mother's cooking. She had brought her notebooks, her laptop, and a quiet determination to keep learning.
The first week was restful. She prayed, read Quran, helped her mother with chores. But by the second week, restlessness crept in. She missed the lab, the whiteboards covered in algorithms, the hum of computers. She missed the feeling of solving a problem, of watching code come to life.
One evening, her father came home with news. "The imam is looking for someone to teach a small class at the mosque," he said, not quite looking at her. "For the girls. Something with computers."
Maryam's heart skipped. She had never taught anyone anything. She was still learning herself, still struggling. "I don't think I'm qualified," she said.
"He asked about you specifically. He heard you are studying software engineering."
She was not a software engineer yet. She was barely a student. But her father's tone held a hint of pride she had not heard before. She looked down at her hands, still stained with graphite from a notebook she had filled that morning.
"I'll think about it," she said.
That night, she performed Isha prayer and then sat on her prayer rug, making du'a. She asked for clarity, for a sign. Was this the path Allah wanted her to take? Teaching felt different from coding. It required explaining, patience, the ability to break down complex ideas into simple pieces. She was not sure she had those skills.
The next day, she went to the mosque to speak with the imam. He was a kind man with a gray beard and gentle eyes. He greeted her warmly and led her to a small room with a whiteboard and six old desktop computers.
"The girls are between fourteen and seventeen," he explained. "They are bright, but they have no one to teach them. Their schools do not offer computer classes. I thought you might show them the basics. How to use a computer, maybe how to write a simple program."
Maryam looked at the computers. They were dusty, the keyboards yellowed. She imagined teaching loops and conditionals on these machines. It seemed impossible. But then she remembered her own first semester, the nights spent crying over recursion, the way Amina had encouraged her. Perhaps she could be that for someone else.
"I will try," she said.
"Barakallahufeek," the imam replied. "May Allah bless you."
The class was set to begin in two weeks. Maryam spent those days preparing. She wrote lesson plans on paper, drew diagrams of how a computer processes data. She practiced explaining variables without using jargon. She stood in front of her bedroom mirror and pretended to teach, adjusting her tone to be warm and clear.
On the first day, six girls sat in the room, their hijabs neat, their eyes curious. Maryam introduced herself, her voice trembling slightly. She asked them what they knew about computers. Most said they used them for social media or homework. One girl, Layla, said she wanted to learn how to make games.
Maryam smiled. "That's a good goal. We'll start with the very basics: how a computer thinks."
She wrote on the whiteboard: "Input → Process → Output." She explained how every program followed this pattern. She used the example of making tea: you put water and leaves in (input), you heat it (process), you get tea (output). The girls laughed. They understood.
Then she turned on the computers. The screens flickered to life. She showed them how to open a simple text editor and type commands. She taught them their first line of code: a command that printed "Hello, world!" on the screen. One by one, the girls typed it. One by one, the words appeared. Their faces lit up.
Maryam felt a warmth spread through her, the same warmth she had felt when her own first program ran. She whispered a silent alhamdulillah.
Over the next few weeks, the class grew from six to ten girls. Word spread. Mothers called the mosque, asking if their daughters could join. The imam asked Maryam if she could handle more students. She said yes, though she was already exhausted. She woke early to prepare lessons, stayed late to answer questions. Amina, her roommate from university, called to check on her.
"You sound tired," Amina said.
"I am," Maryam admitted. "But it's a good tired."
She told Amina about the girls, about Layla who wanted to make games, about Fatima who struggled but refused to give up, about Huda who finished every exercise before anyone else. "They remind me of myself," Maryam said. "They just need someone to believe in them."
"You are doing something important," Amina said. "More important than a grade."
Maryam thought about that. She had spent the last year chasing grades, trying to prove she belonged. But here, in this dusty room with donated computers, she was doing something that mattered. She was planting seeds.
One afternoon, after class, Layla approached her. "Ustadha Maryam, can I ask you something?"
"Of course."
"How did you learn all this? Did you always know?”
Maryam shook her head. "No. I was terrified at first. I still am, sometimes. But I kept going. I asked for help. I prayed. And slowly, it started to make sense."
Layla nodded solemnly. "I want to be like you."
Maryam felt a lump in her throat. She wanted to say that she was nobody special, that she was just a student, that she had no idea where she was going. But instead, she said, "You will be better than me. I am sure of it."
That evening, Maryam sat in her room, her laptop open. She was supposed to be reviewing data structures for the upcoming semester, but her mind was elsewhere. She opened a new document and began to write a simple program: a calculator that could add, subtract, multiply, and divide. It was basic, something she could have written months ago. But as she typed, she realized she was not just writing code. She was writing with intention. She was writing for the girls, so she could show them what was possible.
She finished the program and saved it. Then she opened her notebook and wrote at the top of a new page: "Summer 2013 — Teaching at the mosque. 10 students. Alhamdulillah."
She closed the notebook and looked out the window. The sky was dark, the stars bright. She remembered the verse she had thought of months ago: "And He taught Adam the names of all things." She was still learning names—the names of functions, of variables, of algorithms. But now she was also teaching them. And in teaching, she was learning something deeper: that knowledge was not meant to be hoarded. It was meant to be shared.
A few days before the end of summer, the imam called her into his office. "I have something for you," he said, handing her an envelope. "The community collected this. For your work."
Maryam opened it. Inside was a letter of thanks and a sum of money—enough to buy a new laptop for her studies. She blinked back tears.
"I didn't do this for money," she said.
"I know," the imam said. "That is why we give it."
She accepted it with gratitude, but her heart was full of something far more valuable: the knowledge that she was on the right path. The path Allah had opened for her, step by step, line by line.
As she walked home, she made a decision. She would start a study group for Muslim women at the university, a place where they could learn coding together, support each other, and remind each other of their purpose. She would call it "Code for the Sake of Allah." It was a small idea, but it felt like a beginning.
And she was ready to begin.