software-design - Concepts
Explore concepts tagged with "software-design"
Total concepts: 68
Concepts
- Microservices Architecture - A distributed architecture style that structures an application as a collection of small, autonomous services organized around business capabilities.
- Worse Is Better - A software design philosophy arguing that simpler, 'worse' solutions often succeed over more complete but complex alternatives.
- Parse, Don't Validate - Turn untrusted input into precise, typed data at the edge of your system, instead of checking it and passing the same loose data along.
- Make the Change Easy, Then Make the Easy Change - Kent Beck's advice for changing code: first restructure the code so the change becomes simple, then make that simple change.
- Pit of Success - Build systems so that the easiest path is also the right one: people fall into good results by default, and they have to work hard to get things wrong.
- Law of Leaky Abstractions - Joel Spolsky's observation that every abstraction that hides real complexity eventually exposes the details it was supposed to hide, so you still need to understand what's underneath.
- Local-First - Software design where data lives primarily on your devices, with cloud as optional sync.
- Draconian Error Handling - An error policy where a parser must stop and report failure at the first malformed input instead of trying to recover. It is the strict opposite of the robustness principle.
- Separation of Concerns - A design principle for dividing a system into distinct sections, each addressing a separate concern or responsibility.
- Value Object - An immutable domain object defined entirely by its attributes rather than by a unique identity, where two instances with the same values are considered equal.
- Input Validation - Checking that data entering a system has the expected type, format, range and meaning before the system acts on it.
- Breaking Loudly - A software design principle where failures produce visible errors, exceptions, or warnings rather than silently continuing.
- Opinionated Software - Software that prescribes a particular way of doing things, making design decisions for users rather than offering maximum flexibility.
- Defensive Programming - A coding practice that anticipates potential errors and edge cases, writing code that fails safely and provides clear error information.
- Design Patterns - Reusable solutions to commonly occurring problems in software design, providing templates for solving design challenges.
- Secure by Design - An approach where security is built into a product's architecture, code and development process from the very beginning, instead of being added on top at the end.
- Footgun - A feature, tool or API that makes it easy to shoot yourself in the foot: the obvious use works most of the time, then does something harmful that nobody notices right away.
- 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.
- Open-Closed Principle - Software entities should be open for extension but closed for modification: you add new behavior by adding new code, instead of changing code that already works.
- Design by Contract - A methodology where software components define precise, verifiable interface specifications: what they require (preconditions), what they guarantee (postconditions) and what stays true (invariants).
- CQRS - A pattern that separates read and write operations into distinct models, allowing each to be optimized, scaled, and evolved independently.
- Null References - The practice of letting any reference point to "nothing", which Tony Hoare, who introduced it in 1965, later called his "billion-dollar mistake".
- Domain Event - A record of something significant that happened in the business domain, used to communicate state changes and trigger side effects across system boundaries.
- Domain-Driven Design - An approach to software development that centers the design on the core business domain and its logic.
- 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.
- Functional Core, Imperative Shell - An architecture pattern where all decisions live in pure functions at the center, and a thin outer layer handles the side effects: reading input, talking to the network, writing to disk.
- Event Storming - A collaborative workshop technique for rapidly exploring and modeling complex business domains by discovering domain events on sticky notes.
- Fault Tolerance - The ability of a system to continue operating correctly even when some of its components fail.
- Interface Segregation Principle - Clients should not be forced to depend on methods they don't use, so large interfaces should be split into smaller, role-specific ones.
- Total Functions - A total function returns a valid result for every possible input of its type; a partial function only works for some inputs and crashes, throws or misbehaves on the others.
- Modulith - A modular monolith architecture that combines the simplicity of monoliths with the organizational benefits of microservices.
- Secure by Default - Software should ship with its most secure configuration already switched on, so people are protected without having to do anything.
- Escape Hatch - A deliberate, explicit way to bypass an abstraction, convention or safety mechanism when the default path doesn't fit the problem at hand.
- Monolithic Architecture - A software architecture pattern where an entire application is built as a single, unified unit.
- Postel's Law - The robustness principle: be conservative in what you do, be liberal in what you accept from others. A design guideline for interoperable systems that is now seen as a trade-off, not an absolute rule.
- Hard to Misuse - Make interfaces easy to use correctly and hard to use incorrectly, so the design prevents mistakes instead of relying on the documentation.
- Smart Constructor - A function that is the only way to create a value of a given type and that checks the type's rules, so every value that exists is guaranteed to be valid.
- Typestate Pattern - A design technique that encodes an object's current state in its type, so calling an operation in the wrong state becomes a compile-time error instead of a runtime bug.
- Error Handling - The practice of anticipating, detecting, and responding to errors in software to maintain system stability and provide meaningful feedback.
- Principle of Least Astonishment - A component should behave the way its users expect it to, because every surprise is an opportunity for a mistake.
- Hammock Driven Development - Rich Hickey's approach to software design that deliberately allocates offline thinking time away from the keyboard so the background mind can solve hard problems before any code is written.
- Algebraic Data Types - Composite types built by combining other types in two ways: "and" (product types, like records) and "or" (sum types, like tagged unions), which lets you model a domain precisely.
- Graceful Degradation - A design approach where systems continue to function with reduced capability when components fail, rather than failing completely.
- Make Simple Things Simple, Complex Things Possible - A design principle attributed to Alan Kay: the common tasks should be easy to do, and the advanced tasks should still be possible.
- Service-Oriented Architecture - An architectural style that organizes software as a collection of interoperable services that communicate through standardized interfaces.
- Dependency Inversion Principle - High-level modules should not depend on low-level modules: both should depend on abstractions, and those abstractions should not depend on implementation details.
- Ubiquitous Language - A shared, rigorous vocabulary between developers and domain experts used consistently throughout code, documentation, and conversation in Domain-Driven Design.
- 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.
- Event Sourcing - A pattern that persists the state of an entity as a sequence of immutable events rather than storing only the current state.
- Convention Over Configuration - A software design paradigm that reduces decisions developers need to make by providing sensible defaults based on conventions.
- Liskov Substitution Principle - Objects of a subtype must be usable anywhere objects of their parent type are expected, without breaking the correctness of the program.
- Fail Open vs. Fail Closed - Two opposite ways a system can behave when a component fails: fail open lets everything through, fail closed blocks everything, and choosing between them is a deliberate design decision.
- Aggregate - A cluster of domain objects treated as a single unit for data changes, with a root entity that controls all access and enforces invariants.
- Context Mapping - A strategic DDD technique for visualizing and managing the relationships and integration patterns between bounded contexts.
- Rule of Least Power - A design principle from the W3C: when you have a choice, use the least powerful language that can do the job, so the result stays easy to analyze, reuse and transform.
- Saltzer and Schroeder's Design Principles - Eight design principles for building secure systems, published by Jerome Saltzer and Michael Schroeder in 1975 and still used as the foundation of security engineering today.
- Make Illegal States Unrepresentable - Design your data types so that invalid combinations of values simply can't be created, and let the compiler catch a whole class of bugs for you.
- Kerckhoffs's Principle - A security principle stating that a system should stay secure even if everything about it, except the key, is public knowledge.
- Primitive Obsession - A code smell where primitive types like strings, integers and booleans represent domain concepts that deserve their own small types.
- Option Type - A type that makes the possible absence of a value explicit: a value is either present (Some(x)) or absent (None), and the compiler forces you to handle both cases.
- Bounded Context - A central pattern in Domain-Driven Design that defines explicit boundaries within which a domain model is defined and applicable.
- Clean Architecture - A software architecture pattern that emphasizes separation of concerns through concentric layers with dependencies pointing inward.
- Anti-Corruption Layer - A translation layer that isolates a bounded context from external or legacy systems, preventing their models from contaminating the internal domain model.
- Entity - A domain object defined by its unique identity that persists through time and state changes, rather than being defined by its attributes.
- Saga Pattern - A pattern for managing distributed transactions across multiple services by coordinating a sequence of local transactions with compensating actions for failures.
- Newtype Pattern - A technique that wraps an existing type (often a primitive) in a new, distinct type, so the compiler can tell apart values that share a representation but mean different things.
- Correct by Construction - Build software so that correctness follows from the way it's put together, instead of trying to find and remove the bugs afterwards.
← Back to all concepts