ScalaDesignPattern

Singleton Pattern: The One of a Kind Design Pattern

Reading Time: 3 minutes Hey, coders in this blog we are going to talk about Singleton Pattern, and believe me, Singleton Pattern is one of the easiest patterns among all the design patterns in terms of its class diagram. Singleton Pattern has an interesting mechanism in the way it is implemented. So before implementing the singleton pattern in our code first let’s dive into its definition which states that  Continue Reading

Adapter design pattern with Scala

Reading Time: 2 minutes Hi Readers! In our last blog, we have discussed the Decorator design pattern with Scala. In this blog, we will explore the Adapter design pattern. We will also implement this pattern in Scala. Earlier, in many applications, all the user-specific details like username, IP addresses, phone number, etc were logged directly without scrambling it. But after new data protection law i.e. EUGDPR, it is now Continue Reading