Programming Languages

216 articles in this topic

File Handling in C++: Read, Write, Append and Seek with Examples

Learn how C++ file streams work through connected text and binary examples, from safe record parsing to appending data and updating a fixed record.

Updated 29 Aug 20266 min readC++

Constructors and Destructors in C++: Object Lifetime with Runnable Examples

Trace constructor selection, copying, scope exit, reverse destruction, and RAII through two complete C++17 programs with exact output and memory diagrams.

Updated 29 Aug 20266 min readC

StringBuilder and StringBuffer in Java: Differences, Methods and Runnable Examples

Learn how Java's mutable text classes change character sequences, where their indexes matter, and when method-level synchronisation changes the right choice.

Updated 29 Aug 20265 min readJava

Python Setup for Beginners: Install and Run Your First Program

Build a clean Python project from scratch, verify the interpreter, run a complete program and diagnose the setup mistakes that catch most beginners.

Updated 29 Aug 20265 min readPython

Go Tutorial for Beginners: Build a CLI with Packages, Types, Slices, Maps and Errors

Start with a module and finish with a working student-report command. Trace Asha's scores through slices, a map and a struct, then test three useful failures.

Updated 27 Aug 20266 min readProgramming Languages Survey

Arrays in C++: Sequential Storage, Indexing and Worked Examples

Build one C++ array from declaration to traversal, updates, memory addresses, fixed-capacity insertion and deletion, then extend the model to two dimensions.

Updated 27 Aug 20265 min readC++

Classes and Objects in C++: Beginner Tutorial with Runnable Examples

Build a precise mental model of C++ classes and objects with two Rectangles, a checked setter, exact output traces, common error fixes, and short exercises.

Updated 26 Aug 20266 min readC

Map, Set and WeakMap in JavaScript: Runnable Examples and Common Errors

Choose the right JavaScript collection by tracing a stock Map, deduplicating IDs with Set, and attaching object-owned metadata with WeakMap. Includes output traps and self-checking exercises.

Updated 26 Aug 20265 min readJava

Conditionals in Python: If, Elif and Else with Worked Examples

Learn how Python chooses a branch, then trace exact examples covering Boolean operators, truthiness, nesting, short-circuiting and common mistakes.

Updated 26 Aug 20266 min readPython

Compiled vs Interpreted vs JIT Languages: How Code Actually Runs

Trace one program from source to CPU through ahead-of-time compilation, bytecode interpretation and JIT compilation. Then compare their costs without relying on labels.

Updated 25 Aug 20265 min readProgramming Languages Survey

C++ Move Semantics Tutorial: Trace Ownership with Runnable Examples

Follow one heap allocation through copy and move operations, then learn how value categories, special members, copy elision, and noexcept affect real C++ code.

Updated 25 Aug 20265 min readC++

Strings in C++: Beginner Tutorial with Runnable Examples

Learn how std::string behaves through exact outputs, safe input patterns, a worked index trace, common traps, and three short practice problems.

Updated 25 Aug 20265 min readC