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 print type of an object [SOLVED]

In this tutorial we covered golang print type of an object using string formatting, go reflect package and type assertions

By tuannguyen · 4 min read · programming

Golang remove duplicates from slice with Examples

remove duplicates in slice golang, find unique elements in array golang, golang count occurrences in slice, find duplicates in array golang, Remove duplcate …

By admin · 5 min read · programming

Golang sha256 Hashing Examples

golang sha256 hashing examples to hash a string of text or an entire file using sha256 function

By tuannguyen · 3 min read · programming

Convert Golang Interface to String [7 Methods]

golang interface to string conversion is not supported directly but we can use type assertion or fmt.Sprintf to do the type casting

By tuannguyen · 16 min read · programming

Golang generate random string Examples [SOLVED]

Multiple examples covering golang generate random string using rand function. Generate alphanumeric, special characters, uppercase, lowercase strings

By tuannguyen · 7 min read · programming

GO Import struct from another file [SOLVED]

You can use import to import the package and then reference the struct using package.StructName wherein the name of Struct must start with Capital letters to …

By tuannguyen · 6 min read · programming

GO environment variables [Best Practices]

Go environment variables include os.Setnev(), os.Getenv(), os.LookupEnv(), os.Unsetenv(), godotenv (.env) file.

By antonyshikubu · 5 min read · programming

How to loop through array in Node.js [6 Methods]

6 different methods to loop through an array in node.js. Using while loop, do- while loop, 1for loop, forEach method, for-of loop and for-in loop

By stevealila · 6 min read · programming

Node.js Error Handling Best Practices with Examples

Learn about node.js error handling in synchronous and asynchronous (callback and promised-based) code using Node.js process module, try-catch block, and then- …

By stevealila · 6 min read · programming

Golang panic handing [capture, defer, recover, log]

We will cover the following scenarios in detail: How to capture a panic message FROM stderr to log file, Using defer with panic, Handling golang panics using …

By admin · 8 min read · programming

Golang Buffered Channel Tutorial [Practical Examples]

A buffered channel is a type of channel that has storage capacity within. Create and handle deadlock scenario, create lock and unlock code with buffered channel …

By admin · 9 min read · programming