Blog

Adding items to a dictionary is easy, but understanding the options and best practices can make your code cleaner and more efficient. This tutorial will guide you through the various ways to add items to a Swift dictionary, from the simplest syntax to more advanced techniques. 1. Add Item to Dictionary Using Subscript Syntax This…

Read More Add Item to a Dictionary in Swift

In the previous tutorial, I explained how to create a function in Swift, and their importance in keeping the code modular and organized. Well, functions can also be written inside other functions, and Swift’s official documentation suggests this helps to encapsulate useful functionality within a nested function scope. In this tutorial you will learn how…

Read More Nested Functions in Swift: A Comprehensive Guide

In this tutorial, you will learn how to start Apache Kafka Server with KRaft, a new consensus protocol that replaces ZooKeeper for metadata management. KRaft simplifies Kafka’s architecture and improves its performance and stability. You can read more about KRaft here and here. Step 1: Generate a Cluster UUID Before you can start Apache Kafka server on your…

Read More How to Start Apache Kafka Server with KRaft

In this guide, you will learn more about Kafka Topic, the core structure for data within Kafka. You will learn how to create, manage, and utilize Kafka Topics effectively. Each step includes practical examples and straightforward explanations, ensuring a clear understanding. As you progress, you’ll gain essential skills and knowledge, focusing solely on Kafka Topics.…

Read More Apache Kafka Topic: A Comprehensive Guide

In this Swift tutorial, I’ll show you how to add new functionality to existing Swift classes using class extensions. It’s a powerful feature in Swift that lets you add your own methods or computed properties to already-defined classes, making them more versatile. Let’s start with a very simple example. Creating a Simple Extension In Swift,…

Read More Swift Class Extension Explained

In this tutorial, you will learn how to generate a custom JSON Web Token(JWT) and how to add and validate custom JWT Claims using the io.jsonwebtoken library. The JWT token generated in this tutorial will be signed with a SecretKey, making it secure and tamper-proof. Also, this tutorial assumes you have prior knowledge of creating…

Read More Generate JWT. Add and Validate Custom Claims.