1/40
Vocabulary flashcards covering topics from Lectures 4, 6–11 and labs, including CI/CD, OOP, iterators, SOLID principles, code smells, tuning, and testing.
Continuous Integration (CI)
A practice where developers merge code often, and each merge is verified by an automated build and automated tests to catch errors early.
Continuous Delivery (CD)
Continuous integration extended with an automated release mechanism that requires a manual button press to deploy.
Continuous Deployment
A deployment pipeline where every verified release is deployed automatically without any manual button press.
Code Coverage
A metric measuring how much code runs, mainly during testing, calculated as total lineslines executed by tests×100.
Interface
A description of what an object is (and isn't) and what it can do.
Encapsulation
The bundling of data and methods that operate on it, restricting direct access using private or protected visibility.
Abstraction
The principle of hiding complex implementation logic from the user, analogous to a TV remote.
Abstract Class
A class that contains at least one pure virtual method (such as virtualvoidsound()=0;) and cannot be instantiated.
Iterator
An object that points to an element within a container to traverse its elements.
Bidirectional Iterator
An iterator capable of moving both forward and backward sequentially between neighbors, used in containers like list, set, and map.
Random Access Iterator
An iterator that can jump directly to any element in constant time, used in containers like vector and deque.
advance(it, n)
An iterator utility function that modifies the given iterator by moving it n positions.
next(it, n)
An iterator function that returns a new iterator advanced by n positions while leaving the original iterator unchanged.
prev(it, n)
An iterator function that returns a new iterator decremented by n positions while leaving the original iterator unchanged.
Single Responsibility Principle (SRP)
The design principle stating that a class should have one single responsibility and one reason to change.
Open-Closed Principle (OCP)
The design principle stating that software entities should be open for extension but closed for modification.
Liskov Substitution Principle (LSP)
The design principle stating that subtypes must be substitutable for their base types without breaking program correctness.
Interface Segregation Principle (ISP)
The design principle stating that no client should be forced to depend on methods it does not use.
Dependency Inversion Principle (DIP)
The design principle stating that high-level modules should not depend on low-level modules; both should depend on abstractions.
Template Method Pattern
A behavioral design pattern that defines the skeleton of an algorithm in a base class, allowing subclasses to fill in specific steps.
Scope
The region or duration in code where a variable is known and can be referenced.
Span
The count of statements between consecutive references to a given variable.
Average Span
The arithmetic mean of all spans between consecutive references to a variable.
Defensive Programming
A coding methodology adopting 'garbage in, nothing out' to handle or prevent unexpected behavior from bad input using errors and exceptions.
Assertion
A mechanism used to verify conditions and restrict behavior for situations that should never occur, which are stripped when disabled (e.g., by NDEBUG).
Refactoring
The process of restructuring internal code to make it easier to understand and modify while leaving external behavior unchanged.
Code Tuning
The practice of optimizing working code to make it faster or more resource efficient.
Short-Circuit
A code tuning and logical evaluation technique where testing stops as soon as the final boolean result is known.
Loop Fission
A loop optimization technique in which a single loop is split into two or more separate loops.
Loop Fusion
A loop optimization technique in which multiple loops are merged into a single loop.
Loop Interchange
Swapping the nesting order of loops so memory is accessed sequentially according to its layout in memory.
Test-Driven Development (TDD)
A software development process where a failing test is written first, followed by minimal code to pass the test, followed by refactoring.
AAA Pattern
The structure of a unit test organized into Arrange (set up SUT), Act (invoke functionality), and Assert (verify results).
ASSERT_*
A fatal Google Test assertion macro that terminates the current test function immediately upon failure.
EXPECT_*
A non-fatal Google Test assertion macro that registers a failure but allows the test function to continue running.
F.I.R.S.T.
The five essential qualities of clean unit tests: Fast, Independent, Repeatable, Self-validating, and Timely.
Stub
A dummy component used in top-down integration testing to simulate a module that is called by the unit under test.
Driver
A testing harness used in bottom-up integration testing to simulate a caller that invokes the module under test.
Smoke Testing
Preliminary testing performed to determine whether a software build is stable enough to proceed with further, more detailed testing.
Regression Testing
Re-running existing test suites after changes are made to ensure that new code has not broken previously working functionality.
Intellectual Honesty
A professional quality of admitting mistakes, acknowledging the limits of one's expertise, understanding warnings, and providing realistic estimates.