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

Python os.path.join() Explained: Syntax, Examples and Path Handling Guide

Learn how to use Python os.path.join() to safely combine file and directory paths across operating systems. This tutorial explains syntax, examples, multiple arguments, return values, and common use cases such as joining …

Bashir Alam7 min read
programming

Generate UUID in Node.js (NodeJS UUID Generator Guide)

Learn how to generate UUID in Node.js using the uuid package, crypto module, nanoid, and other methods. This guide explains UUID versions, NodeJS UUID generation examples, and best practices for creating unique IDs in …

Steve Alila12 min read
programming

Enhanced For Loop in Java (For-Each Loop Explained with Examples)

Learn how to use the enhanced for loop in Java (also known as the for-each loop) to iterate over arrays, lists, sets, and map entries. This guide explains syntax, practical examples, limitations, comparisons with …

Bashir Alam5 min read
programming

Best IDE for Golang: VS Code, GoLand, Neovim, Zed, and More

Compare the best IDEs and editors for Go development: VS Code, GoLand, Neovim, Zed, LiteIDE, Sublime Text, and Emacs—use cases, trade-offs, setup checklist, and legacy tools to avoid.

Tuan Nguyen12 min read
programming

Long.MAX_VALUE & Long.MIN_VALUE in Java (Exact Values + Examples)

Learn the exact value of Long.MAX_VALUE and Long.MIN_VALUE in Java, why overflow happens, and how to safely handle large numbers with clear examples.

Deepak Prasad4 min read
programming

HackerRank Solution: Python Default Arguments [Debugging]

There are 2 proposed methods to solve default arguments for hackerrank solution in python

Bashir Alam5 min read
programming

HackerRank Solution: Python Diwali Lights

On the eve of Diwali, Hari is decorating his house with a serial light bulb set. The serial light bulb set has N bulbs placed sequentially on a string which

Bashir Alam4 min read
programming

How to Install Laravel on Ubuntu

This tutorial will guide you through complete steps to install Laravel on Ubuntu, covering web server setup with Apache, PHP and its extensions, database systems like MariaDB, and Composer for PHP dependencies.

Steve Alila7 min read
programming

Laravel Group Routes And Array Parameters Explained

Laravel route group array parameters provide a convenient way for developers to organize and define their route groups in a structured manner. By grouping

Steve Alila14 min read
programming

Laravel Eloquent WhereHas [In-Depth Tutorial]

Eloquent WhereHas is a powerful feature of Laravel's ORM (Object-Relational Mapping) tool. It allows developers to query related models and retrieve data from

Steve Alila16 min read
programming

Learn Laravel Migrations [In-Depth Tutorial]

This tutorial will guide you through Laravel Migration, covering setup, creating and running migrations, managing columns and tables, advanced features like seeding data, and best practices for maintaining your database …

Steve Alila10 min read
programming

Learn Laravel Authentication with Practical Example

This tutorial explores Laravel Authentication and shows how to create a secure login for admins in a Laravel app, including setting up databases, protecting routes, and making user sessions. We'll use Laravel Breeze and …

Steve Alila13 min read
programming

Laravel Livewire [In-Depth Tutorial]

Laravel Livewire is an open-source PHP framework that allows developers to quickly and easily create dynamic, reactive user interfaces (UIs) without writing

Steve Alila8 min read
programming

Truffle In Laravel [In-Depth Tutorial]

Truffle is a package manager for Laravel, the popular PHP web development framework. It simplifies the process of managing and installing packages, while also

Steve Alila13 min read
programming

Laravel Nova [In-Depth Tutorial]

Laravel Nova is an administration panel designed to make the process of building administrative dashboards easier. It provides a modern, powerful, and

Steve Alila17 min read
programming

Secure API Auth using Laravel Sanctum [Tutorial]

This tutorial will guide you through setting up Laravel Sanctum for API authentication using Breeze, covering installation, creating authentication controllers, setting up routes, testing APIs, and ensuring security best …

Steve Alila8 min read
programming

How to perform Soft Delete in Laravel [Tutorial]

This tutorial covers implementing Laravel soft deletes, handling and testing soft deleted records, addressing common pitfalls, and best practices for maintaining data integrity and privacy in your applications.

Steve Alila10 min read
programming

Master Laravel Passport: Elevate Your API Security

Explore the robust features and best practices of Laravel Passport in our comprehensive guide. Learn how to secure your APIs, improve performance, and streamline OAuth2 implementation to make your Laravel application …

Steve Alila20 min read
programming

Laravel Validation and Error handling Tutorial

This tutorial will guide you through Laravel Validation, covering basic rules, advanced techniques, custom rule creation, error handling, and practical examples to ensure robust data validation in your web applications.

Steve Alila15 min read
programming

Laravel Eloquent Tutorial with Practical Example

This tutorial will explore Laravel Eloquent, covering model creation, CRUD operations, query optimization, advanced features, and relationships. Perfect for enhancing database interactions in Laravel applications.

Steve Alila15 min read
programming

How to create PAM Module using Golang [Step-by-Step]

Step by step instructions to create or build a PAM Module using Golang and CGO language. The PAM module will import the required C functions using CGO and use them in GO to perform the actual validation for …

Deepak Prasad18 min read
programming

Send mails in Laravel 10.x with Example [100% Working]

step by step instructions to send mails in Laravel for single or multiple recipient. Send mails with attachments

Steve Alila13 min read
programming

Building an Image Gallery with Laravel and Intervention

This tutorial is going to guide you in the most perplexing of ways. Trust me. It’s about creating an image gallery using Laravel and an Intervention Image library. It starts off with a lot of basic stuff like setup, …

Steve Alila11 min read
programming

10 Simple Steps to Build & Test Laravel GraphQL API

In this tutorial, we'll guide you through setting up a GraphQL API in Laravel, covering project initialization, model and migration creation, installing GraphQL packages, and implementing schemas.

Steve Alila14 min read
programming

How to remove /public from Laravel URL? [SOLVED]

In this tutorial we will explore different methods to remove /public from Laravel URL using Nginx, .htaccess and Apache Virtual Host configuration files.

Steve Alila12 min read
programming

How Laravel Eager Loading solves N+1 Query Problem?

This tutorial will explore Laravel Eager Loading, addressing the N+1 query problem, defining Eager Loading, its benefits, and how to use it for optimizing database queries in Laravel applications for improved …

Steve Alila13 min read
programming

How to Setup and Use Laravel Task Scheduler Like a PRO

This tutorial will guide you through setting up and utilizing Laravel Task Scheduler, covering task creation, scheduling frequencies, preventing overlaps, running tasks on one server, and practical examples to streamline …

Steve Alila13 min read
programming

How to Install Dart on Ubuntu with Hello World Code

This tutorial will guide you through step by step procedure to install Dart on Ubuntu, covering two installation methods (APT and Debian package), verifying the installation, creating a simple Dart program, and the …

Deepak Prasad5 min read
programming

How to PROPERLY upgrade GO version in Ubuntu? [SOLVED]

Step by step instructions to upgrade go in Linux, Windows and MacOS.

Tuan Nguyen5 min read
programming

GO Import struct from another file

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 make it gloabally accessible.

Tuan Nguyen6 min read