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. 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:

By tuannguyen · 4 min read · programming

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.

By tuannguyen · 3 min read · programming

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 …

By olorunfemiakinlua · 2 min read · programming

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- …

By tuannguyen · 3 min read · programming

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 …

By tuannguyen · 9 min read · programming

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. …

By tuannguyen · 4 min read · programming

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 …

By tuannguyen · 4 min read · programming

Golang Queue Implementation

We can use slices, lists, or channels for golang queue implementation

By tuannguyen · 4 min read · programming

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 …

By olorunfemiakinlua · 2 min read · programming

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

By olorunfemiakinlua · 3 min read · programming

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

By olorunfemiakinlua · 3 min read · programming

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

By olorunfemiakinlua · 5 min read · programming