Posts

What the hell this Dependency Injection?

Image
What is Dependency Injection? 💉 🤔    introduction Before come to the topic Dependency injection we will look How to build softwares with the Engineering principles. Software engineering it's all about the requirements, memory management and performance. So whenever we start build, we should consider above factors. So here specially we will focus about memory management.  If we start to build any simple application. initially it's easy maintain but when things get complicated it's hard to understand, maintain and Test. so before we start to build any system from the best practices. we should consider all things. I'm taking an example from  https://developer.android.com/training/dependency-injection   to understand the Dependency injection.    Car is depending on Engine and Wheels to work, so Engine and Wheels are the dependency on the Car. So consider the below the code public class Car { private static final String TAG = "Car";...
Image
    WHAT IS AN API ?  🤔 API/Server is an intermediate communicator to our    Physical Device(Computer💻/Mobile📱) and Database(Physical Device). In order to get the Data from Database We need to send the request from Device to Server. Then our requested server Fetch the requested Data from Database and send the requested data as a response to our requested device.   So here, As a API creators we have to decide which data we have to fetch from the database, what data we have to send to the user Device, who can access the data and what is the request format. So We have to decide according to our Requirements. Software engineering is all about Requirements.    Before we start to design APIs we need to clarify above mention things.   Basic understanding of API working Diagram. I created above diagram for a Basic understanding of an API mechanism. To understand above situation. just consider this use case. You want to see your Science Exam marks ...
Image
  What is MVVM Architecture MVVM The purpose of this blog is to provide an introduction to the Model-View-ViewModel pattern. this design pattern is introduced by Microsoft because of the WPF Application. To understand the MVVM design pattern you no need to know about the WPF Application. but you want to have some basic knowledge about OOP.