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
Golang Trim Strings [Left, Right, Space, Suffix, Prefix]
golang trim strings function using strings.Trim(), strings.TrimLeft(), strings.TrimRight(), strings.TrimSpace(), string.TrimSuffix(), strings.TrimPrefix()
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 …
Golang sha256 Hashing Examples
golang sha256 hashing examples to hash a string of text or an entire file using sha256 function
Golang time function - Learn the Basics in Detail
golang time now, format, duration, after, loadlocation, sleep, date function explained in detail with examples
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
Golang generate random string Examples [SOLVED]
Multiple examples covering golang generate random string using rand function. Generate alphanumeric, special characters, uppercase, lowercase strings
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 …
How to sort a map by value in JavaScript? [SOLVED]
Different methods to sort map by value in javascript (JS) in both ascending and descending order.
GO environment variables [Best Practices]
Go environment variables include os.Setnev(), os.Getenv(), os.LookupEnv(), os.Unsetenv(), godotenv (.env) file.
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
Using try catch finally in Node.js [Best Practices]
node.js try catch finally can be used in synchronous and asynchronous code. It is used to handle run time code errors and exception handling
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- …
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 …
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 …
