Skip to content

Instantly share code, notes, and snippets.

View MangaD's full-sized avatar
📚
studying

David Gonçalves MangaD

📚
studying
View GitHub Profile
@MangaD
MangaD / exception_safety.md
Created December 11, 2025 22:43
Exception Safety in Programming: A Complete and Comprehensive Guide

Exception Safety in Programming: A Complete and Comprehensive Guide

CC0

Disclaimer: ChatGPT generated document.

Exception safety is one of the most essential yet frequently misunderstood aspects of robust software engineering. As programming languages evolve and error-handling mechanisms become more complex, understanding how to write exception-safe code is indispensable for building reliable, maintainable, and secure systems. This article provides an exhaustive exploration of exception safety, from foundational principles to advanced patterns and best practices, with special attention to languages like C++, Rust, Java, and Python, where exceptions or exception-like mechanisms shape control flow.


@MangaD
MangaD / slices_strides.md
Created December 11, 2025 21:40
Slices and Strides in Programming — A Complete, Intuitive, and C++-Focused Guide

#️⃣ Slices and Strides in Programming — A Complete, Intuitive, and C++-Focused Guide

CC0

Disclaimer: ChatGPT generated document.

In programming, two closely related concepts frequently appear when working with sequences, arrays, strings, buffers, tensors, or multidimensional data:

  • Slice — a contiguous subset or “view” into a sequence
  • Stride — the step size used when walking through memory or selecting elements
@MangaD
MangaD / cpp_valarray.md
Last active December 13, 2025 21:50
C++: `std::valarray`

C++: std::valarray

Grok summary

CC0

Disclaimer: Grok generated document.

std::valarray is a C++ standard library container introduced in C++98 specifically for high-performance numerical computations on arrays of numeric types (like float, double, int, etc.). It was designed with the intention of allowing aggressive optimizations for mathematical operations, especially on entire arrays at once.

@MangaD
MangaD / heap_data_structure_vs_memory.md
Created December 3, 2025 23:34
The Two Heaps of C++: A Complete, Correct, and Expert-Level Guide

The Two Heaps of C++: A Complete, Correct, and Expert-Level Guide

CC0

Disclaimer: ChatGPT generated document.

Everything you wanted to know about heaps — the data-structure heap and the dynamic memory heap — in one place.


@MangaD
MangaD / Bookkeeping.md
Created December 3, 2025 23:26
Bookkeeping

Bookkeeping

CC0

Disclaimer: Grok generated document.

In computer science and software engineering, bookkeeping refers to the routine, non-core administrative work that a program or system must perform to manage its internal state, resources, or metadata — even though this work doesn’t directly contribute to the main algorithm or business logic.

It’s usually considered “overhead” or “housekeeping” tasks that are necessary for correctness, efficiency, or maintainability, but are boring and mechanical compared to the “interesting” parts of the problem.

@MangaD
MangaD / priority_queue.md
Created November 30, 2025 11:43
C++: `std::priority_queue`

C++: std::priority_queue

CC0

Disclaimer: ChatGPT generated document.

std::priority_queue is a container adaptor in C++ that provides constant-time access to the largest (or highest priority) element. It’s implemented on top of another container (typically a std::vector) and uses a heap (by default, a max-heap) to maintain ordering.

It is ideal when you frequently insert items and need to efficiently retrieve (and remove) the highest-priority element.

@MangaD
MangaD / batch_coalesce.md
Created November 30, 2025 10:56
Batch and Coalesce

Batch and Coalesce

CC0

Disclaimer: ChatGPT generated document.

In computing, batch and coalesce refer to two different concepts used to optimize performance, though they’re often related in scenarios involving data processing, memory operations, or network requests.


@MangaD
MangaD / IDL_vs_Schema.md
Created November 29, 2025 22:50
IDL vs Schema

IDL vs Schema

CC0

Disclaimer: ChatGPT generated document.

The terms IDL (Interface Definition Language) and schema are often used in data serialization, communication protocols, and API design, but they serve different purposes and operate at different layers.


@MangaD
MangaD / CloudOrchestration.md
Created November 29, 2025 14:48
Cloud Orchestration

Cloud Orchestration

CC0

Disclaimer: ChatGPT generated document.

Cloud orchestration is the automated coordination, management, and arrangement of cloud services, resources, and workloads to deliver a cohesive application or system. In essence, it allows multiple cloud components (compute, storage, networking, security, CI/CD, etc.) to work together efficiently with minimal manual intervention.

Think of it as the "conductor" of cloud operations, whereas cloud automation is more like individual musicians playing their part.

@MangaD
MangaD / EdgeComputing.md
Created November 29, 2025 12:38
Edge Computing

Edge Computing

CC0

Disclaimer: ChatGPT generated document.

Edge computing is a distributed computing paradigm that brings computation and data storage closer to the sources of data (such as sensors, devices, or local servers), rather than relying on centralized cloud data centers. It’s designed to reduce latency, lower bandwidth usage, improve reliability, and enable near-real-time processing for applications that require immediate response.

Below is a thorough and exhaustive deep dive—starting from foundational concepts to advanced architectural patterns, industry applications, tools, challenges, and future trends.