clean code

Well-structured software writing

Clean code is source code that is easy to read, understand, and maintain.

The term implies simplicity, clear naming, logical organization, and minimal redundancy—code that communicates its intent to other programmers (or to your future self).

We spent the afternoon refactoring the spaghetti into clean code.

The concept is often associated with professional software craftsmanship, where readability matters as much as functionality.

maintainability

refactoring

Code improvement, same behavior

version control · peer review · debugging · error handling · technical debt · changeability · extensibility · backwards compatibility · deprecation

readability

naming conventions

Standards for assigning labels

formatting · whitespace · consistency · clarity · legibility · comprehension · structure · annotations · readable · understandability

patterns

abstraction

Distilling to essential qualities

polymorphism · singleton

efficiency

optimization

Maximizing efficiency or performance

memory management · caching · profiling · data structures · early return

principles

KISS principle

Design philosophy favoring simplicity

Categories
Opposites
code quality and maintainability

clean codedirty code

Poorly structured programming

spaghetti code · bad code · legacy code · code smell · technical debt

professional craftsmanship

clean codequick and dirty

Fast but unpolished

bodge job · kludge

technical debt

clean codetechnical debt

Accumulated coding shortcuts

cruft · bit rot · legacy code · kludge · hack

Family

clean, code, cleaner, unclean, cleanliness, cleans, cleansing, cleanness, cleanup

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Positive · Rated G