DNS (Domain Name System) records are used to translate domain names into IP addresses and provide other important information about domains and hosts. Here’s a list of common DNS record types along…
Month: October 2023
Check data type in golang
In Go (Golang), checking the data type of a variable can be done in several ways, depending on the context and what information you need about the data type. Here are some…
Decode JSON in Golang
In Go (Golang), there are several ways to decode JSON, each suited for different scenarios. Here’s a list of common methods along with their typical use cases: 1. json.Unmarshal json.Unmarshal: This is…
Find the first and last occurrence in an array
To find the first occurrence of a target value in a sorted array using binary search, the algorithm needs to be slightly modified from the standard binary search. The goal is to…
Slice literal definition and nil definition in goalng
In Go, slices are a reference type that can point to an underlying array. The differences between a slice that’s defined as a literal and one that’s defined as nil are as…
L4 and L7 Load Balancer
(Image from x.com) Layer 4 (L4) and Layer 7 (L7) load balancers operate at different layers of the OSI model, influencing how they distribute traffic. L4 Load Balancer: Pros: Cons: Examples: L7…
Describe water flow
Here are some words that can describe water flow:
Versioning in software development
The versioning scheme follows the structure: <Major-Release>.<Minor-Release>.<Maintenance-Build-Level>. Versioning in software development is a critical component for managing changes and ensuring that users and developers can track and understand the evolution of a…
Understand RESTful API and Tests in One Post
RESTful APIs (Representational State Transfer APIs) are an architectural style for networked applications on the web, designed to take advantage of existing protocols. They are used to set rules that allow services…
Data Type Casting in Java
Casting in Java refers to converting a variable from one data type to another. Java supports both implicit (automatic) and explicit (manual) casting. Implicit Casting (Automatic) Implicit casting happens when you assign…