# Flag-oriented Programming

DevFeed: [Flag-oriented Programming](<https://devfeed.tech/articles/flag-oriented-programming-37716.md>)

Original publisher: [Read original article](<https://carlosbecker.com/posts/flag-oriented-programming/>)

Author: Carlos Alexandro Becker

Published: 2016-02-10T00:00:00Z

Content type: opinion

Language: en

Sources: [Carlos Becker](<https://devfeed.tech/sources/carlos-becker.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [clean-code](<https://devfeed.tech/topics/clean-code.md>), [functions](<https://devfeed.tech/topics/functions.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>)

Tags: [clean-code](<https://devfeed.tech/tags/clean-code.md>), [code](<https://devfeed.tech/tags/code.md>), [feature](<https://devfeed.tech/tags/feature.md>), [programming](<https://devfeed.tech/tags/programming.md>)

## AI overview

The article argues that adding boolean flags to methods leads to flag-oriented programming: code becomes harder to understand, maintain, maintain, extend, and test as features accumulate. It presents decorators as a more readable and composable alternative.

## Source excerpt

booleans, am I right? What a wonderful piece of technology! They help us solve so many problems...