Full Stack Development involves building both the frontend (what users see) and backend (the server, database, and logic) of web applications. A full-stack developer can build a complete application from scratch.
React was created by Facebook in 2013 and is now one of the most popular frontend frameworks. It uses a component-based architecture.
Build a simple full-stack app:
Frontend: A form to submit a message.
Backend: An API (Node.js or Flask) that receives the message and stores it.
Database: Store messages in a database.
Display: Show all messages on the frontend.
You've built a full-stack application!
Plan a full-stack project for a real-world problem.
Choose a problem: e.g., school timetable app, library book tracker, volunteer management.
Describe:
1. The frontend pages and functionality.
2. The API endpoints needed.
3. The database tables and relationships.
4. How users will authenticate.
Share your design with the class.
Full-stack development allows us to create complete solutions for people's needs.
The Prophet ﷺ said: "The best of people are those who are most beneficial to others."
When you build full-stack applications, you are providing value to users.
Use your skills to solve real problems and benefit your community.
Full Stack Development covers both frontend and backend. Frontend technologies include HTML, CSS, JavaScript, and frameworks like React. Backend includes Node.js, Python, REST APIs, and databases. Full-stack developers can build complete web applications that are interactive, scalable, and maintainable.
In previous classes, you learned the fundamentals of Object-Oriented Programming (classes, objects, inheritance, encapsulation, polymorphism). Now, we will explore advanced OOP concepts that are essential for building large, maintainable software systems.
Design patterns were popularized by the book "Design Patterns: Elements of Reusable Object-Oriented Software" (1994), often called the "Gang of Four" book.
Why is SOLID important?
Following SOLID principles makes your code:
• Easier to maintain – Changes are localized.
• More reusable – Components can be used in different contexts.
• More testable – Dependencies can be mocked.
• Less bug-prone – Clear separation of concerns.
Good design matters!
Refactor a piece of code using SOLID principles.
Find a small program that violates one or more SOLID principles.
Rewrite it to:
1. Follow the Single Responsibility Principle.
2. Use interfaces to allow for extension.
3. Depend on abstractions rather than concrete implementations.
Explain how your changes improve the code.
Allah is the perfect designer of the universe. The Qur'an says:
"He has made everything beautiful that He has created." (32:7)
As programmers, we should strive to design our code with the same care
and beauty. Good design reflects the order and wisdom that Allah has instilled in creation.
Advanced OOP includes design patterns and SOLID principles. Design patterns provide reusable solutions to common problems (Singleton, Factory, Observer). SOLID principles guide software design for maintainability and scalability. These concepts are essential for professional software development.
In previous classes, you learned the fundamentals of SQL and relational databases. Now we will explore advanced database concepts that are critical for building robust applications.
The ACID properties (Atomicity, Consistency, Isolation, Durability) were defined in the 1970s and are the foundation of reliable database transactions.
Design a database for an e-commerce website:
Tables/Collections:
• Users (SQL: Users table)
• Products (SQL: Products table)
• Orders (SQL: Orders table)
• Order Items (SQL: Order_Items table)
Write SQL queries to:
1. Get all orders for a specific user.
2. Get the total revenue from all orders.
3. Get the most popular product.
You're designing a real-world database!
Compare SQL and NoSQL for a given application.
Choose a scenario:
1. A social media app (many relationships, variable data).
2. A banking system (strong consistency, transactions).
3. A real-time chat application (high speed, data persistence).
For each, explain:
1. Why you would choose SQL or NoSQL.
2. Which specific database you would use.
3. The trade-offs of your choice.
Share your analysis with the class.
Allah has created the universe with order and structure.
The Qur'an says: "And everything with Him is by measure." (13:8)
Databases help us organize information in a structured way.
This reflects the divine order in creation. When we design databases,
we are participating in this beautiful order.
Advanced databases include advanced SQL (joins, subqueries, transactions) and NoSQL databases (document, key-value, graph). Understanding both types is essential for choosing the right database for your application. Transactions ensure data integrity in critical operations.
Version control is a system that tracks changes to files over time. It allows you to collaborate with others, revert to previous versions, and manage complex projects. Git is the most popular version control system.
Git was created by Linus Torvalds in 2005 to manage the development of the Linux kernel. It's now used by millions of developers worldwide.
Practice Git with a simple project:
1. Create a folder and run git init.
2. Create a file, add and commit it.
3. Create a new branch and switch to it.
4. Make changes and commit them.
5. Merge the branch back to the main branch.
You've used Git!
Simulate a team workflow using Git.
Work in groups of 2-3:
1. One person creates a repository on GitHub and adds the others as collaborators.
2. Each person clones the repository.
3. Each person creates a branch and works on a feature.
4. Commit changes and push to GitHub.
5. Create a pull request and review each other's code.
6. Merge the changes into the main branch.
What challenges did you face?
Collaboration is a core value in Islam. The Qur'an says:
"And cooperate in righteousness and piety..." (5:2)
Version control systems like Git enable effective collaboration.
They help teams work together on complex projects. This is a beautiful example
of how technology can bring people together to achieve common goals.
Git is a powerful version control system. Key concepts include repository, commit, branch, merge, and remote. Basic commands include init, add, commit, status, log, branch, checkout, merge, push, pull. Git enables collaboration and tracking of changes, essential for team projects.
Cloud computing is the delivery of computing services (servers, storage, databases, networking, software) over the internet. It allows you to access powerful resources without owning the hardware.
The term "cloud computing" was popularized in the early 2000s, but the concept of utility computing dates back to the 1960s with mainframe time-sharing.
A group of students built a web application to help local charities connect with volunteers.
They developed the app locally, then used Heroku (PaaS) to deploy it.
With Heroku, they didn't need to manage servers. They just pushed their code using Git,
and Heroku handled the rest. The app was live within minutes!
They used a cloud database (MongoDB Atlas) to store volunteer data.
The app scaled automatically as more users joined.
The lesson: Cloud computing makes it easy and affordable
to launch applications. It removes the burden of infrastructure management.
Deploy a simple web application to the cloud.
Choose a platform: Heroku (free tier) or AWS Lightsail.
Steps:
1. Build a simple app (e.g., a "Hello World" or a to-do list).
2. Push the code to a Git repository.
3. Connect the repository to the cloud platform.
4. Deploy and test the live URL.
What challenges did you face?
Cloud computing is a gift that makes technology accessible to everyone.
The Qur'an says: "And whatever you have of favor is from Allah." (16:53)
With cloud services, even small teams and individuals can build powerful applications
without huge upfront costs. This is a way to democratize access to technology.
Use these tools to serve your community.
Cloud computing delivers computing services over the internet. Service models include IaaS, PaaS, and SaaS. Benefits include scalability, cost-effectiveness, accessibility, and reliability. Deploying applications to the cloud is easier than ever with platforms like Heroku and AWS.
Data Science is the field of extracting insights and knowledge from data. It combines statistics, programming, and domain expertise to make data-driven decisions.
Machine Learning is a subset of AI that allows systems to learn from data and improve without being explicitly programmed.
Pandas was created by Wes McKinney in 2008 to make data analysis in Python easier. It's now one of the most widely used libraries in data science.
Predict house prices using a simple linear regression model:
1. Load a dataset (e.g., Boston housing dataset).
2. Split into training and testing sets.
3. Train a linear regression model.
4. Predict on test data and evaluate using mean squared error.
You've built a machine learning model!
Work on a data science project.
Choose a dataset (e.g., student performance, weather, sales).
Perform:
1. Data cleaning (handle missing values).
2. EDA (visualizations, summary statistics).
3. Build a predictive model (classification or regression).
4. Evaluate the model using appropriate metrics.
Present your findings in a report or presentation.
Data is a gift from Allah that can be used for good.
The Qur'an says: "And We have made everything with measure." (54:49)
Data science helps us uncover patterns and make better decisions.
Use this knowledge to solve problems and benefit society,
while always upholding fairness and honesty.
Data science extracts insights from data. Key libraries: Pandas, NumPy, Matplotlib, Scikit-learn. The process includes data collection, cleaning, EDA, modeling, evaluation, and deployment. Machine learning enables systems to learn from data and make predictions.
In this topic, we will go beyond the basics and explore practical cybersecurity techniques, including ethical hacking, penetration testing, and defensive strategies.
Ethical hacking is a legitimate and growing career field. Companies pay good money for security experts to test their systems before malicious hackers can exploit them.
A student named Zayd was interested in cybersecurity. He learned about ethical hacking
and practiced on a lab environment. He discovered a vulnerability in his school's
website that could allow unauthorized access.
He reported it to the school's IT team, who fixed the issue. The school thanked him
for his responsible disclosure. Zayd's actions protected the school from potential harm.
The lesson: Ethical hacking is about using your skills for good.
Always report vulnerabilities responsibly and help make systems safer for everyone.
Learn about a recent cybersecurity breach.
Choose a case: e.g., Equifax, Yahoo, or a recent data breach.
Research:
1. What happened?
2. What was the vulnerability?
3. What were the consequences?
4. How could it have been prevented?
Write a summary and present it to the class.
Allah has given us the ability to protect ourselves and others.
The Qur'an says: "And do not throw yourselves into destruction..." (2:195)
Cybersecurity is a form of protection for ourselves and our communities.
By learning to defend against cyber threats, we are fulfilling our responsibility
to safeguard the systems that people rely on.
Ethical hacking involves authorized penetration testing to find vulnerabilities. Common tools include Nmap, Wireshark, and Metasploit. Defensive strategies include firewalls, IDS, encryption, and security audits. Cybersecurity is a shared responsibility that requires constant vigilance.
Mobile apps are a huge part of the technology landscape. They run on billions of devices and serve various purposes, from communication to productivity to entertainment. Learning mobile development opens up many opportunities.
The first smartphone was the IBM Simon, released in 1994. It had a touchscreen and could send emails and faxes!
Build a simple "Hello World" app using React Native:
1. Install Node.js and React Native CLI.
2. Create a new project: npx react-native init MyApp.
3. Run on an emulator or physical device.
4. Modify the App.js file to display your own message.
You've created your first mobile app!
Design a mobile app concept.
Choose a problem or need: e.g., a prayer time app, a student planner, a charity donation app.
Create a design document:
1. Purpose and target audience.
2. Key features and user flows.
3. Mockups (paper sketches or using a tool like Figma).
4. Technology choice (native or cross-platform).
Present your design to the class.
Mobile apps can reach millions of people and improve lives.
The Prophet ﷺ said: "Whoever guides someone to good will have the reward like the one who does it."
When you build an app that helps people, you are multiplying your reward.
Use mobile development to serve your community and
facilitate goodness.
Mobile app development offers platforms: Android (Java/Kotlin), iOS (Swift), and cross-platform (React Native, Flutter). The lifecycle includes concept, design, development, testing, deployment, and maintenance. Mobile apps are a powerful way to reach users and solve problems.
You've explored full-stack development, advanced OOP, advanced databases, version control, cloud computing, data science, cybersecurity, and mobile development. You are now ready for a career in technology or further studies! May Allah bless your learning and help you use technology to serve humanity and please Him.