Category

Programming Tutorials and Coding Guides

Explore programming tutorials with practical examples across multiple languages, scripting, and development concepts for beginners and advanced users.

Welcome to the Programming tutorials section, where you will learn coding concepts with real-world examples across multiple languages and platforms.

This category includes beginner to advanced guides covering scripting, automation, and application development in Java, JavaScript, Python, Go, TypeScript, and related stacks.

Whether you are learning programming for system administration or building applications, browse the articles below for practical examples and language-specific references.

Programming plays a crucial role in modern infrastructure and DevOps workflows. You can also explore DevOps and Linux to see how code integrates with system-level operations.

956 articles

Programming category illustration with code editor, automation, and debugging graphics
programming

HackerRank Solution: Martix Script [Python Regex]

In this tutorial we will cover multiple methods to solve matrix script from hackerrank solutions.

Bashir Alam5 min read
programming

SHELL/BASH: How to create an interactive calculator in Linux

Sample shell script to create an interactive calculator using bc command to perform add, subsctract, multiply. divide, sine, cosine etc mathematical function.

Deepak Prasad3 min read
programming

Calculate Loan EMI Amount in Bash script Linux

Calculate loan EMI amount, interest and principle using bash or shell script in Linux with example. The script can be created online and runtime value.

Deepak Prasad5 min read
programming

HackerRank Solution: Python Pilling Up [Collections]

There are 3 methods to solve hackerrank python piling up problem. Using collection module, Using loops, Using if-else statement

Bashir Alam5 min read
programming

How to trim leading and trailing spaces GO?

In this tutorial, we are going to examine some examples of trim leading and trailing white spaces of a string in Golang. Golang provides the built-in package

Tuan Nguyen3 min read
programming

Golang array contains specific element or not? [SOLVED]

In this tutorial we have covered different examples to cover golang array contains elements. Use for loop to check for string, int or float64 element in array or using slices.contains

Tuan Nguyen5 min read
programming

Golang concatenate or merge two or more slices

We can use copy() and append() function to merge or concatenate two or more slices in Golang.

Tuan Nguyen4 min read
programming

Golang Concat Slices - Remove Duplicates

In this article we learn about different methods which can be used to golang concat slices and remove duplicates

Tuan Nguyen5 min read
programming

Using golang constants in struct

In general, golang does not allow declaring a constant struct and constant within a struct. But we can use a custom function to perform this purpose

Tuan Nguyen3 min read
programming

Remove fields from struct or hide them in JSON

Learn how to remove fields from struct in golang or hide them.

Tuan Nguyen5 min read
programming

How to set default values in GO structs?

There are multiple ways to set default values in go struct. We have explored some of the possible ways such as using an init function, using a separate constructor function or using struct tags

Tuan Nguyen3 min read
programming

What is the zero value for time.Time in GO?

The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC. The IsZero() method returns whether a time has a zero value or not.

Tuan Nguyen3 min read
programming

Print a list in reverse order with range()?

In this article we will learn how we can print a list in reverse order with range() in Python for which first we need to know what range() is and how it works.

Azka Iftikhar4 min read
programming

Golang Fuzz Tutorial With Examples

In this guide, we'll go over the fundamentals of fuzzing in Go. We will create some fuzz tests for functions using the go command, and troubleshoot and debug

Tuan Nguyen8 min read
programming

How to save form data in MySQL table Node.js?

This tutorial shows you how to Node.js save form data in MySQL table step-by- step. We will install and configure MySQL on the local machine before creating a

Steve Alila6 min read
programming

Golang cobra Tutorial [With Examples]

Golang is a perfect programming language for creating CLI applications. In today's post, I will introduce you Cobra - a library for creating powerful modern

Tuan Nguyen8 min read
programming

Golang Benchmark and Testing [Step-by-Step]

Step by step instructions to perform golang benchmarking and testing

Deepak Prasad9 min read
programming

Install Golang on Windows

Step by Step instructions to install golang on WIndows using official archive and choclatey

Tuan Nguyen4 min read
programming

How to find length of Set in Python?

Use len() function to check length of a set in Python

Deepak Prasad4 min read
programming

Golang SQL Tutorial [CRUD Operation]

Step by Step instructions to create and manage QL database using golang sql module. Perform CRUD Operation using GO.

Tuan Nguyen10 min read
programming

Golang Testing Examples | How to test GO Code?

Step by Step instructions to understand golang testing and write unit tests in go code.

Antony Shikubu8 min read
programming

Matplotlib.pyplot.vlines() - Draw vertical lines

Use matplotlib.pyplot.vlines to draw vertical lines in Python with examples.

Azka Iftikhar3 min read
programming

How to add items to array in Node.js

We can use 3 different methods to add items to array in Node.JS using push, unshift or concat method

Olorunfemi Akinlua4 min read
programming

Wait For Loop to Finish in Node.js

We can use promise.all to check and wait for loop to finish in Node.js

Olorunfemi Akinlua4 min read
programming

Golang Constructor Tutorial

we learn about Go constructors. Go does not come with constructors natively but provides ways to construct new types. Constructor functions are ordinary functions

Antony Shikubu6 min read
programming

Python calculate 6 months ago from today

In this article we have shared multiple ways to calculate date and time of 6 months ago from today in Python

Azka Iftikhar3 min read
programming

Create HTTPS Server with Node.js [Simple Steps]

Step by step instructions to create HTTPS Server with Node.js with example web server

Steve Alila5 min read
programming

Update key with new value in JavaScript

We can either use foreach loop of maps function to update key with new value in Javascript

Olorunfemi Akinlua4 min read
programming

Check if file or directory exists in Node.js

Check synchronously if file/directory exists in Node.js, How to check whether a directory exists in node.js?, NodeJs: fs.stat() or fs.access() to check if a folder exists, Node - Check to see if a directory exists, …

Steve Alila5 min read
programming

Node.js Child Process Tutorial [With Examples]

The exec() and spawn() methods are some of the frequently used Node.js child process module methods. Use the exec() method to run shell-like syntax commands on a small data volume. Otherwise, use the spawn() command, as …

Steve Alila6 min read