What is a Zero Trust Network?

A zero trust network is exactly what its name implies, a completely untrusted network. It is also called permiterless security and provides five fundamental assertions on which to build the network: All the data sources and computing services are considered resources.All communication is secured, regardless of network location.Every device, user, and network flow is authenticated and authorized.Policies … Continue reading What is a Zero Trust Network?

Builder Design Pattern – Implementation in Java

I have discussed Singleton Pattern, Observer Pattern, Factory Pattern, Decorator Pattern, and Command Pattern in my previous posts. In this one I will be talking about the Builder Design Pattern. What is the Builder Design Pattern? Builder pattern helps us in creating an immutable class with a large set of state attributes. One of the popular methods of … Continue reading Builder Design Pattern – Implementation in Java

Parsing command-line flags in Go

Golang has a built-in package called flag that enables one to parse command-line flags. The flag package allows you to define String, Bool, or Int flags. To be able to access the parameters passed as arguments to the command line execution of your program, three steps need to be completed. Define the flag.Bind the flag.Parse the flag. Syntax An example of how flag is used … Continue reading Parsing command-line flags in Go

Structure Equality in Golang

What is a struct in Go? A struct or structure in Go is a user-defined type. It helps with composing different types into a single unit. https://gist.github.com/anjanashankar9/d427d0cfe225c01c7631afd71153bdf7 When can you compare two structures? In order to compare two structures, it is imperative that all struct field types are comparable. If the variables being compared belong to different structures, then you will see a … Continue reading Structure Equality in Golang

Command Design Pattern – Implementation in Java

I have discussed Singleton Pattern, Observer Pattern, Factory Pattern and Decorator Pattern in my previous posts. In this one I will be talking about Command Design Pattern. What is a Command Pattern? Command Design Pattern is a pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later … Continue reading Command Design Pattern – Implementation in Java

Git submodules

Git submodules are a powerful way to use git as an external dependency management tool. It is basically a way to embed a repository into another. When you add a submodule in Git, the code of the submodule does not get added to the main repository, only certain information about the submodule does. It simply … Continue reading Git submodules

Decorator Design Pattern – Implementation in Java

I have discussed Singleton Pattern, Observer Pattern and Factory Pattern in my previous posts. In this one I will be talking about Decorator Design Pattern. What is a Decorator Pattern? The dictionary definition of the verb decorate is make (something) look more attractive by adding extra items to it. Keeping in line with this definition, … Continue reading Decorator Design Pattern – Implementation in Java