Blog
-
C++ Memory Leaks: Causes, Detection, and Prevention
Understand heap leaks: lost pointers, exception paths, shared_ptr cycles. Valgrind, ASan/LSan, heap profilers, Visual Studio, RAII, suppression files, and CI.
-
C++ Copy & Move Constructors: Rule of Five and RAII
Rule of Five in C++: copy/move constructors and assignment, deep copy vs shallow, self-assignment, noexcept moves, copy elision, and FileHandle patterns.
-
C++ Alignment and Padding: Why sizeof Surprises You, alignas, #pragma pack and False Sharing
Where struct padding comes from, how member order changes sizeof, what alignas and #pragma pack really do, why packed structs are risky, and false sharing.
-
C++ Performance Optimization Case Study
Speeding up a slow C++ REST endpoint step by step: a baseline harness, perf profiling, a hash index, fewer string copies, reserved buffers, and why parallel JSON is the step to doubt.
-
C++ Lock-Free Programming: CAS, ABA, and Memory Order
Replace mutex hot spots with atomics and CAS: a lock-free stack, Michael-Scott and SPSC queues, picking a memory_order, and fixing ABA with tagged pointers.
-
Bubble, Selection and Insertion Sort: Time Complexity and Why Insertion Sort Wins on Nearly Sorted Data
Bubble, selection and insertion sort in Python with their time complexity, why insertion sort wins on nearly sorted data, and how Timsort fits in.
-
Quick Sort, Merge Sort and Heap Sort: How O(n log n) Sorting Works and When Each Wins
Quick, merge and heap sort in Python: how each reaches O(n log n), when quick sort degrades to O(n^2), which are stable or in-place, and Kth largest.
-
Dynamic Programming: Memoization vs Tabulation and How to Spot a DP Problem
Dynamic programming from first principles: when it is valid, defining the state, memoization vs tabulation, lru_cache recursion limits, and table sizing bugs.
-
Angular for Enterprise Apps: Components, Services, DI, Signals and Standalone Components
Modern Angular with standalone components: DI and services, HttpClient, routing, typed reactive forms, Signals vs RxJS, and NullInjectorError fixes.
-
Building an Admin Dashboard with Ant Design: Forms, Tables and Theming
Ant Design v5 admin screens in React: Form instances and rules, typed Table columns, server-side paging, design tokens, and static message pitfalls.