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 io.ReadCloser Examples
Golang io.ReadCloser interface is built out of an io.Reader and an io.Closer:
How to pass default parameter to golang function?
Golang does not support optional parameters (can not set default values for parameters). But there are different methods to add golang default parameter.
Learn to Clone or Copy Map in GO Like a PRO [5 Methods]
Learn to clone map or copy map in GO using 5 different methods. Perform either deep copy or shallow copy of maps
Using not (!) inside 'if' statement in JS [SOLVED]
If you want to negate a if statement, we can do so using the NOT operator which reverses the Boolean value, and so changes it from true to false or from false …
Declare a constant array in Golang [SOLVED]
Slice or const array are not supported in Go. It is thus because Go computes constant values at compilation time. Slices or arrays are always assessed in- …
Setting HTTP Cookie in Golang [SOLVED]
Examples to set HTTP cookie in golang web server. Fetch HTTP cookies.
Master Golang JSON Omitempty: No More Rookie Errors
Explore the dynamic capabilities of Golang JSON Omitempty to revolutionize your data structuring and serialization. Dive deep into expert techniques, unlocking …
Golang Print Struct Variables [SOLVED]
Golang print struct variables on console using 4 different methods. Method 1: Using fmt package. Method 2: Using json package. Method 2: Using go-spew package. …
How to sort array of ints in Golang [SOLVED]
Golang sort array of ints using 3 different examples. Example 1: Convert to int slice and then use the Ints() function. Example 2: Using Slice() function to …
Golang Queue Implementation
We can use slices, lists, or channels for golang queue implementation
Create Unique Array of Objects in JavaScript [SOLVED]
Create javascript unique array by getting unique values from the array using different methods using the filter methods and set object
How to use Math power in JavaScript [SOLVED]
To perform math power operations in JavaScript, we can make use of the ** operator and the pow method, however, only the ** operator works with the Number and …
How to round down a number JavaScript [SOLVED]
Different method to round down in JavaScript. Method-1: Using the round method. Method-2: Using the floor method. Method-3: Round down using the trunc method
Check if string contains spaces in JS [SOLVED]
There are different methods to check if staring contains spaces in javascript. Method-1: Use indexOf. Method-2: Use Regular Expressions
Leetcode’s Two Sum Problem Solution
The pair sums leetcode problem can be solved using multiple methods such as using brute force in for loop, using objects or using maps
