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. Whether you are learning programming for system administration or building applications, these tutorials will help you gain practical experience.
Programming plays a crucial role in modern infrastructure and DevOps workflows. You can also explore related topics such as DevOps and Linux to understand how programming integrates with system-level operations.
What you will learn
- Core programming concepts and logic building
- Writing scripts for automation and system tasks
- Debugging and optimizing code
- Practical use cases in real environments
Who should read this
- Beginners starting with coding
- System administrators learning scripting
- Developers looking for practical examples
960 articles
Golang remove backslash from string [SOLVED]
We can use strings.replace() and strings.replaceall() function to remove backslash from string in golang by replacing backslash with empty character
Golang Escape Backslash [100% Working]
We can either use additional backslash to escape backslash or raw string literals to convert entire text to string.
Go Prompt - Create Interactive CLI prompts with Examples
To read input from users in Go and create an interactive CLI based go prompt, we use the fmt, bufio, and os packages.
Update key with new value in JavaScript [SOLVED]
We can either use foreach loop of maps function to update key with new value in Javascript
Error: cannot find module express [SOLVED]
Error: Cannot find module 'express' This error is quite common and exists because when your code ran, the express package or module wasn’t found within its …
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 …
Node.js get all files in directory recursively [SOLVED]
The simplest way to achieve a Node.js get all files in directory and subdirectories recursively is through the glob module.
Node.js loop through files in directory [SOLVED]
Explore a comprehensive guide to reading files in a directory using Node.js. Discover how to use various methods such as fs.readdir(), fs.readdirSync(), …
Golang generate random boolean [Simple Examples]
Use rand.Intn() function to generate random boolean in golang
PROPERLY delete an element from map in GO [SOLVED]
We can delete elements from map using 2 different methods. Check if the key exists and delete or delete the key without checking.
PROPERLY delete an element from Slice in GO [SOLVED]
2 different methods to remove elements from slice in golang. We can either maintain the order or remove elements without maintaining the order
How to parse multiple inputs from user in Golang
The following are functions used to read or parse users' inputs in Golang:- fmt.Scanln(), fmt.Scanf(), bufio.NewReader(). These functions can parse single or …
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 …
Golang length of map [2 Easy Methods]
use two different methods to get golang length of map. Using len() function or iterate over the map elements and count each occurence to get the length.
Golang iterate over Array [2 Methods]
There are two possible methods in golang to iterate over an array using for loop with range function or with len(array) function
