Skip to content
Lesson 2

Abstraction The Most Important Bits

Abstraction means choosing what to keep and what to throw away. Not throwing away because the rest is bad. Throwing away because the rest is not the point right now. Imagine three pictures of Lahore. The first is a sate…

There is more than one way to understand this. If you have only been taught one, you have been taught less than you deserve.

There is more than one way to understand this. If you have only been taught one, you have been taught less than you deserve.

Abstraction means choosing what to keep and what to throw away. Not throwing away because the rest is bad. Throwing away because the rest is not the point right now. Imagine three pictures of Lahore. The first is a satellite photo. Every roof, every tree, every car is in it. The second is a Google street map. Roads, neighbourhoods, big landmarks like Minar e Pakistan and Liberty Chowk. The third is a hand drawn map your phupho draws on a paper napkin to tell the courier where she lives. Just five lines. Main road, turn at the chai dhaba, gali on the right, third gate, green door. Three pictures of the same city. Each one is correct. Each one keeps different things and throws different things away.

Which picture is the right one. There is no right one. The right one depends on the question. If you are a town planner deciding where to put a new flyover, you need the satellite photo. If you are a tourist looking for Anarkali Bazaar, you need the street map. If you are a courier carrying a parcel of mithai, you need the napkin. The hand drawn napkin throws away ninety nine percent of Lahore. That is its whole point. The courier does not need to know where the Wagah border is. He needs to know which gali to turn into. Throwing things away made the napkin useful.

Worked example. The bus that takes you to school. Imagine a friend in Multan asks you, how do you get to school. There are five answers, all true. Answer one, the satellite version. I leave my house at seven twenty, walk to the corner of Gulberg block H, board the school van that has a red stripe and seats fourteen, the driver Hamid bhai picks up six other kids in this order, then drops us at the main gate by seven fifty five. Answer two, the street map version. The van takes Main Boulevard, turns left at Liberty, passes the petrol pump, reaches school. Answer three, the napkin version. School van. Forty minutes. Answer four, even smaller. By van. Answer five, smallest of all. By road. Each answer is the same trip. Each one keeps less. The right answer is the smallest one that still answers the question.

Why this matters. Every program on your phone is an abstraction of the world. Easypaisa is not money, it is a number that stands for money. WhatsApp is not your khala, it is a green box that stands for the conversation with your khala. The skill of choosing what to keep and what to drop is the skill that turns the messy real world into something a computer can hold. The kid who learns to draw the napkin map for the courier is already learning the same trick a software designer in Karachi uses to design the next ride hailing app for narrow Pakistani galis where Google Maps gets confused.

Estimated time: 12 min