Using git reset
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 programmingOptional Chaining in JavaScript
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 javascriptSolving FizzBuzz in Python and JavaScript
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 interviewLeveraging Map, Reduce and Filter for Cleaner Code
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 pythonIs a string an anagram?
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 interviewUsing Python requests
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 devopsUsing Python logging
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 programmingUsing Python argparse
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 devopsGetting started with Git
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