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

Using Node.js with Visual Studio Code

Knowing how to use Node.js with Visual Studio Code is easy. All you do is install your preferred Node.js version and Visual Studio Code for your operating

Steve Alila7 min read
programming

How to use Node.js with Eclipse IDE [Step-by-Step]

Step by Step instructions to setup and use node.js with Eclipse IDE with examples to write your first code.

Steve Alila6 min read
programming

How to use Node.js with Atom IDE [Step-by-Step]

Step by step instructions to use node.js with Atom IDE. Create and run your first JS using Atom IDE.

Steve Alila5 min read
programming

How to use Node.js with Sublime Text IDE

Step by Step instructions to use node.js with sublime text IDE. Install Node.Js and Sublime Text IDE for the Integration.

Steve Alila5 min read
programming

SOLVED: Get script directory path in Node.js

Node.js get script directory, node.js get current directory, node.js get absolute path, node.js get absolute directory path

Steve Alila5 min read
programming

How to setup Laravel in Docker? [2 Methods]

It would help to know Laravel, Docker, and Linux basics.- In this article, we will explore how to setup Laravel in Docker using two different methods:

Steve Alila12 min read
programming

HackerRank Solution: Python Capitalize!

In this tutorial we will cover following solutions for hacker rank problem capitalize in python Solution-1: Using for loop, Solution-2: Using a user- defined function, Solution-3: Using .join() method, Solution-4: Using …

Bashir Alam5 min read
programming

Golang Viper: The Unsung Hero of Configuration Wizards

golang viper tutorial to source YAML, JSON or ENV files and get variables. Set default values for empty or missing variables using viper.SetDefault

Tuan Nguyen15 min read
programming

Getting started with NodeJS [Beginners Tutorial]

Getting started with NodeJS the right way empowers you to exploit the potential of NodeJS. This tutorial walks you through NodeJS overview, mainly focusing on

Steve Alila7 min read
programming

Deploy Heroku Node.js from Scratch - Tutorial

You are just getting started with app hosting on Heroku Node.js, and you need a straightforward tutorial to guide you from scratch. Or you have a challenge

Steve Alila7 min read
programming

Error: cannot find module express

Error: Cannot find module 'express' This error is quite common and exists because when your code ran, the express package or module wasn’t found within its environment.

Olorunfemi Akinlua3 min read
programming

Install Java on Linux, Windows and MAC

Step by Step instructions to install JAVA on Linux, WIndows and MAC OS with and without GUI. Set proper PATH or HOME variables to use JAVA

Bashir Alam8 min read
programming

SOLVED: How to read env var in Node.js [With Examples]

Node.js read env var is one of the most typical yet (sometimes) challenging tasks you will do as a Node.js developer.

Steve Alila5 min read
programming

Managing golang connection pool

In the previous article, I introduced to you the ways to work with SQL in Golang. You don't need to change the defaults for the sql.DB connection pool for the

Tuan Nguyen7 min read
programming

Golang generate random string Examples

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

Tuan Nguyen7 min read
programming

Golang struct Tutorial

When you declare a struct without field values, we say that it is a zero value struct. A zero value golang struct has its corresponding field values set to

Antony Shikubu7 min read
programming

How to check if struct is empty in GO?

This article describes a few methods for determining whether a struct in Go is empty. It includes structs having fields that are comparable and

Tuan Nguyen4 min read
programming

Golang slice append return value?

In the previous chapter, we discuss how to use append function in Golang. append is a built-in function which appends elements to the end of a slice. If it

Tuan Nguyen4 min read
programming

Getting started with GOLANG | Write your first GO Code

Getting started with go, installing go using package manager, install go-1.19, setup your own go workspace, What is GOPATH and GOROOT, How to integrate visual studio code with GO, Required extensions for GO in visual …

Deepak Prasad12 min read
programming

Print Function, File Name, Line Number in GO

In this tutorial we will share different methods to print or get logrus line number, file name, function name of the go code.

Tuan Nguyen6 min read
programming

How to pass array to function in Golang?

Learn how to pass array to function in golang using different examples

Tuan Nguyen4 min read
programming

How to pass slice to function in Golang?

There are multiple ways we can pass slice to function in golang. We will explore through some of the examples

Tuan Nguyen4 min read
programming

Currying Function in Java Explained

In Java, currying function is the mechanism of breaking down a multi-argument function to form the multiple functions with single arguments such that the output remains same.

Deepak Prasad6 min read
programming

How to run NodeJS REPL Inside a Function [Practical Examples]

The NodeJS REPL(Read-Eval-Print-Loop) server provides a programming environment like a Linux shell where a user can evaluate JavaScript expressions and gain access to node modules.

Deepak Prasad6 min read
programming

Beginners Tips for Learning Python

But how do you learn Python as a beginner? Well, there are multiple ways you can go about it.

Deepak Prasad7 min read
programming

Python pass Vs break Vs continue [1-1 Comparison]

Comparison and differences between pass vs break vs continue statement in python with 1-1 comparision and examples.

Deepak Prasad4 min read
programming

Python Pandas Period.to_timestamp() Example

The simple syntax of the python to_timestamp method is as follows:

Bashir Alam5 min read
programming

Introduction to Python for Machine Learning

We have discussed in detail Python for Machine Learning. We have also talked about the types of Machine Learning. For instance, we have provided brief information about the categories such as Supervised learning, …

Bashir Alam10 min read
programming

What does Python __all__ mean?

Python __all__ is a list of public objects of that module, as interpreted by import *. It overrides the default of hiding everything that begins with an underscore. When we are importing a module, the protected variables …

Bashir Alam5 min read
programming

Create pyplot figure with matplotlib [In-Depth Tutorial]

matplotlib.pyplot is a sub-library of Python's matplotlib library that provides convenient ways to create static, animated, and interactive visualizations in

Deepak Prasad9 min read