AskMeCode
The Journal
SQL Basics: SELECT, WHERE, JOIN and GROUP BY on One Example
The SQL you will use every day, built up query by query on one small customers and orders database, with real output from SQLite and PostgreSQL and a safe routine for changing data.
Debug JavaScript in the Browser: Breakpoints, Console, Network
A practical workflow for finding JavaScript bugs with the DevTools already in your browser: breakpoints instead of guesswork, a Console used well, and the Network panel for failed requests.
Character Encoding: ASCII, Unicode, UTF-8 and Garbled Text
Why text turns into café or a black diamond with a question mark, how ASCII, Unicode and UTF-8 fit together, and the habits that keep text intact in Python, JavaScript and the shell.
Hash Functions Explained: MD5, SHA-1, SHA-256 and Checksums
What a hash function guarantees, which algorithms are still safe, and how to compute and verify checksums in Python and on the command line, plus what a checksum cannot prove.
Functions, Methods and Classes Explained with Python and Java
A function is named, reusable code; a method is a function that belongs to an object; a class describes a kind of object. Here is how they fit together in Python and Java.
Code Review: What to Check and How to Give Useful Feedback
A code review catches bugs, spreads knowledge and keeps a codebase consistent, if both sides do their part. Here is what to check, in what order, and how to word feedback people can act on.
JSON and YAML Syntax: Rules, Common Errors and Safe Parsing
JSON's strict rules and YAML's indentation rules side by side, the error messages each mistake produces in Python and JavaScript, and how to load both formats without running untrusted code.
CSS Color Formats: Hex, rgb() and hsl(), and Text Contrast
Hex, rgb() and hsl() describe the same colors in different ways. Here is how each works, how to convert between them, and how to make sure text on your colors meets the WCAG contrast minimums.
Calling a REST API: Methods, Status Codes, Headers and Tokens
What actually travels in a REST API request and response, and how to make authenticated calls safely, using the GitHub REST API as a worked example in curl, Python and Node.js.
Markdown Syntax Quick Reference for READMEs and Docs
Every Markdown element you need for a README or documentation page, with the GitHub extensions, the small mistakes that break rendering, and how to preview it in VS Code.
Readable Code: Clear Names, Small Functions, Useful Comments
Code is read far more often than it is written. These habits (precise names, consistent terms, small functions, early returns and comments that explain why) make it quick to read and hard to misread.
Learning C: Install a Compiler and Write Your First Programs
Set up a C compiler on any operating system, then compile and run small programs that cover functions, arrays, pointers and safe input, with the warnings and tools that catch beginner bugs.