©Novel Buddy
Lucky Spin: Godly Programming-Chapter 40: Being Tested
Chapter 40: Chapter 40: Being Tested
"Student Jeff, finally you have arrived. Come, come," the teacher said as he stood up and waved him over.
Jeff now given permission, entered the room and closed the door behind him.
He then walked toward the teacher, stopping just behind the monitor, and was across from him.
"Yes, teacher. I heard that Mrs. Eve said you were looking for me. May I ask why?" he asked respectfully.
"Well, it is important, Jeff. I saw that you have created an AI. This really surprised me. Here, can you take a look at this?" Mr. Dela Cruz said as he called Jeff to the front.
Jeff stepped forward, curiosity in his eyes as he glanced at the monitor.
The screen displayed lines of code that were neat, structured, and flowing like poetry. Yet what truly caught Jeff’s attention was not just the syntax.
It was the familiar naming conventions of functions like analyze_input, check_grammar, suggest_improvement, and feedback_score.
These were the exact function names he had written himself.
Then he noticed the order of the functions, the clean logic, and the way each block was grouped. It was exactly how he had organized it on his own computer.
His gaze shifted to the variable names, such as user_input, error_count, and confidence_score.
It was simple and direct, and unmistakably his own naming style.
And then he saw it. At the top corner of the window, it read, uncompyle6 decompiled Python bytecode.
His mind processed it instantly. At that moment, Jeff understood exactly what had happened.
Teacher Dela Cruz had decompiled the APK, using tools like APKTool and JADX to unpack its contents, and then ran uncompyle6 on the compiled Python files.
"This is my work, the structure, the names, the logic it is all mine," he thought, eyes fixed on the screen.
Every function, every variable the name reflected his own style, his signature approach to problem-solving, unmistakable to anyone who truly understood the craft.
The only small difference was that some comments were missing, likely stripped away during the decompilation process.
There were also minor formatting issues like extra spaces and inconsistent line breaks.
However, the function names, variable names, logic flow, and overall structure remained intact.
These details were unmistakable, and they confirmed his suspicion. This was indeed his work, the very code he had written on his own PC.
The fingerprints of his craftsmanship were everywhere, it was woven into the fabric of the code itself, making it impossible to deny its origin.
"Is this my app?" He asked his teacher.
The teacher, who had been quietly observing his expression throughout the analysis, nodded slightly.
Dela Cruz had been watching closely clearly this was a test from the very beginning.
If Jeff had failed to recognize the lines of code or even hesitated for a moment, it would have been a clear proof that the work belonged to someone else.
But the way Jeff’s eyes followed each function, the certainty in his gaze, and the immediate recognition of the structure confirmed otherwise.
Since the first test was done, Dela Cruz decided to conduct another one to be sure.
However, he was a bit surprised that it took Jeff only 5 seconds to recognize that the code was his from the very beginning.
"Yes, it’s yours. I decompiled the APK to understand how you built this," Dela Cruz admitted, his tone shifting to one of genuine curiosity.
"It honestly shocked me that you were able to create something this advanced. Could you enlighten me on how exactly you managed to make this?" he asked.
As his eyes fixed on Jeff with a look of both respect and interest.
Jeff, noticing the look in teacher Dela Cruz’s eyes, immediately understood that the teacher was testing him.
He was trying to confirm whether he was truly the one behind the work.
"Sure," Jeff replied calmly, his expression remaining unchanged.
"Before I start, teacher, what you’re actually looking at is just a piece of something much bigger," he began.
"This app, Genesis AI, is actually just a miniature version of my main project," he stated.
"Miniature version? You mean this one is nothing compared to the real version?" Dela Cruz asked, clearly surprised and was almost flabbergasted by the revelation.
Jeff nodded, "Yes, it’s just a miniature version," he confirmed with a slight chuckle.
"But that’s a secret for now, teacher. Hehe," he added playfully, keeping the details of his main project to himself.
Hearing this, Dela Cruz could not hide his curiosity.
"You’ve got to be kidding me. This is just a miniature version? I can’t even imagine how advanced the real one must be," Dela Cruz thought inwardly, wanting to see a glimpse of that one.
But before Jeff began explaining the logic path and technical details of his app, he started by sharing the reason behind why he created it.
He stated his main objective in building an Offline Virtual School System and that was to improve learning.
He then began explaining its features, highlighting the key functions that set his system apart.
It included an essay correction and grammar feedback tool, auto-generated lessons and quizzes, self-paced study modules, photo analysis for worksheets, and offline student accounts.
Meaning learners could access all these features without the need for an internet connection, perfectly addressing the issue of limited accessibility in many areas.
As Jeff stared at the monitor, he noticed the structure displayed on the screen.
There was the project folder tree, several import lines at the top, and key files such as configuration and main script files.
...
Python
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
import sqlite3
import json
...
Dela Cruz’s eyes paused on the sqlite3 import. Jeff then immediately pointed at it with his finger.
"That’s for the local account system," Jeff began to explain.
"I needed each student to have their own account and to save their learning progress, including their quizzes, scores, and completed modules."
"Local database? Why not just use server-based accounts?" Dela Cruz asked as he continued to examine the code.
...
import sqlite3
...
Jeff shook his head and provided his explanation.
"I designed Genesis to work offline. Many students in our area cannot always rely on stable internet. If this system depends on the cloud to function, it fails the students who need it the most."
He pointed at the line again.
"So SQLite handles the local data storage. Every student has their own account saved directly on their device, just as I mentioned before, with their test results, lesson progress, and quizzes. It all stays with them, with no need for internet access."
Dela Cruz nodded slowly, the explanation beginning to make sense. Jeff then took the mouse as he tapped the folder section on the screen.
...
Bash
/genesis_ai/
├── main.py
├── database.db
├── modules/
│ ├── grammar_checker.py
│ ├── quiz_generator.py
│ └── photo_analyzer.py
├── assets/
├── templates/
...
Jeff then continued to explain.
"I split the features into separate modules, like essay checking, quiz generation, and photo analysis, with each one handling its own logic. This keeps the code clean and makes it easier to maintain."
Jeff then scrolled to the top of main.py, where the line from kivy.app import App was imported.
Dela Cruz was about to speak, but Jeff nodded slightly, explaining before he could even ask.
"That’s Kivy, the framework I used to package this into an APK. Python alone cannot run as an Android app, but Kivy allows me to build a graphical user interface and convert the entire program into an APK file that works on phones."
"I chose Kivy because it is lightweight. I did not need any heavy web-based frameworks or external servers. Everything runs directly on the device, with an offline-first approach. No data leaves the phone. It is all local, private, and secure."
"And this JSON? You are using both a database and JSON files?" Dela Cruz asked another question.
...
Python
with open(’student_data.json’, ’r’) as file: ƒreewebɳovel.com
student_progress = json.load(file)
...
Jeff gave a small smile and responded.
"Think of it as a backup system. SQLite is the main storage, but if the database file gets corrupted or if a device does not support it properly, the JSON file keeps the most important data safe."
Dela Cruz leaned back slightly as he rubbed his chin.
"This is far from the usual school projects I have seen," he said, turning his eyes back to Jeff.
"Where exactly did you learn to structure a system like this? Even the separation into modules and the way your functions are organized, at this part most students would just dump everything into one file."
Jeff kept his expression neutral. "Let’s just say I like things organized since a code is easier to scale when it is clean."
Dela Cruz exhaled through his nose, clearly impressed. He was now convinced and wanted to take this opportunity to learn more.
"And this essay checker, you wrote it to analyze sentence structure? Without internet access? How is that even possible?"
Jeff gazed at it as he responded, "There are ways to process text locally. You do not need an internet connection to break down a sentence, tokenize it, or analyze its grammar. The libraries and logic handle that. I just had to train them properly."
Dela Cruz furrowed his brows, "Train? Like training a machine? How do you ’train’ code?"
Jeff just smiled faintly as he tried to find the right words.
"It is a little bit like teaching. You feed the system examples. You show it what is correct and what is wrong, and it learns from those patterns. The more examples it sees, the better it understands how to respond."
Dela Cruz fell silent for a moment, clearly absorbing the idea.
Well, that is something you do not usually find here in school," Dela Cruz finally muttered.
[Author’s Note: He’s talking about Jeff’s knowlegde not the project]
Jeff did not reply, but he answered silently in his mind.
"Well, it is something you can get by spinning the rewards every night. System, I love you very much," he said sincerely.
[Love you too host] - The system responded.
"What," he flinched for a moment, then refocused himself afterward.
He was caught off guard by the system’s sudden reply, with its displayed panel floating right in front of him.