# Item 26: Use abstraction to protect code against changes

DevFeed: [Item 26: Use abstraction to protect code against changes](<https://devfeed.tech/articles/item-26-use-abstraction-to-protect-code-against-changes-39269.md>)

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

Published: 2024-02-26T00: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>), [Code](<https://devfeed.tech/topics/code.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [database](<https://devfeed.tech/tags/database.md>), [display](<https://devfeed.tech/tags/display.md>), [password](<https://devfeed.tech/tags/password.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [sorting](<https://devfeed.tech/tags/sorting.md>), [threads](<https://devfeed.tech/tags/threads.md>), [validation](<https://devfeed.tech/tags/validation.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains how abstraction protects code from changes. It covers extracting literal values into constants, separating algorithms into functions, and using abstractions to change implementation details without changing how code is used.

## Source excerpt

How do we abstract elements, and what are the consequences.