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.

Updated 19 Sep 20265 min readPython

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.

Updated 19 Sep 20266 min readProgramming Languages Survey

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.

Updated 18 Sep 20266 min readC++

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.

Updated 18 Sep 20266 min readC

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.

Updated 18 Sep 20266 min readJava

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.

Updated 18 Sep 20265 min readPython

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.

Updated 17 Sep 20265 min readProgramming Languages Survey

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.

Updated 17 Sep 20265 min readC++

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.

Updated 17 Sep 20266 min readC

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.

Updated 17 Sep 20265 min readJava

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.

Updated 16 Sep 20266 min readPython

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.

Updated 16 Sep 20266 min readProgramming Languages Survey