1653970320
Today we are excited to introduce Backgrounds Masks and Background Patterns for Divi, two brand new design settings that allow you to create a vast array of new visual effects by combining colors, images, gradients, masks and patterns using a simple new interface.
Background masks use positive and negative space to frame backgrounds and create new shapes. Background masks are placed on top of your background elements and below you content, and they work with background gradients, images, videos, and parallax images too. Masks are built using SVGs, so they are super crisp, lightweight and will automatically conform to the size of your elements.
1623835440
Starting from **Creational Design Pattern, **so wikipedia says “creational design pattern are design pattern that deals with object creation mechanism, trying to create objects in manner that is suitable to the situation”.
The basic form of object creations could result in design problems and result in complex design problems, so to overcome this problem Creational Design Pattern somehow allows you to create the object.
Builder is one of the** Creational Design Pattern**.
Builder is useful when you need to do lot of things to build an Object. Let’s imagine DOM (Document Object Model), so if we need to create the DOM, We could have to do lot of things, appending plenty of nodes and attaching attributes to them. We could also imagine about the huge XML Object creation where we will have to do lot of work to create the Object. A Factory is used basically when we could create the entire object in one shot.
As **Joshua Bloch (**He led the Design of the many library Java Collections Framework and many more) – “Builder Pattern is good choice when designing the class whose constructor or static factories would have more than handful of parameters”
#java #builder #builder pattern #creational design pattern #design pattern #factory pattern #java design pattern
1653970320
Today we are excited to introduce Backgrounds Masks and Background Patterns for Divi, two brand new design settings that allow you to create a vast array of new visual effects by combining colors, images, gradients, masks and patterns using a simple new interface.
Background masks use positive and negative space to frame backgrounds and create new shapes. Background masks are placed on top of your background elements and below you content, and they work with background gradients, images, videos, and parallax images too. Masks are built using SVGs, so they are super crisp, lightweight and will automatically conform to the size of your elements.
1656262800
Divi’s new background masks and patterns feature is more commonly used for sections on a page. But, we can also add them to headers as well! In this tutorial, we’ll show you how to add background masks and patterns to a Divi header template using the theme builder. This is a great way to create completely unique header designs for your website.
#WordPress #Divi
1656295288
In this video, we’ll learn how to create three subtle background designs with Divi's brand new background options, including Masks and Patterns.
#WordPress #divi
1601479980
Singleton Design Pattern
All these different implementation methods lead to one goal that is having a single instance of a class at any given point of time in JVM. Let’s see different implementation approaches for the Singleton design pattern
Let’s see the program to understand this …
package com.vikram;
public class EagerSingleton {
//Only object created when class is loaded and theInstance is private static var pointing to it.
private static EagerSingleton theInstance = new EagerSingleton();
//private constructor
private EagerSingleton(){
}
//public method to return single instance of class .
public static EagerSingleton getInstance(){
return theInstance;
}
}
Eager Initialization
#desing-pattern #classloading #singleton-pattern #singleton-design-pattern #java-singleton-pattern