أساسيات الحاسوب
Computer Basics
Computers seem magical, but they're built on a few simple ideas layered together with astonishing patience. If you understand the layers, most of the magic becomes clear.
Chapter 1
Bits, bytes, and binary
At the bottom, a computer only knows two states — on and off, 1 and 0. Each is a bit. Eight bits make a byte, which can represent 256 different values.
Everything you see on a screen — text, images, music, video, this sentence — is ultimately a very long sequence of 1s and 0s, interpreted by programs that agree on what each pattern means.
For example, in ASCII the letter 'A' is 01000001. In UTF-8, the Arabic letter 'م' takes two bytes. A high-resolution photo is millions of bytes long.
Key terms
- Bit:
- A single 0 or 1.
- Byte:
- 8 bits.
- Kilobyte / megabyte / gigabyte:
- 1,000 / 1,000,000 / 1,000,000,000 bytes.
Chapter 2
Hardware — the machine itself
A computer has four main parts. The CPU (central processing unit) executes instructions — a modern one does billions per second. RAM (memory) holds the data the CPU is actively using. Storage (SSD or hard drive) keeps data when the power is off. Input/output devices — keyboard, screen, network card — let it talk to the outside world.
A phone is a small computer with a camera, GPS, and touchscreen bundled in. A data centre is thousands of computers cooperating.
Chapter 3
Software — layers of instruction
Software is instructions the CPU can follow. Machine code is the raw binary. Assembly is barely-readable shorthand for it. High-level languages — Python, JavaScript, C, Rust — let humans write instructions in something closer to English and have a compiler or interpreter translate them.
The operating system (Windows, macOS, Linux, Android, iOS) sits between hardware and applications, sharing CPU, memory, and storage between all the running programs.
An 'app' is a program written to run on that operating system.
Chapter 4
The internet & the web
The internet is a global network of networks — computers connected by cables (including undersea ones), fibre, and wireless links. Each device has an IP address; each request is broken into packets that hop across routers until they arrive.
The web (world wide web) is one layer on top: web pages served over HTTP, addressed by URLs, rendered by browsers. Email, video calls, WhatsApp, streaming — each is another protocol on the same underlying internet.
Modern services also run in the 'cloud' — meaning on servers owned by companies like Amazon, Google, or Microsoft, rather than on your device.
Chapter 5
AI — the newest layer
Artificial intelligence today mostly means machine learning: programs that learn patterns from data instead of following hand-written rules. Large language models (like the one powering Noor's Coach) are trained on huge amounts of text and predict the next word — well enough to feel like conversation.
This is a powerful tool. It is not consciousness, and it is not always right. Every Muslim engaging with AI should use it thoughtfully: verify important claims, keep human judgment central, and remember that knowledge without adab (character) is dangerous.
Chapter 6
How code actually runs
When you double-click an icon, the OS loads the program from storage into RAM, points the CPU at the first instruction, and the CPU begins its fetch-decode-execute loop billions of times per second. Each 'instruction' is a tiny action — add these two numbers, move this byte, jump to that address.
Modern chips have multiple cores (parallel workers), caches (small ultra-fast memory near the CPU), and instruction pipelines. A phone chip today has more compute power than the fastest supercomputer of 1990.
Chapter 7
Databases and structured data
Every serious application stores information in a database. Relational databases (SQL — MySQL, PostgreSQL, SQLite) organise data into tables with fixed columns; documents databases (MongoDB, Firestore) store flexible JSON-like records; key–value stores (Redis) trade features for raw speed.
A single search on Google touches thousands of databases in parallel; a bank transfer requires two databases to agree atomically. Careful database design is often the difference between an app that works and one that collapses.
Chapter 8
Security — the invisible war
Every device you own is under constant automated attack. Passwords, encryption, two-factor authentication, and software updates are the front line. Modern security rests on cryptography — mathematical problems (like factoring huge primes) that are easy to check but essentially impossible to reverse.
The most important thing a beginner can do: use a password manager, turn on two-factor authentication for email, and update your software. Ninety per cent of breaches exploit known flaws that were already patched.
Chapter 9
AI — the newest layer
Artificial intelligence today mostly means machine learning: programs that learn patterns from data instead of following hand-written rules. A neural network is loosely inspired by the brain — layers of simple mathematical 'neurons' each learning to detect a feature (edges, then shapes, then faces).
Large language models (like the one powering Noor's Coach) are trained on trillions of words of text and predict the next token — well enough to feel like conversation. Image models like Stable Diffusion learn the pattern of pixels associated with a caption. Reinforcement learning agents like AlphaGo learn by playing millions of games against themselves.
This is a powerful tool. It is not consciousness, and it is not always right — it hallucinates fluently. Every Muslim engaging with AI should use it thoughtfully: verify important claims, keep human judgment central, and remember that knowledge without adab (character) is dangerous.
An Islamic reflection
Ilm (knowledge) has no artificial ceiling in Islam. But amanah — trustworthiness in how we use it — does. The same computer that grants you the whole Sahih Bukhari in a pocket also grants a stream of nonsense and vice. Discipline of attention is the new fard kifayah of our age. Use technology to grow closer to Allah and to serve others, not to harm or distract.
Want to go deeper? Ask the Coach.