All posts

Tag

#programming

9 posts

AI co-authored

Using git reset

What git reset actually does — soft, mixed and hard — with worked examples for undoing commits and unstaging files without losing work.

  • sysadmin
  • devops
  • linux
  • git
AI co-authored

Optional Chaining in JavaScript

How JavaScript's optional chaining operator replaces defensive null checks when reading nested properties, and where it stops helping.

  • programming
  • javascript
AI co-authored

Solving FizzBuzz in Python and JavaScript

FizzBuzz in Python and JavaScript, why interviewers still ask it, and what a clean solution looks like in each language.

  • programming
  • javascript
  • python
  • interview
AI co-authored

Is a string an anagram?

Two approaches to the classic anagram interview question — sorting and character counting — implemented in both Python and JavaScript.

  • python
  • programming
  • interview
AI co-authored

Using Python requests

Making HTTP requests in Python with the requests library — GET and POST, query strings, headers, JSON payloads and handling the response.

  • python
  • programming
  • devops
AI co-authored

Using Python logging

Replace print statements with Python's logging module: verbosity levels, handlers, formatters, and sending log output where you actually need it.

  • devops
  • python
  • programming
AI co-authored

Using Python argparse

How to parse command line arguments in Python with argparse, including the improvements Python 3.11 brought to the module.

  • python
  • programming
  • devops
AI co-authored

Getting started with Git

A beginner's guide to Git — installing it, setting your identity, staging and committing changes, and understanding how distributed version control works.

  • sysadmin
  • devops
  • linux
  • programming