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 in Java, JavaScript, Python, Go, TypeScript, and related stacks.

Whether you are learning programming for system administration or building applications, browse the articles below for practical examples and language-specific references.

Programming plays a crucial role in modern infrastructure and DevOps workflows. You can also explore DevOps and Linux to see how code integrates with system-level operations.

956 articles

Programming category illustration with code editor, automation, and debugging graphics
programming

Node.js get all files in directory recursively

The simplest way to achieve a Node.js get all files in directory and subdirectories recursively is through the glob module.

Steve Alila6 min read
programming

How to sort a map by value in JavaScript?

Different methods to sort map by value in javascript (JS) in both ascending and descending order.

Olorunfemi Akinlua7 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

Steve Alila6 min read
programming

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

Steve Alila6 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- catch block.

Steve Alila6 min read
programming

Monitor HTTP(s) traffic in Node.js

Step by step instructions to setup and monitor https traffic using node.js with practical examples

Steve Alila6 min read
programming

Create 10 second timer countdown in JavaScript

There are different timer functions available in javascript which can be used to create 10 second timer countdown such as setTimeout(), setInterval(), and setImmediate()

Steve Alila6 min read
programming

Golang Tabs vs Space for indentation - Formatting Tips

The official recommendation is to use golang TABs for indentation and formatting. We can format go code automatically using go fmt or goimports command

Tuan Nguyen5 min read
programming

println JS alternative available?

The alternative of java println in javascript is console.log()

Olorunfemi Akinlua4 min read
programming

Set GOPATH Variable in Linux & Windows PROPERLY

Steps to modify or set GOPATH variable in go env in both Linux and Windows. Make the changes permanent (persistent)

Antony Shikubu5 min read
programming

How to upload, display and save images in Node.js

Step by step instructions in node.js to upload file, then display and save files with practical examples

Steve Alila7 min read
programming

HashSet Java Explained [Easy Examples]

HashSet Java class is used to create a collection that uses a hash table for storage. It inherits the AbstractSet class and implements the Set interface. HashSet stores the elements by using a mechanism called hashing

Bashir Alam11 min read
programming

Java Regular Expression (RegEx) Explained [Easy Examples]

A Java regular expression is a special sequence of characters that helps us to match or find other strings or sets of strings, using a specified syntax held in a pattern

Bashir Alam10 min read
programming

Java User Input - Multiple Ways [Easy Examples]

In java programming language, we have three different kinds of methods through which we can take java user input including Scanner class, Buffered class, and console class

Bashir Alam11 min read
programming

Java Boolean Operator Explained

There are multiple java boolean operators such as logical operators that include logical operators, like the logical AND and logical OR as discussed above, unary operators like NOT and bitwise operators

Azka Iftikhar8 min read
programming

Java DecimalFormat Explained

The java DecimalFormat class is used to apply decimal formats that are user- defined, to apply java DecimalFormat we use the class java.text.DecimalFormat.

Azka Iftikhar8 min read
programming

List vs LinkedList in Java Explained

In Java, List is an interface in java.util package whereas LinkedList is a class in the java.util package. Both of this data structure is used to store the ordered collection of an elements of same type. The advantage of …

Deepak Prasad6 min read
programming

LinkedList in Java Explained [Complete Tutorial]

In Java, the LinkedList class is a member of Java Collections Framework present in java.util package. This class implements List interface along with other interface like Serializable, Cloneable, Iterable, collection, …

Deepak Prasad12 min read
programming

ArrayList vs LinkedList in Java

The ArrayList class implements a List Interface. So, this acts as a list. While the LinkedList class implements both List and Deque Interface. So, this acts as a both list and deque.

Deepak Prasad6 min read
programming

HashMap vs Hashtable vs HashSet in Java

HashMap is hash table based implementation of Map interface, Hashtable class implements a hash table, which maps keys to values. HashSet is a hash table based implementation of Set interface.

Deepak Prasad6 min read
programming

CopyOnWriteArrayList Class in Java [Complete Tutorial]

In this tutorial, we covered constructors and methods of CopyOnWriteArrayList class along with the important operations that can be performed using the built- in methods

Deepak Prasad7 min read
programming

8 different Escape Sequence in Java with Examples

An escape sequence in java refers to a character proceeded by a backslash(), the escape sequences have special meanings. In java, while declaring a string, a

Azka Iftikhar6 min read
programming

SOLVED: How to do Nodejs Base64 Encode & Decode

Failure to understand the Nodejs base64 encode process could hinder you from maximizing the runtime environment's potential in data transfer.

Steve Alila8 min read
programming

Create Map function for objects (instead of arrays) - Nodejs map

Object mapping enables you to handle data comfortably. However, the main challenge of implementing Nodejs map is that objects lack the native map method that

Steve Alila6 min read
programming

HackerRank Solution: Python Check Strict Superset

Explore four solutions for HackerRank's "Check Strict Superset" problem in Python. Learn how to use the issuperset method, the all function, for loops, and list comprehension to determine if a set is a strict superset of …

Deepak Prasad5 min read
programming

HackerRank Solution: Python Check Subset

Explore three solutions for HackerRank's "Check Subset" problem in Python. Learn how to use the issubset method, comparison operators, and a combination of for loops and the all function to determine if one set is a …

Deepak Prasad4 min read
programming

HackerRank Solution: Python Set Mutations

Explore three solutions for the HackerRank "Set Mutations" problem in Python. Learn how to use direct set methods, dynamic method calls with eval, and dictionary-based operations to perform set mutations and compute the …

Deepak Prasad5 min read
programming

HackerRank Solution: Python Symmetric Difference

In this tutorial, we provided multiple solutions for a HackerRank question on Python sets to identify the symmetric difference between two sets of integers. The first solution uses the symmetric_difference method for a …

Deepak Prasad5 min read
programming

HackerRank Solution: The Captain's Room

Explore three solutions for the HackerRank "Captain's Room" problem using Python. Learn how to use the Counter module, mathematical formulas, and set operations combined with loops and counting methods to identify the …

Deepak Prasad4 min read
programming

Learn Node.js debugging Tips & Tricks [With Examples]

This tutorial teaches you how to get started with Node.js debugging on the terminal. You will not install any extension or package because we will utilize the

Steve Alila11 min read