Tag: Interface
3 posts
-
TypeScript Interfaces: Object Shapes, Excess Property Checks, Declaration Merging, and interface vs type
TypeScript interfaces in practice: optional and readonly properties, index signatures and noUncheckedIndexedAccess, excess property checks, extends vs intersections, declaration merging and declare global, and what implements does not do.
-
C++ Interface Design and PIMPL: Cut Compile Dependencies
Use the PIMPL idiom to hide implementation details, shrink rebuild graphs, and keep a stable binary layout for shared libraries and plugins.
-
The Adapter Pattern in C++: Object vs Class Adapters for Legacy and Third-Party APIs
Adapter pattern in C++: object vs class adapter, payment/API examples, unique_ptr—bridge incompatible interfaces for legacy and third-party code.