Software Engineering Demo Examples

Runnable Python 3 snippets and engineering templates illustrating core CSE concepts across logic, architecture, testing, and security. Click View to inspect any file in the code viewer.

For recommended next roadmaps across DSA, Paradigms, and specializations, see References & Next Roadmaps.

Phases 1–3: Logic, Architecture & Patterns

Boolean equivalence verification, dependency injection, and strategy-pattern decoupling.

#ExampleDescriptionLink
1Boolean Truth TableVerifies De Morgan's Laws exhaustively over Boolean inputs.View
2Dependency InjectionDecouples domain service logic from storage via a Protocol interface.View
3Strategy PatternReplaces branching pricing conditionals with a dispatch table of functions.View

Phases 1 & 4: Testing, Security & Prompts

Boundary-focused unit tests, constant-time HMAC verification, and structured engineering prompt specs.

#ExampleDescriptionLink
4Unit Test BoundariesSelf-contained unittest suite checking normal, boundary, and error paths.View
5HMAC Signature CheckConstant-time webhook verification using hmac.compare_digest.View
6Prompt Specification TemplateStructured Context / Task / Constraints / Acceptance prompt format.View