Using git reset

Posted on October 3, 2023

The git reset command in Git allows you to undo commits and manipulate the state of your repository. It can be a tricky and potentially dangerous tool if used incorrectly, but it’s very useful for backing out changes, correcting mistakes, and …

sysadmin devops linux git programming

Optional Chaining in JavaScript

Posted on September 1, 2023

Optional chaining is a feature introduced in ECMAScript 2020 that allows for accessing properties on an object without having to explicitly check if the object is null or undefined first. This results in less code and improves readability. …

programming javascript

Solving FizzBuzz in Python and JavaScript

Posted on August 14, 2023

What is FizzBuzz? FizzBuzz is a simple coding problem used in interviews to test basic programming skills. The task is to print the numbers from 1 to a given number, but print “Fizz” instead if the number is divisible by 3, …

programming javascript python interview

Leveraging Map, Reduce and Filter for Cleaner Code

Posted on July 21, 2023

When working with array data in JavaScript or Python, transforming, combining and filtering that data is a common task. However, using explicit loops every time can make your code messy and hard to understand. Luckily, there are built-in methods for …

programming javascript python

Is a string an anagram?

Posted on January 14, 2023

An anagram is a word or phrase formed by rearranging the letters of another word or phrase. For example, “elbow” and “below” are anagrams of each other. In coding interviews and programming challenges, you may be asked to …

python programming interview

Using Python requests

Posted on November 17, 2022

The Python requests module is an elegant and simple HTTP library for making requests in Python. Requests allows you to send HTTP requests extremely easily. No need to manually add query strings to URLs, or form-encode your POST data. Keep-alive and …

python programming devops

Using Python logging

Posted on November 3, 2022

The logging module in Python provides a standardized way to record diagnostic and runtime information from your programs. The key benefits of logging are the ability to: Log messages with different verbosity levels (debug, info, warning, error) …

devops python programming

Using Python argparse

Posted on October 1, 2022

Python 3.11 introduced a new and improved argument parser in the argparse module. The new argument parser provides several handy features that make it easier to parse command line arguments in Python scripts. In this post, we’ll take a look at …

python programming devops

Getting started with Git

Posted on September 14, 2022

Git is a distributed version control system that allows teams to collaborate on code and track changes efficiently. Whether you’re a solo developer or working on a large team, learning Git is essential for managing your projects. This post will …

sysadmin devops linux programming git