# Item 25: Each function should be written in terms of a single level of abstraction

DevFeed: [Item 25: Each function should be written in terms of a single level of abstraction](<https://devfeed.tech/articles/item-25-each-function-should-be-written-in-terms-of-a-single-level-of-abstraction-39291.md>)

Original publisher: [Read original article](<https://kt.academy/article/ek-single-layer-of-abstraction>)

Published: 2024-02-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [abstraction](<https://devfeed.tech/topics/abstraction.md>), [function](<https://devfeed.tech/topics/function.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [code](<https://devfeed.tech/tags/code.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [function](<https://devfeed.tech/tags/function.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [programming](<https://devfeed.tech/tags/programming.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

The article explains why each function should be written at a single level of abstraction. It introduces abstraction layers from hardware and machine instructions through Assembly, compilers, and higher-level languages, arguing that well-separated layers reduce the need to understand lower-level implementation details.

## Source excerpt

Why each function should be written in terms of a single level of abstraction and how to achieve it.