Best practice for application development and design pattern's
Why do we need architecture and design patterns?
An application architecture describes the patterns and techniques used to design and build an application. The architecture gives you a roadmap and best practices to follow when building an application so that you end up with a well-structured app. And design patterns help to make the purpose more simple and easy to work with.
Clean Architecture
Clean architecture is a method of software development in which you should be able to identify what a program performs merely by looking at its source code. The programming language, hardware, and software libraries needed to achieve the program’s goal should be rendered obsolete. Like other software design philosophies, Clean architecture aims to provide a cost-effective process for developing quality code that performs better, is easier to alter, and has fewer dependencies.?Robert C. Martin?established clean architecture and promoted it on his blog, Uncle Bob, in 2011.
Point to Remember:
Advantages of Clean Architecture
Disadvantages of Clean Architecture
MVVM Architecture
MVVM Is a presentation layer architecture for any application and it can be used with Clean Architecture
领英推荐
Layers of MVVM?
There are differing viewpoints on the number of levels that Clean Architecture should have. The design does not specify separate layers but instead lays the groundwork. The concept is that you adjust the number of layers according to your need. Here, to keep it short, we will use five, have a look at them.
Design patterns
The term design pattern in application development basically means that there are reusable patterns to solve commonly occurring development problems.?The?android design pattern?is no different. There are specific design patterns which the developer must follow while writing the code for an application in Android.
The main three categories of?Android design patterns?explained in the simplest terms are: –
Builder Design Pattern
When to Use Builder Pattern?
Adapter Design Pattern
Adapter pattern works as a bridge between two incompatible interfaces. This type of design pattern comes under structural pattern as this pattern combines the capability of two independent interfaces.
This pattern involves a single class which is responsible to join functionalities of independent or incompatible interfaces. A real life example could be a case of card reader which acts as an adapter between memory card and a laptop. You plugin the memory card into card reader and card reader into the laptop so that memory card can be read via laptop
Observer Design Pattern
Observer pattern is used when there is one-to-many relationship between objects such as if one object is modified, its dependent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.
What’s next?
Software Developer At Akij Venture Group || Next Js || React Js || Typescript || Express Js || Mongodb || Nest || MySql || Docker || Jenkins
2 年great article