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

How to Compute Square in Java

There are four different ways to compute square of a number in Java, Using multiplication operator *, Using Math.pow() function, Using BigInteger.pow() function, Using Apache Commons Math API

Deepak Prasad7 min read
programming

How to fetch images from Node.js server

2 different ways to fetch images from node.js server using practical examples. Use built-in http module and express framework

Steve Alila5 min read
programming

SOLVED: Mask password with asterisk from console in Java

2 different ways to mask password with asterisk from console input in Java. Hide password with asterisk in Java. Display asterisk instead of password in Java input

Azka Iftikhar3 min read
programming

Hackerrank Solution: Validating credit card numbers in Python

validating credit card numbers hackerrank solution, validating credit card numbers hackerrank solution python, validating credit card numbers hackerrank solution python3

Bashir Alam5 min read
programming

Hackerrank Solution: Validating Email With a filter in Python

hackerrank valid email address regex, validating email addresses with a filter hackerrank solution, valid email address hackerrank, valid email address hackerrank solution in python, python functional hacker rank …

Bashir Alam5 min read
programming

Hackerrank Solution: Triangle Quest in Python [3 Methods]

triangle quest hackerrank solution, triangle quest 1 hackerrank solution in python, triangle quest 1 hackerrank solution in python, triangle quest 1 hackerrank solution in pythobn3

Bashir Alam3 min read
programming

Hackerrank solution: No Idea! in Python [5 Methods]

5 different ways to solve no idea hacker rank question with explanation in python and python3

Bashir Alam5 min read
programming

Hackerrank Solution: Find Angle MBC in Python [4 Methods]

4 different ways to solve find angle mbc hackerrank solution in python3.

Bashir Alam3 min read
programming

Hackerrank Solution: How to check leap year in Python

hackerrank leap year python, hackerrank solution write a function

Bashir Alam5 min read
programming

How to use Node.js REPL Effectively

node repl import, node.js repl commands, command to start node repl, node rep commands history

Steve Alila7 min read
programming

An in-depth Explanation of Node.js Global Objects

which choice is not a node.js global object, node js global variable across files, nodejs global typescript. JavaScript avails objects you can use in your Node script without importing. Some of the objects are Buffer, …

Steve Alila6 min read
programming

[SOLVED] Using golang while loop with Examples

golang while true, golang while loop example, golang infinite loop, golang while loop through structs, maps, interface. golang while loop through slice, arrays, range

Antony Shikubu11 min read
programming

2 ways to add fractions in Java [Practical Examples]

Multiple code examples to show how to add fractions in Java. Add two or multiple fractions.

Azka Iftikhar4 min read
programming

NumberFormat Class in Java Explained

Some of the task performed by the NumberFormat class in Java are Formatting Numbers, Setting number of Digits in Fraction part, Rounding Numbers, Formatting Percentage, Formatting Currency

Deepak Prasad6 min read
programming

Solved: Node.js create directory if doesn't exist

nodejs create folder, javascript make directory if not exists, create a node js application create a directory and the contents of the directory, node.js create directory if doesn't exists, nodejs create directory …

Steve Alila5 min read
programming

Nodejs write file simplified with 4 easy examples

Apart from knowing the structure of the fs module, you need to comfortably Nodejs write files ending in .txt, .html, .js, and .json extensions. That calls for

Steve Alila7 min read
programming

Solved: Get current directory in Node.js [4 Examples]

nodejs read current directory, node get current directory, node current directory, nodejs print current directory, nodejs current directory

Steve Alila4 min read
programming

Complete Tutorial on Node.js Passport

Node.js passport simplifies user authentication and authorization when building web applications. Despite the usefulness of passport.js, you may fail to

Steve Alila10 min read
programming

How to log an object in Node.js

Learning how to log an object in Node.js helps you work with objects comfortably. Although you can use multiple ways to console-log an object's content, the

Steve Alila6 min read
programming

5 ways to check if a string is an integer in Python

When operating with numbers and strings, many times while fetching the data from the text box, we fetch it as a string. Now, on back-end this data may be

Deepak Prasad6 min read
programming

How to use async for loop in Node.js

Node async for loop helps to fetch resources in a controlled environment. It would be best to understand the concepts of loops, iterables, and numerables,

Steve Alila8 min read
programming

JavaScript assertequals Explained [6 Practical Examples]

JavaScript assertequals are some of the crucial software development assertion tools. You can import the NodeJS built-in assert module or install it with npm.

Steve Alila6 min read
programming

Learn async while loop in Nodejs from SCRATCH

This tutorial explains async while loop Nodejs without assuming you understand the concepts of promises, looping, and timers.

Steve Alila7 min read
programming

How to make HTTP GET Request in Node.js

In NodeJS, several methods that provide the functionalityto make HTTP GET request from the http module provided in the standard library. While the HTTP module works properly making get requests is complicated. You need …

Steve Alila5 min read
programming

How to Paginate with Mongoose in Node.js [Practical Examples]

It is a traditional way to paginate with mongoose. Here, It simply uses limit and offset in SQL queries to paginate the data from database. If you are working

Deepak Prasad6 min read
programming

In NodeJs, why is new Date constructor setting default time to 7am?

In Nodejs, the new Date constructor time defaults to 7 am if your time zone is 7 hours behind the Greenwich Meridian Time.

Steve Alila6 min read
programming

How to implement 3 stacks in an array

A Stack is a Last in First out(LIFO) data structure. Push and pop operations are used for insertion and deletion of a value from the stack respectively. In

Deepak Prasad6 min read
programming

Find merge point of two lists in Java

In this article we explored three different methods which can be used in Java to find merge point of two lists i.e Brute Force Approach, Marking Node as visited and Using HashSet

Deepak Prasad8 min read
programming

How to find a height of a tree data structure in Java

The Tree is a non linear data structure consisting of nodes and edges. Depending upon the type of tree, it can have 0 or more child nodes. There are two ways to calculate the height of a tree using Recursive Approach or …

Deepak Prasad6 min read
programming

4 ways to convert char to int in Java

In this tutorial, we covered four different approaches to convert char to int in Java, Using ASCII Values, Integer.parseInt() method, Character.getNumericValue() method and Subtracting '0'

Deepak Prasad7 min read