Archives
All the articles I've archived.
-
Rule of Three, Five and Zero in C++: Resource Management
Master modern C++ resource management. Understand the historical evolution from the Rule of Three to move semantics in the Rule of Five, and why the Rule of Zero is the gold standard.
-
C++ Shallow Copy vs Deep Copy Explained
Understand the vital difference between shallow copy and deep copy in C++. Learn how pointer copying causes double deletion and how to implement custom deep copying.
-
C++ Copy Constructor: How Object Copying Works
Master the C++ copy constructor. Understand copy initialization, why parameters require const references, the difference from operator=, and resource ownership.
-
Composition vs Inheritance in C++: Object Design Trade-Offs
Explore the architectural trade-offs between composition and inheritance in C++. Learn when to use 'has-a' vs 'is-a', coupling dynamics, and reusability.
-
Function Overloading vs Function Overriding in C++
A definitive side-by-side comparison of function overloading and function overriding in C++. Compare signatures, binding time, virtual dispatch, and name hiding.
-
C++ Abstraction: Abstract Classes and Pure Virtual Functions
Master abstraction in C++. Learn how pure virtual functions and abstract classes decouple interfaces from implementations using a complete payment gateway system.
-
C++ Polymorphism: Compile-Time vs Runtime Polymorphism
Master polymorphism in modern C++. Understand compile-time vs runtime polymorphism, virtual functions, dynamic dispatch, the override specifier, and virtual destructors.
-
C++ Inheritance: Base Classes, Derived Classes and Access
Learn C++ inheritance from the ground up. Understand base and derived classes, access behavior under public inheritance, constructor call order, and the is-a relationship.
-
C++ Encapsulation: Data Hiding, Getters and Setters
Master encapsulation in C++. Understand how bundling state with behaviors, data hiding, and invariant validation protect your software from state corruption.
-
C++ Constructors and Destructors Explained
Master object lifecycle in C++. Learn default and parameterized constructors, member initializer lists, destructor execution order, and RAII foundations.
-
C++ Classes and Objects: A Beginner's Guide
Master the foundations of C++ Object-Oriented Programming. Understand classes as user-defined blueprints, object state and behavior, access specifiers, and the this pointer.
-
Python: Control Flow and Core Data Structures
A comprehensive guide to Python control flow and core data structures covering branching conditionals, loops, lists, tuples, sets, dictionaries, comprehensions, and Big-O performance.
-
Mathematics Formula Cheat Sheet
A compact yet comprehensive mathematical formula cheat sheet covering arithmetic, algebra, calculus, coordinate geometry, trigonometry, matrices, probability, statistics, and discrete mathematics.
-
Python Fundamentals
A comprehensive guide to Python fundamentals covering architecture, CPython execution model, syntax rules, variables, memory mechanics, data types, operators, and error diagnosis.
-
const in C++: Constants, const Pointers, References, and constexpr
Master const correctness in modern C++. Understand const variables, const references, pointer constness variations, const member functions, and constexpr.
-
Pass by Value vs Pass by Reference in C++: Performance and Mechanics
A definitive guide to parameter passing in C++. Master pass by value, pass by reference, pass by const reference, CPU register mechanics, and real-world performance trade-offs.
-
References in C++: Aliases, Memory Mechanics, and Pointers Compared
Master C++ references. Learn how aliases operate in memory, const reference binding, reference vs pointer trade-offs, and how to avoid dangling references.
-
Pointers in C++: Memory Addresses, Dereferencing, and Heap Basics
A comprehensive guide to pointers in modern C++. Understand memory addresses, dereferencing, nullptr, pointer arithmetic, dynamic heap allocation, and memory safety.
-
Strings in C++: std::string vs C-Style Strings and Practical Operations
Master string manipulation in C++. Compare modern std::string with legacy C-style char arrays, learn concatenation, searching, slicing with substr, and input handling.
-
Arrays in C++: Memory Layout, Indexing, and Modern Alternatives
A complete guide to arrays in C++. Understand contiguous memory layouts, zero-based indexing, multidimensional arrays, array decay in functions, and std::array.
-
Functions in C++: Declaration, Scope, Overloading, and Parameters
Master modular programming in C++. Learn function prototypes, definitions, return types, default arguments, function overloading, pass-by-value, and recursion.
-
Loops in C++: for, while, do-while, and Range-Based Iteration
Master iteration in C++. Learn for loops, while loops, do-while loops, range-based for loops, loop control with break and continue, and how to avoid infinite loops.
-
Conditional Statements in C++: if, else if, else, and switch
Master decision-making in C++. Learn if, else if, else, switch-case, modern C++17 init-statements, fallthrough rules, and how to write clean branching logic.
-
C++ Operators: Arithmetic, Logical, Bitwise, and Precedence Explained
A comprehensive guide to C++ operators. Understand arithmetic, assignment, relational, logical, bitwise, and ternary operators, along with precedence and short-circuit evaluation.
-
C++ Input and Output: cin, cout, getline, and Stream Formatting
A complete guide to standard I/O streams in modern C++. Master cin, cout, cerr, endl vs newline, reading multi-word strings with getline, and formatting with iomanip.
-
C++ Variables and Data Types: A Complete Beginner's Guide
Master variables and fundamental data types in modern C++. Understand memory representation, primitive types, modifiers, type casting with static_cast, and scope rules.
-
Part 3: Encapsulation — Protecting Your Data
This blog makes Java encapsulation super easy to understand. You will learn how to wrap your data and code together inside a single unit to keep it safe from outside mistakes. By using simple examples, you will quickly master how to use "getters" and "setters" to build better, cleaner programs.
-
Part 2: Classes and Objects — Building Your First Java Class
Proper view of Object-Oriented Programming through a series
-
Mastering std::list in Modern C++: From Architecture to Production-Ready Code
This guide explains how std::list works like a chain of nodes linked together in memory. It uses simple steps and clear code examples to show how to add, find, update, and delete items using modern C++ features. Lastly, it shares easy tips on when to use this container and how to avoid mistakes that slow down your program.
-
Part 1: Object-Oriented Programming in Java: A Complete Story for Students
Proper view of Object-Oriented Programming through a series
-
Binary number conversions
Master binary number conversions between binary, decimal, octal, and hexadecimal systems with step-by-step methods and solved examples.
-
How I Cut My Palindrome Algorithm’s Execution Time in Half
A student-friendly guide to writing highly efficient palindrome functions in C++. Move from slow string conversions to a raw arithmetic method that speeds up your code by 200%.
-
Data-Stracture in C: Queue
This article is a comprehensive, publication-ready educational guide designed to teach developers and computer science students the Queue data structure using the C programming language. It transitions smoothly from foundational conceptual definitions to concrete, production-grade source code.
-
Dynamic Memory Allocation
Proper view of memory allocation dynamicly.