Dinesha KarunathilakeOOP Design Patterns 9— Iterator PatternSuppose we have 2 types of collections (Array and a List) but we need to traverse both the collections in a client.Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns— Composite PatternWhen there is a hierarchical structure, there are 2 types of components Leaf nodes and Composite nodes. Usually in this type of scenario…Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns — Template Method PatternThe Template Method Pattern: defines the skeleton of an algorithm in a method, deferring some steps to subclasses. The template method…Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns — Command PatternDefinition: The command pattern encapsulates a request as an object, thereby letting you parameterize other objects with different…Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns — IntroductionChange is the inevitable character of anything and software is no exception. The job of a good engineer is to design the systems in a way…Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns 2 - Observer PatternThe observer pattern defines a one to many dependencies between objects so that when one object changes state all of its dependents are…Apr 22, 2021Apr 22, 2021
Dinesha KarunathilakeOOP Design Patterns — Factory PatternEncapsulate what changes: Object instantiation is something that is more prone to change. When a new type of object need to be added to…Nov 28, 2020Nov 28, 2020
Dinesha KarunathilakeOOP Design Patterns 3— Decorator PatternWhen in a software project, need comes to extend the behavior of the product by adding new functionalities, we could use inheritance by…Nov 28, 2020Nov 28, 2020
Dinesha KarunathilakeOOP Design Patterns — SOLID Design PrinciplesSOLID is an important set of principles in OOP software development and the name is an acronym for the five principles it explains.May 29, 2020May 29, 2020
Dinesha KarunathilakeReactive Programming with RxAndroid and KotlinApps nowadays need to meet the requirement of being robust and responsive. RxAndroid and Kotlin tools are equipped to help this process…Apr 10, 2020Apr 10, 2020