Software consists of instructions and associated data used by a computer. A spreadsheet is software that stores spreadsheet cells and evaluates their spreadsheet formulas.
Traces is software for computing graph automorphisms and canonical graph labeling, developed by Adolfo Piperno and distributed with nauty. A canonical result permits two graphs to be compared without depending on their input vertex names. Traces uses individualization-refinement graph search, with strategies designed to reduce the explored search space.[ref]
Refinement groups vertices according to structural information, including their numbers of neighbors in existing vertex classes. When this does not distinguish all vertices, individualization temporarily gives a selected vertex its own class and refinement continues. Discovering equivalent choices and distinguishing branches can avoid repeated work; the validity of the framework and implementation strategies are developed with Brendan McKay.[ref]
An original example shows why a coarse invariant is insufficient. A cycle on6vertices and two separate triangles both have6vertices and every vertex has2neighbors. Starting with one vertex class, neighbor-count refinement leaves one class in both cases. Yet the graphs are not isomorphic: one is connected and the other is not. Their correct canonical graph encodings must therefore differ.
Conversely, two differently numbered copies of the same6-cycle should give the same canonical result when processed with the same canonicalization convention. The example illustrates the required behavior, not a benchmark of a particular Traces version.
Performance depends on the graph family and search strategy. The practical success of the program does not by itself establish a polynomial worst-case bound for graph isomorphism. A reproducible comparison should keep the canonicalization settings consistent rather than assume all programs must choose an identical representative.
nauty is software for computing graph automorphisms and canonical graph labeling, originally developed by Brendan McKay. It is distributed with Traces graph isomorphism software and auxiliary graph-generation and manipulation tools.[ref]
An automorphism result describes relabelings that preserve adjacency. For an original example, the graph with6vertices and no edges permits every vertex permutation, so its automorphism group is the symmetric group of order
A compact generator description can use a transposition and a cycle . Conjugating the transposition by powers of the cycle produces adjacent transpositions, which generate the whole symmetric group. These are illustrative generators, not a claim about the exact generator list returned by a particular run.
A canonical result serves another purpose. If denotes the chosen canonical graph encoding, correctness requires
Renaming vertices changes the input representation but must not change that chosen result. This permits duplicate elimination when generating graphs and comparison of structures supplied with unrelated labels.
nauty combines structural refinement with a search over unresolved choices, exploiting discovered graph automorphisms to reduce equivalent work. Its theoretical framework and relationship to Traces are described in the authors' joint paper.[ref]
A generating set for symmetries and a canonical encoding are different outputs. The first describes equivalences within a graph; the second makes equivalence between independently labeled graphs directly testable.
International Components for Unicode, commonly abbreviated ICU, is a set of libraries providing Unicode text processing and software internationalization services. Its C/C++ and Java implementations support tasks such as character encoding conversion, Unicode normalization, text-boundary analysis, language-sensitive sorting and formatting. A software locale selects conventions for a language or region; it does not change the abstract numerical value being formatted.[ref]
For a text example, a visually accented letter can be represented by the single code point U+00E9 or by U+0065 U+0301, a base letter followed by a combining accent. Those sequences differ as raw code-point arrays. A Unicode normalization service can bring these canonically equivalent sequences into the same normalization form before a comparison. This is distinct from translating a word or deciding a language-specific sort order.[ref]
Such services make a useful division of labor: the application supplies meaning and policy, while a library implements detailed text and formatting rules. Storing text as UTF-8 alone does not implement software internationalization; the program must still handle boundaries, comparisons, numbers, dates and displayed messages appropriately.[ref]
Software internationalization is designing software so it can be adapted to different languages, regions and conventions without redesigning its core logic. Software localization performs a particular adaptation. Preparing the machinery and supplying a translated or region-specific result are related but distinct tasks.[ref]
For example, a program displaying a file count can keep the numerical count separate from the message that presents it. The selected software locale and message resources can then determine the full phrase, word order and grammatical form. Building every message by appending a fixed word to a decimal number assumes more about language than the underlying count requires. Similarly, a date represented as separate year, month and day values can be formatted for a chosen audience, whereas the bare string 03/04/2026 leaves the month/day convention ambiguous.[ref]
The engineering work includes selecting suitable character encodings, supporting Unicode, accounting for text direction, and separating localizable resources from source code. International Components for Unicode supplies reusable implementations of many text and formatting services. Internationalization still needs application-level decisions: a display format cannot supply a missing unit, infer an unspecified date convention or replace a meaningful data model.[ref]
A locale, also called a software locale, identifies a set of language-related and regional conventions used by software. Locale-sensitive services use it to select behavior such as date formatting, number formatting or culturally appropriate text ordering. A locale identifier can specify a language, script, region and further options.[ref]
An original date example separates meaning from presentation. Let a stored value have year2026, month3 and day4. A day/month/year pattern displays 04/03/2026, while a month/day/year pattern displays 03/04/2026. Both represent the same date under their declared patterns. The bare strings do not carry all the information needed to choose the interpretation without context.
A program can pass the selected locale as a parameter to a formatting service instead of hard-coding every convention. Changing that parameter changes the presentation requested for the operation. It does not change the stored date's year, month and day, infer a user's nationality, or convert the character encoding of every string.[ref]
The distinction from encoding is especially useful. Two applications can both store text as UTF-8 while choosing different locale-sensitive display forms. Conversely, two different byte encodings can represent the same textual date. A test record should therefore identify the semantic value, locale selection, format options and relevant library/data version separately.
The Common Locale Data & Rules project supplies shared data for such services, and International Components for Unicode provides implementations using locale information. A default locale is a convenience for choosing behavior when the application does not supply an explicit choice; making the choice explicit improves reproducibility of an example.[ref]
A locale identifier is a structured name used to select a locale for a software service. It can encode language, writing system, region and additional preferences. The identifier names a requested configuration; it is not the full set of formatting or sorting rules.[ref]
In the traditional International Components for Unicode syntax, en_US identifies English with the United States region, while en_GB selects the United Kingdom region. For an original test, pass the same semantic date to a formatter twice, changing only the locale identifier. Compare the resulting text while keeping the data version and explicit format options fixed. Changing the output text does not change the stored date or its UTF-8 encoding.
Parsing a locale identifier successfully does not establish that a service has data for it. A library may use fallback resources. Reproducible software tests should therefore record the requested identifier and relevant service/data versions, and inspect the effective resource choice when that matters.[ref]
Software localization adapts a software product for a particular audience's linguistic, regional and cultural requirements. It includes translation of visible text, but can also involve dates, numbers, currencies, keyboard use, sorting and visual presentation. Software internationalization prepares the product so that these adaptations can be supplied and selected.[ref]
An original engineering example is an application that displays a transaction amount, a date and a status message. Retain the numerical amount and date as structured values; select display patterns and message resources for the intended software locale. A translated status message can then change independently of the computation that produced the amount.
Suppose the same date value is presented with a month/day/year pattern in one localized interface and a day/month/year pattern in another. Testing only whether the two displayed strings are equal would be the wrong criterion. The relevant check is whether each presentation follows its declared conventions while preserving the represented value. Parsing user input requires the corresponding conventions too.
Resource separation is one enabling design choice: localizable messages and patterns can be changed without replacing the core computation. Localization must still be checked in the running interface, where text length, direction and layout constraints interact. A translated resource file alone does not establish that every control remains readable or that every input is interpreted correctly.[ref]
This separation makes the work testable. Computational tests can examine stable values and operations, while locale-specific interface tests examine the chosen messages and formats. Both are needed to establish that a localized application still performs the intended task for its audience.
A software event represents an occurrence that a program can observe and handle, such as a key press, timer expiry or completed operation. It may carry data identifying what happened, where and to which object. An event handler performs the relevant response; an event loop commonly dispatches pending events to their destinations.
In Qt, an event object is delivered to a target object whose event method dispatches to a type-specific handler. Mouse, keyboard, resize and timer events carry different information.[ref] A queued event can be handled after the original occurrence, so event time and handling time differ. Reentrant or asynchronous handlers must also account for changes in application state between those moments.
An event handler is code invoked to respond to a particular software event, such as a key press, resize or completed operation. The event's data identifies what happened; the event handler interprets it using the application's current state. Qt dispatches an event object to its target and then to an appropriate event-specific method.[ref]
For example, a resize event handler can recompute a plot's displayed layout from the new dimensions. A later paint software event draws that layout. Keeping each response short lets an event loop handle other work promptly. When delivery is delayed, the application's state may already have changed, so the original occurrence and its eventual handling must be distinguished.
An event loop repeatedly obtains pending software events and dispatches them to their event handlers, waiting when no work is available. This lets one thread service many intermittent activities without a separate continuously running loop for each. Qt's application event loop dispatches timer, network and other software events.[ref]
Suppose a button starts a calculation that takes ten seconds. Running that calculation synchronously inside its event handler prevents the same event loop from repainting or processing further clicks during those ten seconds. Dividing the work into short steps or delegating it to another thread lets the event handler return. An event loop coordinates readiness and dispatch; it does not itself provide parallel computing for long computations.
A graphical user interface lets a user inspect and manipulate a program through visual controls such as windows, buttons, menus and text fields. A GUI widget combines a displayed representation with interaction behavior. Input events select a control or action, while application state determines what is drawn next.
For example, pressing a button can initiate a calculation and later display its result. The Event handler should not have to embed every computational detail; separating the underlying model from its view makes other interfaces and tests possible. Qt Widgets provides visual elements, layout management and event handling as separate cooperating mechanisms.[ref] A visible control is therefore an interaction interface, not an authorization boundary or proof that the requested action succeeded.
A GUI widget is an interactive or display component of a graphical user interface, such as a button, text field or list. It combines presentation, relevant state and responses to software events. Widgets can contain other widgets; a layout manager arranges them using their size requirements.[ref]
For example, a numeric-entry GUI widget stores editable text, draws it and reacts to keystrokes. The text 1e can be a legitimate intermediate editing state even when the completed value must be numeric. Separating editing behavior from the application's data model makes that distinction manageable. A disabled button conveys interface state; server-side authorization still has to decide whether the underlying action is permitted.
A software dependency is another component, tool, library or service required for some aspect of a program's construction or operation. Dependencies form a dependency graph; direct requirements can introduce additional transitive requirements. Dependency resolution selects versions satisfying the combined constraints.
For example, if one component requires library versions at least 2 but below 3, while another requires at least 3, no single library version satisfies both in one shared installation. A resolver must report the conflict or use an isolation mechanism that genuinely permits separate versions. Pip documents backtracking through candidate package versions to solve such constraints.[ref] Recording selected versions improves reproducibility, but the operating system, input data and execution settings can still affect the result.
A software library is reusable code exposed through an interface for other computer programs to call. It can supply operations such as sorting, text decoding or solving a linear system. Clients depend on the interface and its behavioral contract rather than having to copy the implementation.
A compiled software library can be linked into a computer program or supplied as a shared component loaded for execution. CMake distinguishes static, shared and other library targets in a build description.[ref] For example, two applications can call the same numerical routine with different arrays. Reusing the implementation saves duplication, while both callers must still satisfy its dimension, precision and error-handling requirements. A software package is a distribution unit and can contain several software libraries.
A dependency graph represents requirements as a directed graph. Choose an explicit edge convention: here means that component requires component . A direct edge records an immediate requirement; a directed path records a transitive requirement. Pip's resolver must discover both a requested software package's requirements and the requirements of its dependencies.[ref]
For example, if application requires software library and requires , changing can affect even without an edge . In an acyclic build dependency graph, a topological order of the reversed edges puts prerequisites first. Cycles require special treatment: the graph alone does not establish that a set of mutually dependent build steps can execute. Edge labels can additionally record required versions or build configurations.
Dependency resolution chooses compatible software package versions and their transitive requirements for a requested installation. It is a constraint satisfaction problem: choosing a version can introduce additional requirements, which may invalidate choices made earlier. Pip uses backtracking to reconsider such choices.[ref]
If requires library at version at least 2 but below 4, and requires at least 3 but below 5, the shared allowed interval is versions at least 3 but below 4. If instead requires at least 4, no single version satisfies both. Downloading more candidates cannot remove that contradiction. Recording the selected versions preserves a solution to those constraints; it does not by itself record all execution conditions.
A software package is a unit of software distribution or installation, typically containing code, associated files and metadata describing its identity, version and software dependencies. It may contain an application, several software libraries or supporting data. The exact packaging format determines which metadata and installation operations are available.
For example, installing a numerical application can also require installing a compatible array software library. Pip reads requirements from Python distribution files and uses dependency resolution to choose compatible versions.[ref] One distribution unit need not correspond to one importable module. Distinguishing the shipped artifact from the names imported by code avoids assuming that every import name is also an installable package name.
Software engineering develops and maintains software through systematic design, implementation and evaluation. It connects requirements to program structure, verification, deployment and later change. For example, altering a data format can require changing its parser, stored files and clients together; a locally correct code edit does not by itself ensure a working system. Software testing, version control and explicit interface contracts help manage these dependencies. The subject includes technical trade-offs between correctness, performance, maintainability and the constraints of the intended users.
Formal methods use mathematically defined models, specifications and reasoning techniques to describe and analyze systems. They include writing a formal specification, proving properties through formal verification, exploring a finite model by model checking and deriving information through static program analysis. A method's guarantee is relative to its model and assumptions.
For example, a loop summing an array can maintain the invariant that the current accumulator equals the sum of the entries already visited. Initialization, preservation by one iteration and the exit condition establish the returned sum; a separate termination argument shows that an answer is reached. Arithmetic and array bounds must be specified, since a proof using unbounded integers need not describe overflowing machine arithmetic.[ref]
Static program analysis derives information about a computer program from its representation and programming language semantics, without executing each concrete input case. An analysis commonly approximates many possible executions at once. Data-flow analysis propagates such information between locations in a control-flow graph.[ref]
For example, after if c then x=1 else x=2, an analysis can infer that x belongs to at the join and hence is nonzero. More complicated paths may force a less precise answer. A conservative warning can therefore flag a possible failure that no actual input reaches. The guarantee depends on what the approximation includes: failing to model an external call or integer overflow can invalidate an apparent proof.
Computer programming constructs, tests and revises programs that express computations in an executable or interpretable form. It connects a problem specification to data representations, algorithms, interfaces and error handling. Writing syntax is one part; deciding what results and failures should mean is also part of the task.
For example, computing an arithmetic mean requires representing the observations, accumulating their sum and dividing by the count. The computer program must also define what happens for an empty input, unavailable data or a number representation that cannot hold an intermediate result. Choosing an algorithm and testing ordinary examples does not automatically settle those boundary cases. A useful implementation makes its assumptions visible and supplies evidence through tests, analysis or proofs appropriate to the claim.
A computer program specifies operations or constraints that an implementation can execute or interpret. Its representation can be source code, bytecode or machine code; the same intended computation can have several computer program representations. Its behavior depends on the language semantics, input and execution environment.
For example, a source expression adding two variables is not yet one fixed result. A compiler can translate it into lower-level operations, while an interpreter or CPU performs those operations for particular values. Calling a library or reading a file makes additional parts of the environment relevant. A computer program is consequently distinct from its one observed execution trace and from the abstract algorithm it implements: two programs can implement the same algorithm with different representations, error behavior or resource costs.
A modeling language for describing software structures and behavior. A class diagram records types and relationships; a sequence diagram records ordered interactions; a state diagram records states and event-triggered transitions.
Describe the possible states of a system and transitions triggered by events, optionally constrained by guards and accompanied by actions. The diagram emphasizes a component's lifecycle and permitted reactions. It can describe many interaction traces, while a sequence diagram focuses on the temporal ordering of messages in an interaction.
Describe an interaction through participant lifelines and ordered messages. Time usually proceeds downward. Calls, replies and execution intervals show how participants cooperate in one scenario, with optional fragments for alternatives or repetition. The diagram emphasizes message ordering across participants.
A structural diagram showing software classes or object interfaces, their attributes and operations, and relationships such as class inheritance and associations. A hollow triangle points toward a more general classifier; a dashed realization line distinguishes implementation of an interface. A plain association does not assert exclusive lifetime ownership of the referenced object.
A strong whole-part relationship in a UML class diagram, conventionally marked by a filled diamond at the whole. It expresses exclusive composite ownership and associated lifetime constraints. A stored reference or observer-registration association alone does not establish composition: the same observer may be registered with several subjects unless the design forbids it.
The organization of a software system's major components, their responsibilities and their interactions. A software architecture constrains which components own state and which may request or observe changes. Model-view-controller is one example for interactive applications.
Separate an application's domain state and rules into a model, its presentation into a view, and interpretation of user actions into a controller. The controller requests model operations; the view renders coherent model state. A playlist model, for example, owns song order independently of whether a menu, button or keyboard action requests a move. The Observer pattern often carries model-change notifications to views, but model-view-controller defines responsibilities rather than requiring a particular notification mechanism. This supports separation of concerns and testing domain logic independently of a graphical interface.
Assign distinct responsibilities to components with explicit interfaces, so one responsibility can change without requiring unrelated changes elsewhere. For example, a model-view-controller application separates domain state, presentation and input interpretation. The Observer pattern can communicate a coherent state change to several views while keeping concrete display details out of the model. The separation should follow actual responsibilities; multiplying classes without a clear boundary does not establish it.
Change internal software structure while preserving its specified observable behavior. Extracting a coherent operation into a named method or moving a responsibility behind an interface can improve clarity without changing results. Regression tests provide evidence of preservation, while contracts and invariants supply stronger reasoning about the changed structure.
An observable feature of source code suggesting a possible underlying design problem. It prompts investigation rather than proving a defect. Duplicate code, feature envy and a long method suggest potential transformations, and context can justify leaving an apparent smell unchanged.[ref]
An operation depends heavily on another object's data or responsibilities. Moving the operation, or the relevant coherent part, to that object's abstraction can reduce exposed internals and misplaced coupling. The appropriate home follows responsibility and behavior, not merely the number of field references.[ref]
A method whose size or mixture of responsibilities makes its purpose and structure difficult to follow. Extract meaningful steps with clear interfaces, preserving behavior. A fixed line-count threshold is not a proof of poor design; the useful question is whether the method hides coherent separable responsibilities.
Multiple fragments may encode the same decision or responsibility, increasing the risk that a later correction reaches only one copy. A shared operation or component can consolidate genuinely shared knowledge. Independent concepts that merely look similar should not be forced into a common abstraction prematurely.
A software container runs one or more operating-system processes with a controlled view of files and other operating system resources. A container image supplies a packaged filesystem and execution configuration; starting it creates running operating-system processes with additional runtime state. A software container typically shares the host operating-system kernel, whereas a virtual machine can run its own operating-system kernel.[ref]
For example, two analyses can use different versions of the same software dependency without placing both versions in one shared installation. Reusing a container image helps reproduce those dependencies. Results also depend on the input data, configuration, mounted files and compatible host facilities. Packaging the software therefore records part of a reproducible calculation; the scientific assumptions and numerical methods still need their own justification.
A container image packages a filesystem description and execution configuration used to create software containers. It contains such things as application files, libraries and a default command. Image layers and content identifiers permit sharing unchanged content; a running container adds execution state and usually a separate writable layer.[ref]
For example, two containers can start from the same image while receiving different input files and environment settings. Their results need not match merely because their image matches. A container image digest identifies particular image content, while a movable tag can later refer to a different image. Most containers share a host kernel, so an image is not necessarily a complete guest operating-system installation. Reproducing a calculation also requires its inputs, configuration and compatible host facilities.
A container image digest identifies particular container image content through a cryptographic hash function, commonly written as an algorithm name followed by a hexadecimal value. Unlike a movable tag, a digest fixes the referenced content. Image manifests identify the configuration and layers; multi-platform indexes can refer to several platform-specific manifests.[ref]
For example, a tag such as analysis:stable can point to different content next month. Recording an image reference with a digest makes that change detectable and allows the same referenced content to be requested again. It does not establish who produced the image, whether its software is correct, or that required input data and host facilities are identical. Those claims need separate evidence.
Version control records identifiable revisions of files and their history, making it possible to inspect an earlier state and determine what changed. A version-control commit records a revision; a version-control branch permits a line of development to proceed alongside another; version-control merging combines changes and exposes conflicts requiring a decision. These operations make collaboration and investigation of software regressions practical.[ref]
Suppose a numerical simulation produced an unexpected result after a formula changed. Recording the version-control commit with the result identifies the exact source revision, so the old and new formulas can be compared and rerun with the same inputs. Reproducing the full calculation also requires the relevant data, software dependencies and execution settings: file history is one part of that record.
Git is a distributed version control system whose history records version-control snapshots linked by version-control commits. A local repository can contain history and support comparisons and new version-control commits without a connection to a central server. Version-control branches name movable tips of that history.[ref]
Suppose two collaborators start at the same version-control commit and each records a different change. Their new version-control commits share a parent in the commit graph. Exchanging repository objects makes both histories available; version-control merging can then combine their work, possibly exposing a merge conflict. The stored version-control snapshot identifies recorded file contents, while external datasets and installed software dependencies still need their own reproducibility record.
Version-control merging combines development histories and their changes into a result intended to preserve both lines of work. In Git, a usual three-way merge compares two branch tips with a common base. Independent edits may combine automatically; overlapping or incompatible edits can produce a merge conflict requiring a decision.[ref]
If one tip is already an ancestor of the other, a fast-forward can move the branch reference without creating a separate merge commit. Otherwise a merge commit can record the combined snapshot and both parents. A textually clean merge can still be semantically wrong: one branch can change a function's contract while another adds a caller using the old contract. Testing and review of the combined result remain distinct from resolving text conflicts.
A merge conflict occurs when a version-control merging operation cannot automatically reconcile changes under its merge rules. For a typical three-way merge, the tool compares two revisions with their common base. Incompatible edits to the same region, or deletion on one side and modification on the other, can require a human decision.[ref]
For example, the base contains threshold=5; one side changes it to 7 and the other to 9. Choosing either value or a new value requires understanding the intended behavior. After editing the combined result, the resolver records that decision in version control. A textually conflict-free merge can still break a function's contract, so successful automatic combination supplies weaker evidence than software testing of the integrated program.
A version-control branch names a line of development that can progress alongside another. In Git, a branch is a movable reference to a commit; it does not require an independent copy of every file. New commits normally advance the currently checked-out branch while older commits remain part of its ancestry.[ref]
For example, two branch names can initially reference the same commit. Committing a change on one moves that reference and leaves the other at its old commit. Their shared history is represented once in the commit graph. Deleting a branch name therefore removes a reference rather than automatically erasing every commit it once named; reachability from other references and later storage management determine which objects remain available.
A version-control commit records an identifiable revision together with history metadata. In Git, a commit names a tree snapshot and parent commits, alongside author/committer information and a message. An initial commit has no parent; an ordinary commit has one, while a merge can have several.[ref]
The parent links form a commit graph, allowing a tool to compare revisions and traverse ancestry. Rewriting a commit's recorded content or metadata creates a different commit object rather than silently modifying the old one. A commit identifies the recorded source snapshot; reproducing a calculation also requires external data, selected dependencies and execution settings that were not necessarily stored in that snapshot.
A version-control snapshot records the logical state of tracked files at a revision. In Git, tree objects describe directory entries and refer to content objects; a version-control commit identifies the root tree alongside history metadata. Unchanged content can be shared among many version-control snapshots.[ref]
If a repository contains a.txt and b.txt, changing only a.txt creates a new logical version-control snapshot containing the new a.txt and unchanged b.txt. It does not require a second physical copy of every byte. Two version-control commits can identify the same version-control snapshot but have different parents or messages. The recorded files and the ancestry explaining how they arose are therefore distinct information.
A commit graph represents version-control commits as vertices and their parent relationships as directed edges. In Git, taking an edge from a child to each parent gives a directed acyclic graph: an existing version-control commit has fixed parents, and a newly created child cannot become its own ancestor.[ref]
For example, if and both descend directly from , and merge records parents , its edges are , , and . The merge retains both lines of ancestry. A version-control branch labels a selected tip; deleting that label does not by itself remove every reachable vertex. This graph supports ancestry tests and finding common bases for version-control merging.
An implementation defect that makes a program behave contrary to its intended specification. A faithfully implemented but inappropriate scientific model is a different kind of error.
Software testing executes a program under specified conditions and compares its behaviour with an expected result or property. A unit test may check one function; an integration test checks interacting parts; a regression test guards against recurrence of a known failure. For a sorting routine, useful properties include ordered output and preservation of the input multiset. Passing finitely many tests cannot generally prove correctness for every input. The choice of cases and the quality of the test oracle determine what evidence a test actually supplies.
A test case specifies conditions, inputs, an operation to perform and the expected result or acceptance property for software testing. Its test oracle must distinguish success from failure.[ref] Merely executing a computer program without checking an outcome supplies weaker evidence.
For example, a sorting algorithm given 3,1,3 should return 1,3,3. A stronger test oracle checks both sortedness and preservation of the input multiset; checking only sortedness would accept an empty result. The test case also needs a policy for equal elements if their original order matters. Explicit preconditions and expected outcomes make a failure reproducible and help a later reader understand which contract the test case exercises.
A differential test runs implementations intended to realize the same contract on matched inputs and compares their observable results. Disagreement reveals an inconsistency without requiring a precomputed answer. Hypothesis explicitly supports comparisons using either a trusted reference or several implementations none of which is fully trusted.[ref]
For example, compare a new sorting algorithm with a simple reference on lists containing duplicates, negative values and empty input. Compare results under the specified ordering contract; unspecified differences are not failures. Agreement alone cannot exclude a shared software bug. Floating-point arithmetic may require a justified numerical tolerance, and comparison of failures as well as successful outputs requires an explicit error contract.
A software regression is a loss of previously working behavior after a change. The behavior may concern outputs, accepted inputs, performance, reliability or compatibility. A regression is defined against an intended contract and earlier behavior, rather than every difference from an old implementation.
For example, a parser update can correctly handle a new syntax form while accidentally rejecting an older supported form. A regression test records a case and its expected behavior so that the failure is detected on later changes. Another change can leave outputs unchanged but make a common workload much slower; that requires a performance criterion and representative workload. Passing an existing suite only supplies evidence for its covered cases and oracles, so fixing a discovered regression often includes adding a focused new test.
A test oracle determines whether an observed test result is acceptable. It can be an explicitly expected output, a mathematical property, a trusted reference implementation or another justified source of comparison. Generating many inputs without an oracle does not by itself establish whether the results are correct.
For a sorting routine, an oracle can check both sortedness and preservation of the input multiset. Returning an empty sequence passes a sortedness check but fails preservation for a nonempty input. A differential test instead compares implementations; a disagreement exposes a problem without necessarily identifying which implementation is wrong. Hypothesis documents both reference-oracle comparisons and differential comparisons in its equivalence-test generator.[ref]
Test a conversion together with its intended inverse. Equality of representations may need normalization, while equality of numerical values can be limited by floating-point rounding or truncation. Distinct strings can encode the same value, so a value round trip and a character-for-character round trip are different properties.
An independent oracle is still needed: the wrong functions and satisfy both composition identities on integers, although neither implements an intended identity conversion. Thus passing inverse-consistency tests does not alone establish the specification of either conversion.
Select tests by dividing an input domain into classes expected to exercise the same relevant behavior, then choosing representatives, including boundaries. Integer-only and point-containing inputs can exercise different paths in a positional-number parser. The classes are part of the test design, not a proof that one representative detects every possible defect in its class. Invalid-format classes need an explicit validation contract before an expected rejection can be asserted.
Choose tests using knowledge of internal structure, such as branches, paths or representation cases. Covering all branches is still not generally a proof of correctness for every input. This selection criterion can be combined with specification-based tests within test-driven development.
Choose tests from externally specified input/output behaviour without using the implementation's internal control structure as the selection criterion. Boundary cases can be black-box tests when the boundary comes from the contract. Test authorship by the implementer does not alone determine this classification.
A development cycle that starts with a small expected-to-fail behavioural test, adds implementation until it passes, and refactors while preserving the tests. Its workflow is distinct from the source of test cases: public-contract tests are black-box tests, while implementation-informed branch cases can be white-box tests. The practice does not by itself prove completeness of the test suite.
Continuous integration is a software engineering practice in which collaborators frequently combine small changes into a shared main line, conventionally at least daily, and check each integration through an automated software build and software testing. Fast feedback makes incompatible assumptions visible while the changes are still small. A server that tests isolated development branches contributes automation; frequent integration into the shared main line is the defining collaboration practice.[ref]
For example, one developer changes a parser to return a new data structure, while another changes code that consumes the result. Each component can pass its own isolated unit tests while their combination fails. Integration testing of the shared revision exercises that interface and exposes the mismatch. The build result should identify the tested source revision so that a failure can be reproduced.
An automated software build turns declared source inputs and dependencies into outputs through repeatable tool steps, such as code generation, compilation, linking and packaging. A build description defines those steps and their dependencies; a build system decides their order and may reuse outputs whose relevant inputs have not changed.
For example, changing a header can require recompiling several source files before relinking a computer program. Omitting that dependency can produce a stale executable even when every individual compiler invocation succeeds. In continuous integration, the automated build provides a repeatable check of the integrated revision, often combined with tests.[ref] Repeatability requires identifying tool versions, generated inputs and configuration as well as the main source files.
A build system executes declared transformations from source files and other inputs to build outputs, respecting their dependency graph. Common steps include code generation, compilation, linking and packaging. CMake describes builds through targets such as executables and software libraries, with dependencies between them.[ref]
For example, main.o and math.o must exist before they can be linked into an executable. If only the source for math.o changes, an incremental build can reuse main.o, rebuild math.o and relink. Reuse is valid only when every relevant requirement has been tracked: a changed header, tool option or generated input can invalidate an apparently unchanged output. Correct dependency declarations are part of build correctness.
Testing relations between outputs for related inputs when an exact reference answer is unavailable. The expected relation must be valid for the scientific problem.
Generating cases and checking general properties such as conservation, symmetry or bounds rather than only selected input-output pairs.
Checking whether a software change alters previously established behavior. A reference output must first be justified rather than merely copied from old software.
Testing interactions between software components, including data formats, units and ordering.
Testing a small software component against a specified expected behavior.
Test coverage measures which selected program elements a test run exercises. Statement coverage counts executed statements; branch coverage counts executed control-flow alternatives. Exercising both sides of a conditional can reveal gaps missed by statement coverage, but even full branch coverage need not exercise all paths or meaningful value combinations. Coverage records execution, not whether assertions checked the right behaviour. A suite that calls every function and verifies nothing can have impressive coverage while failing to detect wrong results.
A software engineer designs, implements and maintains software systems, applying software engineering methods to requirements, interfaces and long-term change. The work can include selecting representations, writing and reviewing code, developing software testing, diagnosing failures and measuring performance. For example, a storage-format change requires reasoning about compatibility and migration as well as a serializer's local correctness. The role overlaps with programming but often includes responsibility for how components behave together over time.
Guido van Rossum created Python, beginning implementation during the 1989 Christmas holidays and publishing it to USENET in February 1991, according to his account preserved in the Python FAQ. The motivation included making system administration easier than using C programs or shell scripts for the Amoeba environment, while designing an extensible language rather than an Amoeba-only tool.[ref]
Python combines high-level data structures, interactive execution and access to operating-system services. An interpreter can support quick experiments, while modules and extension interfaces let larger programs reuse code and connect to lower-level implementations. This technical combination helps explain the design's role without treating ease of writing an example as a guarantee of correctness or performance.
Figure 1.
Guido van Rossum, portrait published for PyCon US2023
.
Ben Straub coauthored the 2014 second edition of Pro Git by Scott Chacon and Ben Straub with Scott Chacon. The book explains Git through snapshots, object relationships, branches and collaborative workflows.[ref]
Its branch model gives a useful technical distinction: a branch name refers to a commit, while the commit and its parent links record history. Moving a branch reference does not rewrite every historical file. Understanding that representation makes merging, recovery and inspection easier to reason about than treating each command as an unrelated operation.

Tagged

Scott Chacon coauthored Pro Git by Scott Chacon and Ben Straub, whose second edition appeared in 2014. With Ben Straub, he presents version control through its underlying object and history model as well as practical workflows.[ref]
A key example is the separation of a recorded snapshot from a branch reference pointing into its history. That distinction explains why branching is inexpensive and why a combined history can retain multiple parents after a merge. The book connects these mechanisms to collaboration, making the stored representation part of the explanation instead of only listing commands.

Tagged

A software engineer and author writing about refactoring and software design. His short essay Code Smell by Martin Fowler explains the distinction between noticing a symptom and establishing the design problem behind it.
Figure 1.
Martin Fowler speaking in 2015
. Photograph by Webysther Nunes, at the Institute of Mathematics and Statistics of the University of São Paulo. CC BY-SA 4.0. Source.

Tagged

Greg Wilson is the first-listed author of Best Practices for Scientific Computing by Greg Wilson and others, which connects reliable scientific results to maintainable software. Its recommendations include software testing, version control, small reusable components and review of changes. These practices make it possible to inspect how an analysis was produced and detect mistakes when its implementation changes.[ref]

Tagged

David Howells is a software engineer who has contributed technical documentation for the Linux kernel. With Paul E. McKenney, he authored a guide to circular buffers, including the interaction between index arithmetic and synchronization.[ref]
Their example separates the producer's insertion index from the consumer's removal index. With one producer and one consumer, memory barriers publish initialized data before an index advertises it as available. This illustrates why a correct data structure needs both an indexing convention and an account of what concurrent operations can observe.[ref]

Tagged

Articles by others on the same topic (1)