code-quality - Concepts
Explore concepts tagged with "code-quality"
Total concepts: 17
Concepts
- Side Effects - Observable changes to state or interactions with the outside world that occur during the execution of a function or operation.
- Guard Clauses - A coding technique where a function checks for special or invalid cases at the very top and exits early, so the main logic doesn't end up buried in nested conditionals.
- Clean Code - Code that is easy to understand, maintain, and modify, following principles of readability, simplicity, and expressiveness.
- Lava Flow - An anti-pattern where dead or experimental code hardens into production systems and becomes difficult to remove.
- Legacy Code - Inherited code that is difficult to change safely due to lack of tests, documentation, or understanding.
- Stringly Typed - Code that uses plain strings for values that deserve a real type, such as states, keys, dates or identifiers, so the compiler can't catch mistakes that a proper type would prevent.
- Cognitive Complexity - A measure of how difficult code is to understand, complementing cyclomatic complexity with human readability factors.
- Static Typing - A way of checking the types of values in a program before it runs, so a whole class of errors gets caught by the compiler or type checker instead of by your users.
- Dead Code - Source code that exists in a program but is never executed, has no effect on the output, or is unreachable.
- Code Smell - Surface-level indicators in source code that suggest deeper problems in the design or implementation.
- Software Entropy - The tendency of software systems to become increasingly disordered and complex over time without active maintenance.
- Refactoring - The process of restructuring existing code without changing its external behavior to improve readability, maintainability, and design.
- Undefined Behavior - Program behavior on which a language specification places no requirements at all. Once a program triggers it, anything can happen.
- Boolean Trap - An API design mistake where boolean parameters make function calls unreadable and easy to get wrong, because true and false say nothing about what they control.
- Tell, Don't Ask - An object-oriented design principle: instead of asking an object for its data and making decisions with it, tell the object what to do and let it decide.
- Self-Documenting Code - Code written so clearly that it explains itself without requiring extensive external documentation.
- Primitive Obsession - A code smell where primitive types like strings, integers and booleans represent domain concepts that deserve their own small types.
← Back to all concepts