Programming Languages
Hands-on explanations of C, C++, Python, JavaScript and TypeScript behaviour: input handling, the event loop, strict mode and number systems.
18 articles
- Programming Languages
How to Check If Your Android App Supports 16 KB Page Sizes
What Android's 16 KB memory pages are, which apps must change before Google Play's deadline, and four ways to check an APK or AAB, with fixes.
· 6 min read
- Programming Languages
How to Convert an APK to an AAB (Android App Bundle) for Google Play
Why Google Play wants an .aab instead of an .apk, what changes inside the file, three ways to convert, how to sign the bundle and the upload errors to avoid.
· 6 min read
- Programming Languages
Binary, Octal, Decimal and Hex: Number Bases for Programmers
How number bases work, converting binary, octal, decimal and hex by hand and in code, where each one appears, and the parseInt and precision traps to avoid.
· 5 min read
- Programming Languages
TypeScript Strict Mode Explained: Every Flag and the Bugs It Catches
What "strict": true turns on, the real compiler error for each flag, extra checks worth enabling, and a step-by-step plan for migrating an existing codebase.
· 5 min read
- Programming Languages
-O0 vs -O2 vs -O3: GCC and Clang Optimization Levels Benchmarked
-O2 vs -O3 measured with GCC and Clang on five C programs: when -O3 wins, when it is slower, what -Ofast breaks, plus code size and compile time per -O level.
· 10 min read
- Programming Languages
GCC Command Line Options Explained: -o, -c, -Wall, -std, -O2, -g and -lm
The GCC options you use every day, with real output from GCC 11: naming the output, compiling in steps, warnings, -std, -O levels, -g, -I, -D and -lm.
· 9 min read
- Programming Languages
malloc vs calloc in C: Which Is Faster? We Measured
The difference between malloc and calloc in C, measured: zeroing, speed on fresh and reused memory, overflow checks, and which one to use in your own code.
· 9 min read
- Programming Languages
How to Run Python Code Online (No Install, With Input)
Run Python code online in your browser: a first program, input() and stdin, reading many lines, which modules work, and how to read a Python traceback.
· 5 min read
- Programming Languages
How to Run R Code Online (No RStudio, No Install)
Run R code online in your browser without RStudio: print values, explore built-in datasets, fit a linear model, read stdin, and fix the most common R errors.
· 5 min read
- Programming Languages
How to Compile and Run C Code Online (No Install, With Input)
Compile and run C code online in your browser: a first program, reading stdin input, choosing a C standard from C89 to C23, and fixing common errors.
· 4 min read
- Programming Languages
How to Format PHP Code Online: Beautify, Indent and Follow PSR-12
Format PHP code online: paste messy PHP, get consistent indentation and spacing, learn what PSR-12 requires and when to use Prettier, PHP-CS-Fixer or phpcbf.
· 4 min read
- Programming Languages
How to Run C++ Code Online: Compile C++20 with Input in Your Browser
Run C++ code online with C++20: compile a first program, feed stdin, use vectors and structured bindings, read g++ errors and avoid the common beginner traps.
· 4 min read
- Programming Languages
C Compiler Errors and Warnings, Explained With Fixes for Clang and GCC
10 common C compiler errors and warnings, from expected ';' to undefined reference, with real Clang and GCC output, what each one means and how to fix it.
· 7 min read
- Programming Languages
GCC vs Clang: What Is the Difference for C Programmers?
Clang vs GCC benchmarked on five programs: Clang won three, GCC one, one tie. Plus error messages, flags, GNU extensions and which to use for C and C++.
· 12 min read
- Programming Languages
Pointers in C Explained: Addresses, Arrays and Memory with Runnable Examples
Learn C pointers step by step: & and *, double pointers (**), pointers in functions, arrays, pointer arithmetic, malloc and free, and the bugs to avoid.
· 8 min read
- Programming Languages
Reading Input in C and C++: scanf, cin and getline Explained
Why getline returns an empty string after cin, how to read until end of input, validate numbers, read lines safely in C and speed up input, with tested code.
· 7 min read
- Programming Languages
Strings in C: char Arrays, the Null Terminator and the Bugs to Avoid
Strings in C with tested examples: char arrays and the \0 terminator, strlen vs sizeof, strcmp, strcpy vs snprintf, strtok and reading a string with spaces.
· 9 min read
- Programming Languages
The JavaScript Event Loop: Promises, setTimeout and Microtasks in Practice
Why setTimeout(fn, 0) runs after promises, how await pauses, why busy loops delay timers, and how to run async work in sequence or parallel, with tested output.
· 6 min read
Showing 10 of 18 articles