DELAPARRA
Index
Color
NL
Category: Programming paradigms

Abstraction Level

Explained by Updated

What is Abstraction Level?

Abstraction Level: Declarative code operates at a higher level of abstraction — you express intent, not mechanism. HTML says "this is a heading", not "draw pixels at these coordinates". Abstraction level describes how close code is to the machine or to the intent. Low-level code says how something happens, step by step. High-level code says what should happen and leaves the how to something else.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Abstraction Level

How is Abstraction Level used in practice?

HTML is a good example. <h1> says this is the main heading. The browser decides fonts, layout and pixels. SQL works the same way: you describe the rows you want, and the database decides how to fetch them.

What should you keep in mind with Abstraction Level?

Within your own code, keep each function at one level. A function that mixes business rules with string formatting and raw SQL is hard to follow. Split it so the top function reads like a short description of the process, and the details live in smaller functions below it. That structure makes code easier to review and much easier to change.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with A

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.