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 make circular color gradient in Python?

A color gradient is a way to smoothly transition between two or more colors. A circular gradient is a type of color gradient that transitions in a circular

Deepak Prasad7 min read
programming

HackerRank Solution: Maximize it [Python Itertools]

Note that you need to take exactly one element from each list, not necessarily the largest element. You add the squares of the chosen elements and perform the

Bashir Alam5 min read
programming

HackerRank Solution: Validating Postal Codes Python

A valid postal code P have to fullfil both below requirements:

Bashir Alam5 min read
programming

Hackerrank Solution: Compress the string Python

Hacker Rank Solution for Compress the string in Python. 3 different ways to solve "compress the string" question from hacker rank

Bashir Alam4 min read
programming

Master Python set intersection()

In python, we have a python set intersection method that consists of all the common elements of the input sets.

Bashir Alam15 min read
programming

Numpy random Examples | rand() | randint() function

The Numpy random method in Python helps us to create random numbers. You can use random.rand(), random.randint(), random.uniform() function to generate random numbers

Bashir Alam10 min read
programming

Is golang tuple possible?

By design golang tuple is not possible but we can work around this by using interfaces and generics.

Tuan Nguyen4 min read
programming

How to PROPERLY clean Laravel logs?

There are several methods to clean Laravel logs, depending on the specific logs you want to clean and how you want to do it. Here are some common methods:

Steve Alila6 min read
programming

Java WatchService Examples [Monitor Directory and Files]

The Java WatchService can monitor a Path for changes to any file or directory in the hierarchy. We can choose to receive events when files or directories are added, modified, or deleted.

Azka Iftikhar7 min read
programming

HackerRank Solution: Python Lists [Basic Data Types]

This tutorial covers solutions for Python Lists question from Hacker Rank using if statements, map and len() method Using the split() function

Bashir Alam5 min read
programming

Powerful Pattern Matching Techniques in Python Revealed

Discover the transformative power of pattern matching in Python with our comprehensive guide. Dive into advanced techniques, avoid common mistakes, and harness the true potential of your code.

Deepak Prasad20 min read
programming

Python multi line strings [5 Methods Explained]

In this programming tutorial we learned about 5 different methods include using three double quotes, three single quotes, backslash, brackets, and using join() method to create python multi line strings

Bashir Alam8 min read
programming

How to reverse a string in Java [4 Methods with Examples]

In Java programming language, we can use CharAt() method, getBytes(), toCharArray() and reverse() method to reverse a string in java. Explained with syntax and multiple examples.

Bashir Alam9 min read
programming

How to customize auth route Laravel 8?

By following this tutorial on how to customize auth route Laravel 8, you will have a clear understanding of how to modify the authentication routes in Laravel

Steve Alila9 min read
programming

8 ways to convert long to String in Java

The list below shows eight different ways in which we can convert long to string in Java. Using + operator, String.valueOf(), Long.toString(), DecimalFormat class, String.format(), StringBuilder class, StringBuffer …

Deepak Prasad7 min read
programming

Java String Concatenation Examples

Java string concatenation examples using plus operator, String.concat() method, StringBuffer class and StringBuilder class

Bashir Alam10 min read
programming

Java string method explained [Easy Examples]

Concatenate Java strings, Finding length of String, Index and positioning of java strings, Comparing Java strings, change Java strings to upper case or lower case examples

Bashir Alam10 min read
programming

Java Arguments vs Parameters: A No-Nonsense Tutorial

Discover the essential differences between Java arguments vs parameters to empower your coding journey. Dive deep into each concept, unlocking powerful insights that elevate your programming proficiency and clarity. …

Bashir Alam10 min read
programming

Golang Variable Naming Convention Guideline and TIPs

Explore the indispensable Golang Variable Naming Convention to elevate your coding practices. Dive deep into strategies that will enhance readability, improve code maintenance, and optimize programming efficiency, …

Tuan Nguyen12 min read
programming

7 Robust Methods to Convert Long to Integer in Java

Explore the insightful guide on how to convert long to integer in Java. Discover various methods, each detailed with thoughtful techniques and considerations, ensuring a smooth, accurate, and efficient conversion …

Deepak Prasad7 min read
programming

Master Docker and Golang Usage with Best Practices

Unlock the potential of containerization in your development workflow with our powerful Docker and Golang tutorials. Elevate your coding expertise, conquer common challenges, and optimize application performance with …

Antony Shikubu12 min read
programming

Check if Key Exists in GO Map [6 Proven Methods]

We will explore following methods to check if key exists in map in golang. terate over map elements and look out for the key, Using index expression, Perform a lookup for the key inside all the map elements

Tuan Nguyen12 min read
programming

Crafting Perfect Code with Java Optional Parameters

implement java optional parameters in java including the overloading method, optional container object, built pattern, and varargs

Bashir Alam14 min read
programming

Master the Best Techniques for Node.js Sleep

Explore the ins and outs of Node.js sleep methods. Dive into best practices, common mistakes, and powerful techniques to optimize performance and efficiency in your applications.

Deepak Prasad12 min read
programming

Laravel add new column to existing table in Migration [SOLVED]

Adapting to changing business requirements often necessitates the modification of our database structures. This could mean adding new columns to existing

Steve Alila9 min read
programming

How to create Laravel Helper Function?

Learn how to create custom helper functions in Laravel to enhance your application's functionality. This guide provides step-by-step instructions on creating Laravel helpers.

Steve Alila6 min read
programming

Making Laravel HTTP Request to External API

So, get ready to learn how to make Laravel HTTP request to external API like a pro!

Steve Alila5 min read
programming

5 Methods to perform String Interpolation in Java

In Java, We can perform String Interpolation in Java using several ways such as Using + operator, format function, MessageFormat class, StringBuilder class, formatted function

Deepak Prasad7 min read
programming

Error: Cannot find module X in JavaScript

We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.

Olorunfemi Akinlua12 min read
programming

Dive Deep into Dart Lists: Best Practices Revealed

Dive into the versatile world of Dart Lists as we demystify its core functionalities, revealing the transformative power it holds in modern Dart development. From best practices to advanced techniques, explore how to …

Deepak Prasad14 min read