Programming Languages
216 articles in this topic

Inheritance in Python: A Practical Tutorial with Examples
Learn how Python classes inherit state and behaviour through runnable examples. Trace super(), overrides, MRO, common mistakes, and three focused exercises.

Rust vs C++: Compare Safety, Control and Developer Trade-offs
Compare how Rust and modern C++ express ownership, catch lifetime mistakes, measure iterator code and define safe foreign-function boundaries.

C++ Iterators and Invalidation: Container Rules and Safe Erase Loops
Learn to read iterator ranges, match algorithms to categories, and mutate standard containers without using stale handles. Includes two fully traced erase examples.

Preprocessor and Macros in C: Expansion Rules and Worked Examples
Learn what happens before C compilation, expand object-like and function-like macros by hand, and avoid precedence and repeated-evaluation bugs.

Java File I/O and NIO Tutorial: Streams, Path, Files, Channels and Buffers
Learn which Java file API to choose, then run one program that writes and reads text, archives a file, traces an 8-byte buffer, and checks exact output.

Python Generators and Iterators Tutorial: yield, next() and Lazy Evaluation
Build Python's iterator protocol from a three-value list, trace generators one request at a time, and practise safe one-pass pipelines with exact outputs.

Rust Tutorial for Beginners: Ownership, Types and a Text Counter
Build a small Rust text analyser and trace what the compiler sees. The example connects basic types and control flow to moves, borrows and owned results.

C++ Encapsulation and Class Invariants: Build Objects That Stay Valid
Learn to design a C++ BankAccount that cannot be created or changed into an invalid state. Trace constructor checks, guarded operations, representation leaks, and boundary tests.

Variables and Data Types in C: Declarations, Conversions and Runnable Examples
Learn how C types control stored values, expressions and I/O. Compile a complete marks program, trace its conversions and repair common type mistakes.

Methods in Java: Syntax, Parameters, Return Values and Examples
Build and trace a complete Java score program, then learn how arguments, return types, void methods, instance calls and overloads work.

Introduction to Python: Core Concepts, Worked Trace and Exam Patterns
Build a reliable Python tracing method from names and types to loops and mutable lists. Follow one function across every iteration and check its exact output.

Kotlin vs Java for JVM Applications: A Clear Trade-off Guide
Choose between Kotlin and Java using the same Ticket #42 service example, a migration checklist, and a scorecard whose winner changes when team priorities change.